goldendict-ng/gdappstyle.hh
Tvangeste 5404d4213e Dictionary tool buttons should not have an icon shifted when checked.
This just looks better, since the dictionary icons don't collide
with the border anymore.
2011-07-12 11:38:37 +02:00

29 lines
635 B
C++

/* This file is (c) 2011 Tvangeste <i.4m.l33t@yandex.ru>
* Part of GoldenDict. Licensed under GPLv3 or later, see the LICENSE file */
#ifndef GDAPPSTYLE_HH
#define GDAPPSTYLE_HH
#include <QProxyStyle>
#include <QStyleOption>
class GdAppStyle : public QProxyStyle
{
Q_OBJECT
public:
explicit GdAppStyle(QProxyStyle *style = 0);
virtual int pixelMetric ( PixelMetric metric, const QStyleOption * option = 0, const QWidget * widget = 0 ) const;
signals:
public slots:
private:
/// is this widget a tool button on the dictionary bar?
bool dictionaryBarButton(const QWidget * widget) const;
};
#endif // GDAPPSTYLE_HH