#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()
{
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());
void TreeViewContextMenu::showProperties()
{
- new KPropertiesDialog(m_fileInfo->url());
+ KPropertiesDialog dialog(m_fileInfo->url());
+ dialog.exec();
}
#include "treeviewcontextmenu.moc"