// #cmakedefine QT_NO_STACKEDWIDGET
// #cmakedefine QT_NO_STANDARDITEMMODEL
// #cmakedefine QT_NO_STATUSBAR
+// #cmakedefine QT_NO_STATUSTIP
// Misc
#cmakedefine QT_NO_USING_NAMESPACE
#cmakedefine QT_NO_SHAREDMEMORY
#cmakedefine QT_NO_SIZEGRIP
#cmakedefine QT_NO_SPLASHSCREEN
-#cmakedefine QT_NO_STATUSTIP
#cmakedefine QT_NO_STRINGLISTMODEL
#cmakedefine QT_NO_STYLE_CLEANLOOKS
#cmakedefine QT_NO_STYLE_PROXY
}
}
+#ifndef QT_NO_STYLE_PROXY
class CustomProxy : public QProxyStyle
{
virtual int pixelMetric(PixelMetric metric, const QStyleOption *option = 0,
return QProxyStyle::pixelMetric(metric, option, widget);
}
};
+#endif // QT_NO_STYLE_PROXY
void tst_QStyle::testProxyStyle()
{
+#ifndef QT_NO_STYLE_PROXY
QProxyStyle *proxyStyle = new QProxyStyle();
QVERIFY(proxyStyle->baseStyle());
QStyle *style = new QWindowsStyle;
edit.setStyle(&customStyle);
QVERIFY(!customStyle.parent());
QVERIFY(edit.style()->pixelMetric(QStyle::PM_ButtonIconSize) == 13);
+#else // QT_NO_STYLE_PROXY
+ QSKIP("Katie compiled without style proxy support (QT_NO_STYLE_PROXY)", SkipAll);
+#endif // QT_NO_STYLE_PROXY
}
void tst_QStyle::drawItemPixmap()
qApp->setFont(defaultFont);
}
+#ifndef QT_NO_STYLE_PROXY
class DrawTextStyle : public QProxyStyle
{
Q_OBJECT
}
int alignment;
};
+#endif // QT_NO_STYLE_PROXY
void tst_QStyle::testDrawingShortcuts()
{
+#ifndef QT_NO_STYLE_PROXY
{
QWidget w;
setFrameless(&w);
bool showMnemonic = dts->styleHint(QStyle::SH_UnderlineShortcut, &sotb, tb);
QVERIFY(dts->alignment & (showMnemonic ? Qt::TextShowMnemonic : Qt::TextHideMnemonic));
delete dts;
- }
+ }
+#else // QT_NO_STYLE_PROXY
+ QSKIP("Katie compiled without style proxy support (QT_NO_STYLE_PROXY)", SkipAll);
+#endif // QT_NO_STYLE_PROXY
}
QTEST_MAIN(tst_QStyle)