Commit 115620aa authored by Tim Jenssen's avatar Tim Jenssen Committed by Marco Bubke
Browse files

QmlDesigner: cleanup unused methods



 - remove javascript methods: scrollView(delta), resetView()
 - remove javascript related signals
 - remove visibleCount debug output

Change-Id: I63b0a204d7f570986e41fc9fb3762f13e5d63d79
Reviewed-by: default avatarMarco Bubke <marco.bubke@digia.com>
parent a850dc20
......@@ -60,23 +60,9 @@ pixmap itemPixmap
Rectangle {
id: itemsView
// public
function scrollView(delta) {
scrollbar.scroll(-delta / style.scrollbarWheelDeltaFactor)
}
function resetView() {
scrollbar.reset()
}
signal itemSelected(int itemLibId)
signal itemDragged(int itemLibId)
signal stopDragAndDrop
// internal
signal expandAllEntries
ItemsViewStyle { id: style }
......
......@@ -269,7 +269,6 @@ int ItemLibraryModel::visibleSectionCount() const
if (sectionModel->isVisible())
++visibleCount;
++sectionIterator;
qDebug() << __FUNCTION__ << visibleCount;
}
return visibleCount;
......
......@@ -225,7 +225,6 @@ void ItemLibraryWidget::setSearchFilter(const QString &searchFilter)
{
if (m_stackedWidget->currentIndex() == 0) {
m_itemLibraryModel->setSearchText(searchFilter);
emit resetItemsView();
m_itemsView->update();
} else {
QStringList nameFilterList;
......@@ -303,9 +302,6 @@ void ItemLibraryWidget::reloadQmlSource()
QQuickItem *rootItem = qobject_cast<QQuickItem*>(m_itemsView->rootObject());
connect(rootItem, SIGNAL(itemSelected(int)), this, SLOT(showItemInfo(int)));
connect(rootItem, SIGNAL(itemDragged(int)), this, SLOT(startDragAndDropDelayed(int)));
connect(this, SIGNAL(scrollItemsView(QVariant)), rootItem, SLOT(scrollView(QVariant)));
connect(this, SIGNAL(resetItemsView()), rootItem, SLOT(resetView()));
}
void ItemLibraryWidget::setImportFilter(FilterChangeFlag flag)
......
......@@ -114,8 +114,6 @@ protected:
signals:
void itemActivated(const QString& itemName);
void scrollItemsView(QVariant delta);
void resetItemsView();
void qtBasicOnlyChecked(bool b);
void meegoChecked(bool b);
......
Supports Markdown
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