widgets: Add a QT_CONFIG(messagebox) guard

for initResources in QApplication

Change-Id: Id083edbcba4b348ef78e55c788ea94f85b6f572b
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
This commit is contained in:
Mikhail Svetkin 2018-03-13 09:22:06 +01:00
parent 0daa14e191
commit aaace8fbdb

View File

@ -113,8 +113,10 @@
static void initResources()
{
Q_INIT_RESOURCE(qstyle);
Q_INIT_RESOURCE(qmessagebox);
#if QT_CONFIG(messagebox)
Q_INIT_RESOURCE(qmessagebox);
#endif
}
QT_BEGIN_NAMESPACE