summaryrefslogtreecommitdiffstats
path: root/tools/designer/src
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2009-05-25 08:32:42 (GMT)
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>2009-05-25 08:32:42 (GMT)
commitf8d4c07981e556bf416ccd75e7c460a0b84e4e98 (patch)
treefb58f1b8c57af3963b677ad87c3304d347b4d360 /tools/designer/src
parentacc6122892a33b845da32b1d5b30dc6852c17e73 (diff)
downloadQt-f8d4c07981e556bf416ccd75e7c460a0b84e4e98.zip
Qt-f8d4c07981e556bf416ccd75e7c460a0b84e4e98.tar.gz
Qt-f8d4c07981e556bf416ccd75e7c460a0b84e4e98.tar.bz2
Fixed compilation Solaris.
Diffstat (limited to 'tools/designer/src')
-rw-r--r--tools/designer/src/lib/shared/qdesigner_toolbar.cpp16
1 files changed, 6 insertions, 10 deletions
diff --git a/tools/designer/src/lib/shared/qdesigner_toolbar.cpp b/tools/designer/src/lib/shared/qdesigner_toolbar.cpp
index 0bb91ee..898be1e 100644
--- a/tools/designer/src/lib/shared/qdesigner_toolbar.cpp
+++ b/tools/designer/src/lib/shared/qdesigner_toolbar.cpp
@@ -440,18 +440,14 @@ QAction *ToolBarEventFilter::actionAt(const QToolBar *tb, const QPoint &pos)
return tb->actions().at(index);
}
+//that's a trick to get acces to the initStyleOption which is a protected member
+class FriendlyToolBar : public QToolBar {
+public:
+ friend class ToolBarEventFilter;
+};
+
QRect ToolBarEventFilter::handleArea(const QToolBar *tb)
{
- //that's a trick to get acces to the initStyleOption which is a protected member
- class FriendlyToolBar : public QToolBar
- {
- public:
-#ifdef Q_NO_USING_KEYWORD
- void initStyleOption(QStyleOptionToolBar *option) { QToolBar::initStyleOption(option); }
-#else
- using QToolBar::initStyleOption;
-#endif
- };
QStyleOptionToolBar opt;
static_cast<const FriendlyToolBar*>(tb)->initStyleOption(&opt);
return tb->style()->subElementRect(QStyle::SE_ToolBarHandle, &opt, tb);