summaryrefslogtreecommitdiff
path: root/src/bookmarkspanel/bookmarksproxy.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-11-27 02:21:04 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-11-27 02:21:04 +0100
commit997d64c9743149b2b400891b09ab99e9613bf273 (patch)
tree98cb23b7331e4ffd2e760fb37b682df3ad7589db /src/bookmarkspanel/bookmarksproxy.cpp
parentrekonq 0.3.14 (diff)
downloadrekonq-997d64c9743149b2b400891b09ab99e9613bf273.tar.xz
Last structure change, promised!
Anyway, this moving/renaming helped me finding lots of strange circulary dependencies and easily solve them :) We have also a more organized structure, hopefully letting people work on different areas altogether.
Diffstat (limited to 'src/bookmarkspanel/bookmarksproxy.cpp')
-rw-r--r--src/bookmarkspanel/bookmarksproxy.cpp29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/bookmarkspanel/bookmarksproxy.cpp b/src/bookmarkspanel/bookmarksproxy.cpp
deleted file mode 100644
index 87d1ce71..00000000
--- a/src/bookmarkspanel/bookmarksproxy.cpp
+++ /dev/null
@@ -1,29 +0,0 @@
-#include "bookmarksproxy.h"
-
-BookmarksProxy::BookmarksProxy( QObject *parent ):
- QSortFilterProxyModel( parent )
-{
-}
-
-bool BookmarksProxy::filterAcceptsRow( int source_row, const QModelIndex &source_parent ) const
-{
- QModelIndex idx = sourceModel()->index( source_row, 0, source_parent );
-
-// return idx.data().toString().contains( filterRegExp() );
- return recursiveMatch( idx );
-}
-
-bool BookmarksProxy::recursiveMatch( const QModelIndex &index ) const
-{
- if( index.data().toString().contains( filterRegExp() ) ) {
- return true;
- }
-
- for( int childRow = 0; childRow < sourceModel()->rowCount( index ); ++childRow ) {
- if( recursiveMatch( sourceModel()->index( childRow, 0, index ) ) ) {
- return true;
- }
- }
-
- return false;
-}