cutter/src/widgets/WidgetShortcuts.h
Kārlis Seņko 585dc961db Qt6 keyboard and mouse API compatibility
* Some of the API replaced int with QKeyCombination, use typedef in
cutter code
* Use of + operator depracted, replace with recommended "|" operator
* QMouseEvent globalPos and localPos renamed to globalPosition and
position, replace with helper function or use of integer position which
wasn't renamed.
2021-04-24 13:13:36 +03:00

15 lines
484 B
C

#ifndef WIDGETSHORTCUTS_H
#define WIDGETSHORTCUTS_H
#include <QKeySequence>
#include <QHash>
#include <QString>
static const QHash<QString, QKeySequence> widgetShortcuts = {
{ "StringsWidget", Qt::SHIFT | Qt::Key_F12 }, { "GraphWidget", Qt::SHIFT | Qt::Key_G },
{ "ImportsWidget", Qt::SHIFT | Qt::Key_I }, { "ExportsWidget", Qt::SHIFT | Qt::Key_E },
{ "ConsoleWidget", Qt::CTRL | Qt::Key_QuoteLeft }, { "ConsoleWidgetAlternative", Qt::Key_Colon }
};
#endif