27 #include "ui_usagestatsoptionpage.h"
32 : IOptionsPage(parent)
44 m_page =
new Ui::UsageStatsOptionPage();
45 QWidget *w =
new QWidget(parent);
47 m_page->cb_AllowSending->setChecked(m_config->getSendUsageStats());
48 m_page->cb_AllowPrivate->setChecked(m_config->getSendPrivateData());
49 m_page->label_UUID->setText(QString(
"UUID: ") + m_config->getInstallationUUID());
51 m_page->cbDebugLogLevel->clear();
57 for (
int i = 0;
i < m_page->cbDebugLogLevel->count();
i++) {
58 if (m_page->cbDebugLogLevel->itemData(
i).toInt() == m_config->getDebugLogLevel())
59 m_page->cbDebugLogLevel->setCurrentIndex(
i);
67 m_config->setSendUsageStats(m_page->cb_AllowSending->isChecked());
68 m_config->setSendPrivateData(m_page->cb_AllowPrivate->isChecked());
69 m_config->setDebugLogLevel(m_page->cbDebugLogLevel->currentData().toInt());
UsageStatsOptionPage(QObject *parent=nullptr)
QWidget * createPage(QWidget *parent)
virtual ~UsageStatsOptionPage()