blob: a29763cf1505fcccb8a843fc61627483583c8022 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#ifndef FAVOURITE_BUTTON_HPP
#define FAVOURITE_BUTTON_HPP
//! This class is used to implement a workaround
//! to get rid of the "little arrow" that Qt
//! forces onto toolbuttons that have menus.
//!
//! https://bugreports.qt.io/browse/QTBUG-2036
#include <QToolButton>
#include <QtGui>
class FavouriteButton : public QToolButton
{
Q_OBJECT;
public:
explicit FavouriteButton(QWidget * parent = 0);
protected:
virtual void paintEvent(QPaintEvent * event);
};
#endif
|