diff --git a/apps/opencs/model/prefs/modifiersetting.cpp b/apps/opencs/model/prefs/modifiersetting.cpp index 6273575e9..da6b2ccdd 100644 --- a/apps/opencs/model/prefs/modifiersetting.cpp +++ b/apps/opencs/model/prefs/modifiersetting.cpp @@ -34,7 +34,7 @@ namespace CSMPrefs widget->installEventFilter(this); // right clicking on button sets shortcut to RMB, so context menu should not appear - widget->setContextMenuPolicy(Qt::ContextMenuPolicy::PreventContextMenu); + widget->setContextMenuPolicy(Qt::PreventContextMenu); mButton = widget; diff --git a/apps/opencs/model/prefs/shortcutsetting.cpp b/apps/opencs/model/prefs/shortcutsetting.cpp index 4c3931e99..de495b9fc 100644 --- a/apps/opencs/model/prefs/shortcutsetting.cpp +++ b/apps/opencs/model/prefs/shortcutsetting.cpp @@ -42,7 +42,7 @@ namespace CSMPrefs widget->installEventFilter(this); // right clicking on button sets shortcut to RMB, so context menu should not appear - widget->setContextMenuPolicy(Qt::ContextMenuPolicy::PreventContextMenu); + widget->setContextMenuPolicy(Qt::PreventContextMenu); mButton = widget;