]> git.lyx.org Git - features.git/commitdiff
qt5: Use QStyleOptionTabWidgetFrame
authorVincent van Ravesteijn <vfr@lyx.org>
Fri, 28 Dec 2012 12:39:03 +0000 (13:39 +0100)
committerVincent van Ravesteijn <vfr@lyx.org>
Fri, 28 Dec 2012 13:07:43 +0000 (14:07 +0100)
QStyleOptionTabWidgetFrameV2 is identical to QStyleOptionTabWidgetFrame.

src/frontends/qt4/GuiWorkArea.cpp

index 5a91a6cca4a7a3c42187f1b26d5e91e9d91fdf11..147d84203a687c1526e0096b79cd902e268154ed 100644 (file)
@@ -1563,7 +1563,11 @@ void TabWorkArea::paintEvent(QPaintEvent * event)
                // painting of the frame of the tab widget.
                // This is needed for gtk style in Qt.
                QStylePainter p(this);
+#if QT_VERSION < 0x050000
                QStyleOptionTabWidgetFrameV2 opt;
+#else
+               QStyleOptionTabWidgetFrame opt;
+#endif
                initStyleOption(&opt);
                opt.rect = style()->subElementRect(QStyle::SE_TabWidgetTabPane,
                        &opt, this);