浏览代码

UI: Hide Alpha channel field from the color picker

Do not allow the user to select the alpha component of a color.
SuslikV 6 年之前
父节点
当前提交
7bbd45f8d0
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      UI/properties-view.cpp

+ 1 - 2
UI/properties-view.cpp

@@ -1675,8 +1675,7 @@ bool WidgetInfo::ColorChanged(const char *setting)
 	long long  val   = obs_data_get_int(view->settings, setting);
 	QColor     color = color_from_int(val);
 
-	QColorDialog::ColorDialogOptions options =
-		QColorDialog::ShowAlphaChannel;
+	QColorDialog::ColorDialogOptions options = 0;
 
 	/* The native dialog on OSX has all kinds of problems, like closing
 	 * other open QDialogs on exit, and