29 #include "ui_qmlviewgadgetoptionspage.h"
34 #include <QtAlgorithms>
35 #include <QStringList>
39 : IOptionsPage(parent)
49 options_page =
new Ui::QmlViewGadgetOptionsPage();
51 QWidget *optionsPageWidget =
new QWidget;
53 options_page->setupUi(optionsPageWidget);
56 options_page->svgSourceFile->setExpectedKind(Utils::PathChooser::File);
57 options_page->svgSourceFile->setPromptDialogFilter(tr(
"QML file (*.qml)"));
58 options_page->svgSourceFile->setPromptDialogTitle(tr(
"Choose QML file"));
59 options_page->svgSourceFile->setPath(m_config->
dialFile());
61 return optionsPageWidget;
72 m_config->
setDialFile(options_page->svgSourceFile->path());
QWidget * createPage(QWidget *parent)
QmlViewGadgetOptionsPage(QmlViewGadgetConfiguration *config, QObject *parent=nullptr)
void setDialFile(QString dialFile)