6 #include "ui_settingsadvancedcomponent.h"
12 CSettingsAdvancedComponent::CSettingsAdvancedComponent(
QWidget *parent)
17 const bool crashDumpUploadEnabled = m_crashDumpUploadEnabled.
getThreadLocal();
18 ui->cb_crashDumpsUpload->setChecked(crashDumpUploadEnabled);
20 &CSettingsAdvancedComponent::crashDumpUploadEnabledChanged);
25 void CSettingsAdvancedComponent::crashDumpUploadEnabledChanged(
Qt::CheckState 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)");
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.
void checkStateChanged(Qt::CheckState state)
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)