mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
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
This commit is contained in:
parent
44beda2da5
commit
f9b2c9f0c7
1 changed files with 5 additions and 1 deletions
|
@ -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"));
|
||||
|
|
Loading…
Reference in a new issue