Explorar o código

Add default value for ColorDialogOption argument

Julien Finet %!s(int64=15) %!d(string=hai) anos
pai
achega
58171260a8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Libs/Widgets/ctkColorDialog.h

+ 1 - 1
Libs/Widgets/ctkColorDialog.h

@@ -73,7 +73,7 @@ public:
   /// The \a options argument allows you to customize the dialog;
   /// QColorDialog::DontUseNativeDialog is forced
   static QColor getColor(const QColor &initial, QWidget *parent,
-                         const QString &title, ColorDialogOptions options);
+                         const QString &title, ColorDialogOptions options = 0);
   /// Add a custom widget as an additional tab of the color dialog created by 
   /// ctkColorDialog::getColor. \a label is title of the tab and \a signal is the signal fired by 
   /// the widget whenever a QColor is changed, typically: SIGNAL(currentColorChanged(QColor)). It