diff options
author | william <william.os4y@gmail.com> | 2015-03-26 21:54:09 +0100 |
---|---|---|
committer | william <william.os4y@gmail.com> | 2015-03-26 21:54:09 +0100 |
commit | c168111955fdaac4b546e82138de5e75545cfb07 (patch) | |
tree | 00494a256c392032a19821b9bbc83de0ac66bc1a /lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.cpp | |
parent | Merge remote-tracking branch 'upstream/master' into deskEditor (diff) | |
download | lumina-c168111955fdaac4b546e82138de5e75545cfb07.tar.gz lumina-c168111955fdaac4b546e82138de5e75545cfb07.tar.bz2 lumina-c168111955fdaac4b546e82138de5e75545cfb07.zip |
put the name lumina-fileinfo
Diffstat (limited to 'lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.cpp')
-rw-r--r-- | lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.cpp b/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.cpp index 0aa4a3de..5526f267 100644 --- a/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.cpp +++ b/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.cpp @@ -36,6 +36,8 @@ DesktopViewPlugin::DesktopViewPlugin(QWidget* parent, QString ID) : LDPlugin(par menu->addAction( LXDG::findIcon("zoom-out",""), tr("Decrease Icons"), this, SLOT(decreaseIconSize()) ); menu->addSeparator(); menu->addAction( LXDG::findIcon("edit-delete",""), tr("Delete"), this, SLOT(deleteItems()) ); + menu->addSeparator(); + menu->addAction( LXDG::findIcon("system-search",""), tr("Properties"), this, SLOT(displayProperties()) ); this->layout()->addWidget(list); this->setInitialSize(600,600); watcher = new QFileSystemWatcher(this); @@ -157,4 +159,11 @@ void DesktopViewPlugin::updateContents(){ } list->addItem(it); } -}
\ No newline at end of file +} + +void DesktopViewPlugin::displayProperties(){ + QList<QListWidgetItem*> sel = list->selectedItems(); + for(int i=0; i<sel.length(); i++){ + LSession::LaunchApplication("lumina-fileinfo \""+sel[i]->whatsThis()); + } +} |