Files
fmviewer3/project/fm_viewer/ui/rm_button.h
2026-02-21 17:11:31 +09:00

31 lines
736 B
C++

#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