Commit b235ef37 authored by Marco Bubke's avatar Marco Bubke
Browse files

QmlDesigner: Remove ItemLibraryModel::m_sections



Change-Id: I884af24b8e36a81a7f11b2587d84f7f33ff948c3
Reviewed-by: default avatarTim Jenssen <tim.jenssen@digia.com>
parent de011703
...@@ -122,11 +122,6 @@ void ItemLibraryModel::setSearchText(const QString &searchText) ...@@ -122,11 +122,6 @@ void ItemLibraryModel::setSearchText(const QString &searchText)
} }
} }
int ItemLibraryModel::getSectionLibId(int itemLibId)
{
return m_sections.value(itemLibId);
}
Import entryToImport(const ItemLibraryEntry &entry) Import entryToImport(const ItemLibraryEntry &entry)
{ {
if (entry.majorVersion() == -1 && entry.minorVersion() == -1) if (entry.majorVersion() == -1 && entry.minorVersion() == -1)
...@@ -145,7 +140,6 @@ void ItemLibraryModel::update(ItemLibraryInfo *itemLibraryInfo, Model *model) ...@@ -145,7 +140,6 @@ void ItemLibraryModel::update(ItemLibraryInfo *itemLibraryInfo, Model *model)
QMap<QString, int> sections; QMap<QString, int> sections;
clearSections(); clearSections();
m_sections.clear();
m_nextLibId = 0; m_nextLibId = 0;
QStringList imports; QStringList imports;
......
...@@ -76,7 +76,6 @@ public: ...@@ -76,7 +76,6 @@ public:
public slots: public slots:
void setSearchText(const QString &searchText); void setSearchText(const QString &searchText);
int getSectionLibId(int itemLibId);
void setExpanded(bool, const QString &section); void setExpanded(bool, const QString &section);
signals: signals:
...@@ -94,7 +93,6 @@ private: // functions ...@@ -94,7 +93,6 @@ private: // functions
private: // variables private: // variables
QList<ItemLibrarySection*> m_sectionModels; QList<ItemLibrarySection*> m_sectionModels;
QMap<int, int> m_sections;
QHash<int, QByteArray> m_roleNames; QHash<int, QByteArray> m_roleNames;
QString m_searchText; QString m_searchText;
......
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