From c168111955fdaac4b546e82138de5e75545cfb07 Mon Sep 17 00:00:00 2001 From: william Date: Thu, 26 Mar 2015 21:54:09 +0100 Subject: put the name lumina-fileinfo --- .../desktop-plugins/desktopview/DesktopViewPlugin.cpp | 11 ++++++++++- .../desktop-plugins/desktopview/DesktopViewPlugin.h | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'lumina-desktop/desktop-plugins') 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 sel = list->selectedItems(); + for(int i=0; iwhatsThis()); + } +} diff --git a/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.h b/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.h index 61e1caf9..86240dc8 100644 --- a/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.h +++ b/lumina-desktop/desktop-plugins/desktopview/DesktopViewPlugin.h @@ -37,6 +37,7 @@ private slots: void increaseIconSize(); void decreaseIconSize(); void updateContents(); + void displayProperties(); public slots: -- cgit