Commit a3a760d0 authored by Marco Bubke's avatar Marco Bubke Committed by Tim Jenssen

QmlDesigner: Remove id parameter from ItemLibrarySectionModel::addItem

Change-Id: I649110e0115f4c9ffccefcf2181e44f68c6f1f51
Reviewed-by: default avatarTim Jenssen <tim.jenssen@digia.com>
parent c4e773a3
......@@ -72,7 +72,7 @@ QVariant ItemLibrarySection::sortingRole() const
void ItemLibrarySection::addSectionEntry(ItemLibraryItem *sectionEntry)
{
m_sectionEntries.addItem(sectionEntry, sectionEntry->itemLibId());
m_sectionEntries.addItem(sectionEntry);
}
QObject *ItemLibrarySection::sectionEntries()
......
......@@ -83,7 +83,7 @@ static bool compareFunction(QObject *first, QObject *second)
return first->property(sortRoleName).toString() < second->property(sortRoleName).toString();
}
void ItemLibrarySectionModel::addItem(ItemLibraryItem *element, int libId)
void ItemLibrarySectionModel::addItem(ItemLibraryItem *element)
{
m_itemList.append(element);
......
......@@ -51,7 +51,7 @@ public:
void clearItems();
void addItem(ItemLibraryItem *item, int libId);
void addItem(ItemLibraryItem *item);
void privateInsert(int pos, QObject *item);
void privateRemove(int pos);
......
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