Dialogs example: add checkbox for ColorDialogOption::NoEyeDropperButton
If we wish to introduce a new color dialog option, then we might as well use it in our example. Change-Id: I7771d9d50e2ab0489fbeece8dea38a0b72b9b21e Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
parent
b209f943d2
commit
fc9aae544b
@ -191,6 +191,7 @@ Dialog::Dialog(QWidget *parent)
|
||||
colorDialogOptionsWidget->addCheckBox(doNotUseNativeDialog, QColorDialog::DontUseNativeDialog);
|
||||
colorDialogOptionsWidget->addCheckBox(tr("Show alpha channel") , QColorDialog::ShowAlphaChannel);
|
||||
colorDialogOptionsWidget->addCheckBox(tr("No buttons") , QColorDialog::NoButtons);
|
||||
colorDialogOptionsWidget->addCheckBox(tr("Hide Color Picker") , QColorDialog::NoEyeDropperButton);
|
||||
layout->addItem(new QSpacerItem(0, 0, QSizePolicy::Ignored, QSizePolicy::MinimumExpanding), 1, 0);
|
||||
layout->addWidget(colorDialogOptionsWidget, 2, 0, 1 ,2);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user