Fix warnings about QStyleFrameOptionsV4

This commit is contained in:
Gaute Lindkvist committed 2019-03-14 09:50:58 +01:00
1 parent edc6dad0f7
commit 925747b9d4
2 files changed
+8

No files matched your search

@@ -164,7 +164,11 @@ private:
QRect r = rect();
QPalette pal = palette();
#if QT_VERSION_MAJOR > 4
QStyleOptionFrame panel;
#else
QStyleOptionFrameV2 panel;
#endif
initStyleOption(&panel);
style()->drawPrimitive(QStyle::PE_PanelLineEdit, &panel, &p, this);
r = style()->subElementRect(QStyle::SE_LineEditContents, &panel, this);