MCPcopy Create free account
hub / github.com/deskflow/deskflow / initConnections

Method initConnections

src/lib/gui/dialogs/ClientConfigDialog.cpp:45–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45void ClientConfigDialog::initConnections() const
46{
47 connect(ui->buttonBox, &QDialogButtonBox::accepted, this, &ClientConfigDialog::save);
48 connect(ui->buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject);
49 connect(ui->buttonBox->button(QDialogButtonBox::Reset), &QPushButton::clicked, this, &ClientConfigDialog::load);
50 connect(
51 ui->buttonBox->button(QDialogButtonBox::RestoreDefaults), &QPushButton::clicked, this,
52 &ClientConfigDialog::resetToDefault
53 );
54
55 connect(ui->cbLanguageSync, &QCheckBox::checkStateChanged, this, &ClientConfigDialog::setButtonBoxEnabledButtons);
56 connect(ui->cbYScrollInvert, &QCheckBox::checkStateChanged, this, &ClientConfigDialog::setButtonBoxEnabledButtons);
57 connect(ui->sbYScrollScale, &QDoubleSpinBox::valueChanged, this, &ClientConfigDialog::setButtonBoxEnabledButtons);
58 connect(ui->cbXScrollInvert, &QCheckBox::checkStateChanged, this, &ClientConfigDialog::setButtonBoxEnabledButtons);
59 connect(ui->sbXScrollScale, &QDoubleSpinBox::valueChanged, this, &ClientConfigDialog::setButtonBoxEnabledButtons);
60}
61
62bool ClientConfigDialog::isModified() const
63{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected