[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-panel-devel
Subject: Fwd: KDE/kdebase/apps/plasma/applets/folderview
From: Alex Merry <kde () randomguy3 ! me ! uk>
Date: 2008-08-06 20:23:37
Message-ID: 200808062123.43183.kde () randomguy3 ! me ! uk
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
Sorry, meant to CCMAIL in the commit itself.
Should I backport this to 4.1?
Alex
---------- Forwarded Message ----------
Subject: KDE/kdebase/apps/plasma/applets/folderview
Date: Wednesday 06 August 2008
From: Alex Merry <kde@randomguy3.me.uk>
To: kde-commits@kde.org
SVN commit 843259 by alexmerry:
Honour Dolphin's "Show delete command" option in folderview.
BUG: 163701
M +9 -0 folderview.cpp
--- trunk/KDE/kdebase/apps/plasma/applets/folderview/folderview.cpp
#843258:843259
@@ -1057,6 +1057,7 @@
SLOT(moveToTrash(Qt::MouseButtons, Qt::KeyboardModifiers)));
KAction *del = new KAction(i18n("&Delete"), this);
+ del->setIcon(KIcon("edit-delete"));
del->setShortcut(Qt::SHIFT + Qt::Key_Delete);
connect(del, SIGNAL(triggered()), SLOT(deleteSelectedIcons()));
@@ -1279,9 +1280,17 @@
QList<QAction*> editActions;
editActions.append(m_actionCollection.action("rename"));
+
+ KSharedConfig::Ptr dolphinConfig =
+ KSharedConfig::openConfig("dolphinrc", KConfig::IncludeGlobals);
+ const KConfigGroup dolphinKdeConfig(dolphinConfig, "KDE");
+ bool showDeleteCommand = dolphinKdeConfig.readEntry("ShowDeleteCommand",
false);
if (!hasRemoteFiles) {
editActions.append(m_actionCollection.action("trash"));
} else {
+ showDeleteCommand = true;
+ }
+ if (showDeleteCommand) {
editActions.append(m_actionCollection.action("del"));
}
-------------------------------------------------------
--
Proud KDE hacker: http://www.kde.org
Get KDE 4.1 - out now!
Arch Linux: perfect for geeks like me - http://www.archlinux.org
OpenSUSE: just works - http://www.opensuse.org
["signature.asc" (application/pgp-signature)]
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic