aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2015-04-21 00:12:51 -0400
committerKen Moore <moorekou@gmail.com>2015-04-21 00:12:51 -0400
commit6729dcd0cdafe09b061f9d7b36648388bbae4534 (patch)
tree7605ac7551ec061013e60aa9a73cc9380ebe3c9b /lumina-desktop
parentMake sure to check the list of watched files and reset it if something was re... (diff)
parenttest the return code of the command to mv file to refresh the icon. (diff)
downloadlumina-6729dcd0cdafe09b061f9d7b36648388bbae4534.tar.gz
lumina-6729dcd0cdafe09b061f9d7b36648388bbae4534.tar.bz2
lumina-6729dcd0cdafe09b061f9d7b36648388bbae4534.zip
Merge pull request #92 from william-os4y/deskEditor
I propose you the lumina-fileinfo
Diffstat (limited to 'lumina-desktop')
-rw-r--r--lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.cpp11
-rw-r--r--lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.h1
2 files changed, 11 insertions, 1 deletions
diff --git a/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.cpp b/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.cpp
index 273f1958..f8e85cea 100644
--- a/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.cpp
+++ b/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.cpp
@@ -37,6 +37,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);
@@ -165,4 +167,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());
+ }
+}
diff --git a/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.h b/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.h
index 09cb7bcf..90bc20eb 100644
--- a/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.h
+++ b/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.h
@@ -38,6 +38,7 @@ private slots:
void increaseIconSize();
void decreaseIconSize();
void updateContents();
+ void displayProperties();
public slots:
bgstack15