#include <WGColorSelectorSettings.h>
Definition at line 74 of file WGColorSelectorSettings.h.
◆ WGColorSelectorSettingsDialog()
| WGColorSelectorSettingsDialog::WGColorSelectorSettingsDialog |
( |
QWidget * | parent = 0 | ) |
|
|
explicit |
Definition at line 302 of file WGColorSelectorSettings.cpp.
303 : QDialog(parent)
305{
306 QLayout*
layout =
new QVBoxLayout(
this);
308
310
311 QDialogButtonBox* buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok|QDialogButtonBox::Cancel|QDialogButtonBox::RestoreDefaults,
312 Qt::Horizontal,
313 this);
314 layout->addWidget(buttonBox);
315
316 connect(buttonBox, SIGNAL(accepted()),
m_widget, SLOT(savePreferences()));
317 connect(buttonBox, SIGNAL(accepted()),
this, SLOT(accept()));
318 connect(buttonBox, SIGNAL(rejected()),
this, SLOT(reject()));
319 connect(buttonBox->button(QDialogButtonBox::RestoreDefaults),
320 SIGNAL(clicked()),
m_widget, SLOT(loadDefaultPreferences()));
321}
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
WGColorSelectorSettings * m_widget
void loadPreferences() override
References connect(), WGColorSelectorSettings::loadPreferences(), and m_widget.
◆ m_widget
The documentation for this class was generated from the following files: