1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 05:49:56 +00:00
openmw-tes3mp/apps/opencs/view/widget/pushbutton.hpp
2014-07-10 12:53:57 +02:00

41 lines
963 B
C++

#ifndef CSV_WIDGET_PUSHBUTTON_H
#define CSV_WIDGET_PUSHBUTTON_H
#include <QPushButton>
namespace CSVWidget
{
class PushButton : public QPushButton
{
Q_OBJECT
bool mKeepOpen;
bool mPush;
private:
void setExtendedToolTip (const std::string& text);
protected:
virtual void keyPressEvent (QKeyEvent *event);
virtual void keyReleaseEvent (QKeyEvent *event);
virtual void mouseReleaseEvent (QMouseEvent *event);
public:
/// \param push Do not maintain a toggle state
PushButton (const QIcon& icon, bool push = false, const std::string& tooltip = "",
QWidget *parent = 0);
/// \param push Do not maintain a toggle state
PushButton (bool push = false, const std::string& tooltip = "",
QWidget *parent = 0);
bool hasKeepOpen() const;
};
}
#endif