Commit caf29650 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

QmlDesigner: Fix order of initialization



m_resIconSize is passed to m_iconProvider's ctor, so it should
be initialized first.

Change-Id: I7a5dfb648cce029869b1e8a36eee761a5bd46faf
Reviewed-by: default avatarMarco Bubke <marco.bubke@digia.com>
parent 6f5c2ea5
......@@ -59,9 +59,9 @@ namespace QmlDesigner {
ItemLibraryWidget::ItemLibraryWidget(QWidget *parent) :
QFrame(parent),
m_iconProvider(m_resIconSize),
m_itemIconSize(24, 24),
m_resIconSize(24, 24),
m_iconProvider(m_resIconSize),
m_itemsView(new QQuickView()),
m_resourcesView(new Internal::ItemLibraryTreeView(this)),
m_filterFlag(QtBasic),
......
......@@ -121,9 +121,9 @@ private slots:
void setCurrentIndexOfStackedWidget(int index);
private:
ItemLibraryFileIconProvider m_iconProvider;
QSize m_itemIconSize;
QSize m_resIconSize;
ItemLibraryFileIconProvider m_iconProvider;
QPointer<ItemLibraryInfo> m_itemLibraryInfo;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment