瀏覽代碼

frontend: Don't mark OBSHotkeyEdit as read-only on macOS

Recent styling changes mean read-only QLineEdits no longer visually take
focus. There are better ways to remove the input cursor, and if we do
that that should probably be all operating systems anyways.
Sebastian Beckmann 3 月之前
父節點
當前提交
a7d68842fb
共有 1 個文件被更改,包括 0 次插入10 次删除
  1. 0 10
      frontend/settings/OBSHotkeyEdit.hpp

+ 0 - 10
frontend/settings/OBSHotkeyEdit.hpp

@@ -43,11 +43,6 @@ public:
 		  original(original),
 		  settings(settings)
 	{
-#ifdef __APPLE__
-		// disable the input cursor on OSX, focus should be clear
-		// enough with the default focus frame
-		setReadOnly(true);
-#endif
 		setAttribute(Qt::WA_InputMethodEnabled, false);
 		setAttribute(Qt::WA_MacShowFocusRect, true);
 		InitSignalHandler();
@@ -55,11 +50,6 @@ public:
 	}
 	OBSHotkeyEdit(QWidget *parent = nullptr) : QLineEdit(parent), original({}), settings(nullptr)
 	{
-#ifdef __APPLE__
-		// disable the input cursor on OSX, focus should be clear
-		// enough with the default focus frame
-		setReadOnly(true);
-#endif
 		setAttribute(Qt::WA_InputMethodEnabled, false);
 		setAttribute(Qt::WA_MacShowFocusRect, true);
 		InitSignalHandler();