2012-02-20 21:47:14 +00:00
|
|
|
/* This file is (c) 2012 Tvangeste <i.4m.l33t@yandex.ru>
|
2011-07-12 09:25:03 +00:00
|
|
|
* Part of GoldenDict. Licensed under GPLv3 or later, see the LICENSE file */
|
|
|
|
|
|
|
|
#ifndef GDAPPSTYLE_HH
|
|
|
|
#define GDAPPSTYLE_HH
|
|
|
|
|
2013-07-18 13:02:39 +00:00
|
|
|
#include <QtGlobal>
|
|
|
|
#include <QStyle>
|
2011-07-12 09:25:03 +00:00
|
|
|
#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
|