[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kfile
From: Kevin Ottens <ervin () kde ! org>
Date: 2007-04-06 13:19:48
Message-ID: 1175865588.507889.21844.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 651076 by ervin:
Make it use the places system instead of the speedbar.
Also fix a connect issue that prevented to jump at the right place in
the tree when the URL changed.
M +12 -12 kdirselectdialog.cpp
--- trunk/KDE/kdelibs/kfile/kdirselectdialog.cpp #651075:651076
@@ -30,7 +30,8 @@
#include <kcombobox.h>
#include <kconfig.h>
#include <kfiledialog.h>
-#include "kfilespeedbar.h"
+#include "kfileplacesview.h"
+#include "kfileplacesmodel.h"
#include <kglobalsettings.h>
#include <kicon.h>
#include <kiconloader.h>
@@ -63,7 +64,7 @@
}
KActionCollection *actions;
- KFileSpeedBar *speedBar;
+ KFilePlacesView *placesView;
KHistoryCombo *urlCombo;
KFileTreeBranch *branch;
QString recentDirClass;
@@ -112,11 +113,12 @@
hlay->setSpacing(spacingHint());
m_mainLayout = new QVBoxLayout();
d->actions=new KActionCollection(this);
- d->speedBar = new KFileSpeedBar( page );
- d->speedBar->setObjectName( QLatin1String( "speedbar" ) );
- connect( d->speedBar, SIGNAL( activated( const KUrl& )),
+ d->placesView = new KFilePlacesView( page );
+ d->placesView->setModel(new KFilePlacesModel(d->placesView));
+ d->placesView->setObjectName( QLatin1String( "speedbar" ) );
+ connect( d->placesView, SIGNAL( urlChanged( const KUrl& )),
SLOT( setCurrentUrl( const KUrl& )) );
- hlay->addWidget( d->speedBar, 0 );
+ hlay->addWidget( d->placesView, 0 );
hlay->addLayout( m_mainLayout, 1 );
// Create dir list
@@ -215,10 +217,10 @@
d->branch = createBranch( root );
}
- d->branch->disconnect( SIGNAL( populateFinished( KFileTreeViewItem * )),
- this, SLOT( slotNextDirToList( KFileTreeViewItem *)));
- connect( d->branch, SIGNAL( populateFinished( KFileTreeViewItem * )),
- SLOT( slotNextDirToList( KFileTreeViewItem * ) ));
+ d->branch->disconnect( SIGNAL( populateFinished( K3FileTreeViewItem * )),
+ this, SLOT( slotNextDirToList( K3FileTreeViewItem *)));
+ connect( d->branch, SIGNAL( populateFinished( K3FileTreeViewItem * )),
+ SLOT( slotNextDirToList( K3FileTreeViewItem * ) ));
KUrl dirToList = root;
d->dirsToList.clear();
@@ -306,8 +308,6 @@
conf.writeEntry( "DirSelectDialog Size", size(),
KConfigBase::Persistent|KConfigBase::Global );
- d->speedBar->save( config );
-
config->sync();
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic