forked from qt-creator/qt-creator
QmlDesigner: Remove ItemLibraryModel::m_sections
Change-Id: I884af24b8e36a81a7f11b2587d84f7f33ff948c3 Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
This commit is contained in:
@@ -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)
|
||||
{
|
||||
if (entry.majorVersion() == -1 && entry.minorVersion() == -1)
|
||||
@@ -145,7 +140,6 @@ void ItemLibraryModel::update(ItemLibraryInfo *itemLibraryInfo, Model *model)
|
||||
QMap<QString, int> sections;
|
||||
|
||||
clearSections();
|
||||
m_sections.clear();
|
||||
m_nextLibId = 0;
|
||||
|
||||
QStringList imports;
|
||||
|
@@ -76,7 +76,6 @@ public:
|
||||
public slots:
|
||||
void setSearchText(const QString &searchText);
|
||||
|
||||
int getSectionLibId(int itemLibId);
|
||||
void setExpanded(bool, const QString §ion);
|
||||
|
||||
signals:
|
||||
@@ -94,7 +93,6 @@ private: // functions
|
||||
|
||||
private: // variables
|
||||
QList<ItemLibrarySection*> m_sectionModels;
|
||||
QMap<int, int> m_sections;
|
||||
QHash<int, QByteArray> m_roleNames;
|
||||
|
||||
QString m_searchText;
|
||||
|
Reference in New Issue
Block a user