From 737dd6ec3b8daa1517b392dbad1f13b090e5d33b Mon Sep 17 00:00:00 2001 From: Yoann Laissus Date: Sun, 18 Jul 2010 19:15:44 +0200 Subject: - Performance improvements (partial updates of the tree) - Synchronisation of the folded states between each windows - Code cleanup --- src/bookmarks/bookmarkspanel.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/bookmarks/bookmarkspanel.cpp') diff --git a/src/bookmarks/bookmarkspanel.cpp b/src/bookmarks/bookmarkspanel.cpp index 0dbb89c4..25aab516 100644 --- a/src/bookmarks/bookmarkspanel.cpp +++ b/src/bookmarks/bookmarkspanel.cpp @@ -126,7 +126,7 @@ void BookmarksPanel::setup() connect(m_treeView, SIGNAL(collapsed(const QModelIndex &)), this, SLOT(onCollapse(const QModelIndex &))); connect(m_treeView, SIGNAL(expanded(const QModelIndex &)), this, SLOT(onExpand(const QModelIndex &))); connect(search, SIGNAL(textChanged(const QString &)), proxy, SLOT(setFilterFixedString(const QString &))); - loadFoldedState(); + startLoadFoldedState(); _loaded = true; } @@ -152,7 +152,7 @@ void BookmarksPanel::onCollapse(const QModelIndex &index) KBookmark bookmark = bookmarkForIndex(index); bookmark.internalElement().setAttribute("folded", "yes"); - emit saveOnlyRequested(); + emit expansionChanged(); } @@ -163,11 +163,11 @@ void BookmarksPanel::onExpand(const QModelIndex &index) KBookmark bookmark = bookmarkForIndex(index); bookmark.internalElement().setAttribute("folded", "no"); - emit saveOnlyRequested(); + emit expansionChanged(); } -void BookmarksPanel::loadFoldedState() +void BookmarksPanel::startLoadFoldedState() { m_loadingState = true; loadFoldedState(QModelIndex()); -- cgit v1.2.1