┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinmainwindow.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2009-10-11 17:43:30 +0000
committerPeter Penz <[email protected]>2009-10-11 17:43:30 +0000
commitf9b2c9f0c7d0e56cf38b469389d13dde44656996 (patch)
tree4ae57a6e786e4960d848f6dc69489359f9a3269f /src/dolphinmainwindow.cpp
parent44beda2da53b6bc76f4844ceca90db58b349ffd1 (diff)
The text of the paste-action is modified dynamically by Dolphin (e. g. to "Paste One Folder"). To prevent that the size of the toolbar changes due to the long text, the text "Paste" is used when the action is shown in the toolbar.
Thanks to Christoph Feck for the hint! BUG: 209392 svn path=/trunk/KDE/kdebase/apps/; revision=1033985
Diffstat (limited to 'src/dolphinmainwindow.cpp')
-rw-r--r--src/dolphinmainwindow.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp
index e83b8ac48..f491ea8e0 100644
--- a/src/dolphinmainwindow.cpp
+++ b/src/dolphinmainwindow.cpp
@@ -1164,7 +1164,11 @@ void DolphinMainWindow::setupActions()
cutShortcut.remove(Qt::SHIFT + Qt::Key_Delete, KShortcut::KeepEmpty);
cut->setShortcut(cutShortcut);
KStandardAction::copy(this, SLOT(copy()), actionCollection());
- KStandardAction::paste(this, SLOT(paste()), actionCollection());
+ KAction* paste = KStandardAction::paste(this, SLOT(paste()), actionCollection());
+ // The text of the paste-action is modified dynamically by Dolphin
+ // (e. g. to "Paste One Folder"). To prevent that the size of the toolbar changes
+ // due to the long text, the text "Paste" is used:
+ paste->setIconText(i18nc("@action:inmenu Edit", "Paste"));
KAction* selectAll = actionCollection()->addAction("select_all");
selectAll->setText(i18nc("@action:inmenu Edit", "Select All"));