diff options
author | Rene Ladan <rene@FreeBSD.org> | 2018-12-31 18:19:25 +0000 |
---|---|---|
committer | Rene Ladan <rene@FreeBSD.org> | 2018-12-31 18:19:25 +0000 |
commit | 4beb9c8d55739fb0b2564a547b6c2d9340f8f33d (patch) | |
tree | 735a4795ef7d10354d0e0626c12e7289796a98c3 /audio/kid3-qt5/files/patch-src_app_kde_kdemainwindow.cpp | |
parent | Manually (!) remove audio/kid3-qt4 which depended on expired KDE4. (diff) |
Copy audio/kid3-kde4 (removed in r488807) as audio/kid3-qt5 and cleanup Makefile.
Diffstat (limited to 'audio/kid3-qt5/files/patch-src_app_kde_kdemainwindow.cpp')
-rw-r--r-- | audio/kid3-qt5/files/patch-src_app_kde_kdemainwindow.cpp | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/audio/kid3-qt5/files/patch-src_app_kde_kdemainwindow.cpp b/audio/kid3-qt5/files/patch-src_app_kde_kdemainwindow.cpp new file mode 100644 index 000000000000..36c39627aeb6 --- /dev/null +++ b/audio/kid3-qt5/files/patch-src_app_kde_kdemainwindow.cpp @@ -0,0 +1,45 @@ +Squash startup warnings for KF5 app. + +Shortcut for action "open_directory" "O&pen Directory..." set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead. +Shortcut for action "filelist_rename" "&Rename" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead. +Shortcut for action "filelist_delete" "&Move to Trash" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead. + +--- src/app/kde/kdemainwindow.cpp.orig 2018-03-18 20:56:24 UTC ++++ src/app/kde/kdemainwindow.cpp +@@ -162,7 +162,12 @@ void KdeMainWindow::initActions() + action = new KAction(KIcon(QLatin1String("document-open")), + tr("O&pen Directory..."), this); + action->setStatusTip(tr("Opens a directory")); ++#if QT_VERSION >= 0x050000 ++ collection->setDefaultShortcut(action, ++ QKeySequence(Qt::CTRL + Qt::Key_D)); ++#else + action->setShortcut(KShortcut(QLatin1String("Ctrl+D"))); ++#endif + collection->addAction(QLatin1String("open_directory"), action); + connect(action, SIGNAL(triggered()), impl(), SLOT(slotFileOpenDirectory())); + action = new KAction(KIcon(QLatin1String("document-import")), +@@ -359,13 +364,23 @@ void KdeMainWindow::initActions() + collection->addAction(QLatin1String("filelist_focus"), action); + connect(action, SIGNAL(triggered()), form(), SLOT(setFocusFileList())); + action = new KAction(tr("&Rename"), this); ++#if QT_VERSION >= 0x050000 ++ collection->setDefaultShortcut(action, ++ QKeySequence(Qt::Key_F2)); ++#else + action->setShortcut(QKeySequence(Qt::Key_F2)); ++#endif + action->setShortcutContext(Qt::WidgetShortcut); + connect(action, SIGNAL(triggered()), impl(), SLOT(renameFile())); + collection->addAction(QLatin1String("filelist_rename"), action); + form()->getFileList()->setRenameAction(action); + action = new KAction(tr("&Move to Trash"), this); ++#if QT_VERSION >= 0x050000 ++ collection->setDefaultShortcut(action, ++ QKeySequence::Delete); ++#else + action->setShortcut(QKeySequence::Delete); ++#endif + action->setShortcutContext(Qt::WidgetShortcut); + connect(action, SIGNAL(triggered()), impl(), SLOT(deleteFile())); + collection->addAction(QLatin1String("filelist_delete"), action); |