29 #include "ui_systemhealthgadgetoptionspage.h"
31 #include <QtAlgorithms>
32 #include <QStringList>
36 : IOptionsPage(parent)
46 options_page =
new Ui::SystemHealthGadgetOptionsPage();
48 QWidget *optionsPageWidget =
new QWidget;
50 options_page->setupUi(optionsPageWidget);
53 options_page->svgFilePathChooser->setExpectedKind(Utils::PathChooser::File);
54 options_page->svgFilePathChooser->setPromptDialogFilter(tr(
"SVG image (*.svg)"));
55 options_page->svgFilePathChooser->setPromptDialogTitle(tr(
"Choose SVG image"));
56 options_page->svgFilePathChooser->setPath(m_config->
getSystemFile());
58 return optionsPageWidget;
68 m_config->
setSystemFile(options_page->svgFilePathChooser->path());
void setSystemFile(QString filename)
QWidget * createPage(QWidget *parent)
SystemHealthGadgetOptionsPage(SystemHealthGadgetConfiguration *config, QObject *parent=nullptr)