]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/treeviewcontextmenu.cpp
Column view fixes:
[dolphin.git] / src / treeviewcontextmenu.cpp
index eae68c67b1c35f357998756396147757ff7f94e3..ec6d322008b5e98e66f14e2f86e6fd16111cfdb4 100644 (file)
 
 #include "renamedialog.h"
 
-#include <QApplication>
-#include <QClipboard>
+#include <QtGui/QApplication>
+#include <QtGui/QClipboard>
 
 TreeViewContextMenu::TreeViewContextMenu(QWidget* parent,
-        KFileItem* fileInfo) :
-        m_parent(parent),
-        m_fileInfo(fileInfo)
-{}
+                                         KFileItem* fileInfo) :
+    m_parent(parent),
+    m_fileInfo(fileInfo)
+{
+}
 
 TreeViewContextMenu::~TreeViewContextMenu()
-{}
+{
+}
 
 void TreeViewContextMenu::open()
 {
@@ -92,9 +94,9 @@ void TreeViewContextMenu::open()
 
     popup->addSeparator();
 
-    // insert 'Properties...' entry
-    QAction* propertiesAction = new QAction(i18n("Properties..."), this);
-    connect(this, SIGNAL(triggered()), this, SLOT(showProperties()));
+    // insert 'Properties' entry
+    QAction* propertiesAction = new QAction(i18n("Properties"), this);
+    connect(propertiesAction, SIGNAL(triggered()), this, SLOT(showProperties()));
     popup->addAction(propertiesAction);
 
     popup->exec(QCursor::pos());
@@ -160,7 +162,8 @@ void TreeViewContextMenu::deleteItem()
 
 void TreeViewContextMenu::showProperties()
 {
-    new KPropertiesDialog(m_fileInfo->url());
+    KPropertiesDialog dialog(m_fileInfo->url());
+    dialog.exec();
 }
 
 #include "treeviewcontextmenu.moc"