6 #include "ui_settingsadvancedcomponent.h"
12 CSettingsAdvancedComponent::CSettingsAdvancedComponent(QWidget *parent)
17 const bool crashDumpUploadEnabled = m_crashDumpUploadEnabled.
getThreadLocal();
18 ui->cb_crashDumpsUpload->setChecked(crashDumpUploadEnabled);
19 connect(ui->cb_crashDumpsUpload, &QCheckBox::stateChanged,
this,
20 &CSettingsAdvancedComponent::crashDumpUploadEnabledChanged);
25 void CSettingsAdvancedComponent::crashDumpUploadEnabledChanged(
int state)
27 auto text = ui->cb_crashDumpsUpload->text();
28 if (!text.endsWith(
"(restart needed)"))
30 ui->cb_crashDumpsUpload->setText(ui->cb_crashDumpsUpload->text() +
" (restart needed)");
33 m_crashDumpUploadEnabled.
set(state == Qt::Checked);
Configure general settings.
virtual ~CSettingsAdvancedComponent()
Destructor.
CStatusMessage set(const T &value, qint64 timestamp=0)
Write a new value. Must be called from the thread in which the owner lives.
const T & getThreadLocal() const
Read the current value.
High level reusable GUI components.
Free functions in swift::misc.