mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-24 17:09:41 +00:00
qt5: Use QStyleOptionTabWidgetFrame
QStyleOptionTabWidgetFrameV2 is identical to QStyleOptionTabWidgetFrame.
This commit is contained in:
parent
d4a00c1a8a
commit
a19a0edfc0
@ -1563,7 +1563,11 @@ void TabWorkArea::paintEvent(QPaintEvent * event)
|
|||||||
// painting of the frame of the tab widget.
|
// painting of the frame of the tab widget.
|
||||||
// This is needed for gtk style in Qt.
|
// This is needed for gtk style in Qt.
|
||||||
QStylePainter p(this);
|
QStylePainter p(this);
|
||||||
|
#if QT_VERSION < 0x050000
|
||||||
QStyleOptionTabWidgetFrameV2 opt;
|
QStyleOptionTabWidgetFrameV2 opt;
|
||||||
|
#else
|
||||||
|
QStyleOptionTabWidgetFrame opt;
|
||||||
|
#endif
|
||||||
initStyleOption(&opt);
|
initStyleOption(&opt);
|
||||||
opt.rect = style()->subElementRect(QStyle::SE_TabWidgetTabPane,
|
opt.rect = style()->subElementRect(QStyle::SE_TabWidgetTabPane,
|
||||||
&opt, this);
|
&opt, this);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user