Make preferences() a public function

wilder
Nate Graham 7 years ago
parent f492398c93
commit db2315d79a
  1. 4
      src/gui/kstandardshortcut.cpp
  2. 6
      src/gui/kstandardshortcut.h

@ -554,5 +554,9 @@ const QList<QKeySequence> &moveToTrash()
{ {
return shortcut(MoveToTrash); return shortcut(MoveToTrash);
} }
const QList<QKeySequence> &preferences()
{
return shortcut(Preferences);
}
} }

@ -527,6 +527,12 @@ KCONFIGGUI_EXPORT const QList<QKeySequence> &renameFile();
*/ */
KCONFIGGUI_EXPORT const QList<QKeySequence> &moveToTrash(); KCONFIGGUI_EXPORT const QList<QKeySequence> &moveToTrash();
/**
* Opens the app's settings window. Default: Ctrl+Shift+Comma
* @return the shortcut of the standard accelerator
* @since 5.64
*/
KCONFIGGUI_EXPORT const QList<QKeySequence> &preferences();
} }
#endif // KSTANDARDSHORTCUT_H #endif // KSTANDARDSHORTCUT_H

Loading…
Cancel
Save