2009-04-15 01:59:54 +00:00
|
|
|
/*
|
2014-01-19 01:09:44 +00:00
|
|
|
* This file Copyright (C) 2009-2014 Mnemosyne LLC
|
2009-04-15 01:59:54 +00:00
|
|
|
*
|
2014-01-19 01:09:44 +00:00
|
|
|
* It may be used under the GNU Public License v2 or v3 licenses,
|
|
|
|
* or any future license endorsed by Mnemosyne LLC.
|
2009-04-15 01:59:54 +00:00
|
|
|
*
|
2009-05-31 19:33:48 +00:00
|
|
|
* $Id$
|
2009-04-15 01:59:54 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef QTR_IconPushButton_H
|
|
|
|
#define QTR_IconPushButton_H
|
|
|
|
|
|
|
|
#include <QPushButton>
|
|
|
|
|
|
|
|
class QIcon;
|
|
|
|
|
|
|
|
class TrIconPushButton: public QPushButton
|
|
|
|
{
|
2013-09-14 22:45:04 +00:00
|
|
|
Q_OBJECT
|
2009-04-15 01:59:54 +00:00
|
|
|
|
2013-09-14 22:45:04 +00:00
|
|
|
public:
|
|
|
|
TrIconPushButton (QWidget * parent = 0);
|
|
|
|
TrIconPushButton (const QIcon&, QWidget * parent = 0);
|
|
|
|
virtual ~TrIconPushButton () {}
|
|
|
|
QSize sizeHint () const;
|
2009-04-15 01:59:54 +00:00
|
|
|
|
2013-09-14 22:45:04 +00:00
|
|
|
protected:
|
|
|
|
void paintEvent (QPaintEvent * event);
|
2009-04-15 01:59:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // QTR_IconPushButton_H
|