first commit
This commit is contained in:
30
project/fm_viewer/ui/rm_button.h
Normal file
30
project/fm_viewer/ui/rm_button.h
Normal file
@@ -0,0 +1,30 @@
|
||||
#ifndef RM_BUTTON_H
|
||||
#define RM_BUTTON_H
|
||||
|
||||
#include <QPushButton>
|
||||
|
||||
#define DEBUG_BUTTON_EVENT 0
|
||||
|
||||
class QLayout;
|
||||
class RMButton : public QPushButton
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
RMButton(QWidget *parent = 0);
|
||||
~RMButton();
|
||||
|
||||
#if (LIVE_LANGUAGE2)
|
||||
static RMButton* create2(QWidget* parent, QLayout* layout, const char* name, const char* toolTip, QSize size);
|
||||
#else // LIVE_LANGUAGE2
|
||||
static RMButton* create(QWidget* parent, QLayout* layout, const char* name, QString toolTip, QSize size);
|
||||
#endif // LIVE_LANGUAGE2
|
||||
|
||||
void setStyleStatus(const char* status,bool toggle);
|
||||
void updateObject(QString objectName);
|
||||
#if (DEBUG_BUTTON_EVENT)
|
||||
bool bCheckEvent;
|
||||
virtual bool event(QEvent *e);
|
||||
#endif
|
||||
};
|
||||
|
||||
#endif // RM_BUTTON_H
|
||||
Reference in New Issue
Block a user