┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinmainwindow.cpp
diff options
context:
space:
mode:
authorTobias Koenig <[email protected]>2007-10-01 08:00:48 +0000
committerTobias Koenig <[email protected]>2007-10-01 08:00:48 +0000
commit29a1b2642139907ca9c448138b6aa110b64c3a03 (patch)
treef4bdec8b83b1f1d3b97630741a1b471d022aea70 /src/dolphinmainwindow.cpp
parentfd805228ae8092dc51647354d3fb83bef4197eb0 (diff)
Making KFileItemList value based.
svn path=/trunk/KDE/kdebase/apps/; revision=719514
Diffstat (limited to 'src/dolphinmainwindow.cpp')
-rw-r--r--src/dolphinmainwindow.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp
index f3dbfcf6e..fd7f65aa5 100644
--- a/src/dolphinmainwindow.cpp
+++ b/src/dolphinmainwindow.cpp
@@ -493,14 +493,9 @@ void DolphinMainWindow::deleteItems()
void DolphinMainWindow::properties()
{
- QList<KFileItem> list = m_activeViewContainer->view()->selectedItems();
- // ### KPropertiesDialog still uses pointer-based KFileItemList
- KFileItemList lst;
- // Can't be a const_iterator :(
- for ( QList<KFileItem>::iterator it = list.begin(), end = list.end() ; it != end ; ++it ) {
- lst << & *it; // ugly!
- }
- KPropertiesDialog dialog(lst, this);
+ const KFileItemList list = m_activeViewContainer->view()->selectedItems();
+
+ KPropertiesDialog dialog(list, this);
dialog.exec();
}