mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-08 18:19:42 +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.
|
||||
// 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);
|
||||
|
Loading…
Reference in New Issue
Block a user