SearchWidget and CollectionTreeItemModel cleanup
authorRalf Engels <ralf-engels@gmx.de>
Mon, 17 Jan 2011 22:50:21 +0000 (23:50 +0100)
committerRalf Engels <ralf-engels@gmx.de>
Mon, 17 Jan 2011 22:50:21 +0000 (23:50 +0100)
commita1b74a684565bbe1d9a7706005cf327a70b08b68
tree50521205172c1a6af79aea4ef5f1a6c4c9d19841
parentfbd2463585e70c1979867c1af8fe1094b86015de
SearchWidget and CollectionTreeItemModel cleanup
Now the SearchWidget itself has the timer and provides sensible signals.
All other objects don't need a timer any more and just connect to one signal.
The CollectionTreeItemModelBase lost several unneeded functions.
The CollectionTreeItemModel was made abstract rendering SingleCollectionTreeItemModel obsolete
This in turn allowed me to use only one TreeView in CollectionWidget, improving the memory consumption in the case where someone clicked on the merge collection button.
Previously we had two TreeViews and two complete models instantiated. Now it's only one.
That in turn allowed me to get rid of the QStackWidget which in turn fixed the tab-behaviour of the collection view
22 files changed:
src/browsers/BrowserCategoryList.cpp
src/browsers/BrowserCategoryList.h
src/browsers/CollectionTreeItem.cpp
src/browsers/CollectionTreeItem.h
src/browsers/CollectionTreeItemModel.cpp
src/browsers/CollectionTreeItemModel.h
src/browsers/CollectionTreeItemModelBase.cpp
src/browsers/CollectionTreeItemModelBase.h
src/browsers/CollectionTreeView.cpp
src/browsers/CollectionTreeView.h
src/browsers/SingleCollectionTreeItemModel.cpp
src/browsers/SingleCollectionTreeItemModel.h
src/browsers/collectionbrowser/CollectionWidget.cpp
src/browsers/collectionbrowser/CollectionWidget.h
src/browsers/filebrowser/FileBrowser.cpp
src/browsers/filebrowser/FileBrowser.h
src/browsers/filebrowser/FileBrowser_p.h
src/context/applets/wikipedia/WikipediaApplet.cpp
src/services/ServiceBase.cpp
src/widgets/SearchWidget.cpp
src/widgets/SearchWidget.h
tests/browsers/TestSingleCollectionTreeItemModel.cpp