mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 13:30:34 +01:00
macOS fix: add Move diagram item with the keyboard arrow
This commit is contained in:
@@ -360,7 +360,11 @@ void Diagram::keyPressEvent(QKeyEvent *event)
|
|||||||
#pragma message("@TODO move code to new function")
|
#pragma message("@TODO move code to new function")
|
||||||
#endif
|
#endif
|
||||||
//Move item with the keyboard arrow
|
//Move item with the keyboard arrow
|
||||||
|
#ifdef Q_OS_MACOS
|
||||||
|
if(event->modifiers() == Qt::KeypadModifier)
|
||||||
|
#else
|
||||||
if(event->modifiers() == Qt::NoModifier)
|
if(event->modifiers() == Qt::NoModifier)
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
QSettings settings;
|
QSettings settings;
|
||||||
int xKeyGrid = settings.value(QStringLiteral("diagrameditor/key_Xgrid"),
|
int xKeyGrid = settings.value(QStringLiteral("diagrameditor/key_Xgrid"),
|
||||||
|
|||||||
Reference in New Issue
Block a user