mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 01:53:52 +00:00
29 lines
515 B
C++
29 lines
515 B
C++
|
#ifndef CSV_WIDGET_PUSHBUTTON_H
|
||
|
#define CSV_WIDGET_PUSHBUTTON_H
|
||
|
|
||
|
#include <QPushButton>
|
||
|
|
||
|
namespace CSVWidget
|
||
|
{
|
||
|
class PushButton : public QPushButton
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
|
||
|
bool mKeepOpen;
|
||
|
|
||
|
protected:
|
||
|
|
||
|
virtual void keyPressEvent (QKeyEvent *event);
|
||
|
|
||
|
virtual void mouseReleaseEvent (QMouseEvent *event);
|
||
|
|
||
|
public:
|
||
|
|
||
|
PushButton (const QIcon& icon, const QString& text, QWidget *parent = 0);
|
||
|
|
||
|
bool hasKeepOpen() const;
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif
|