23 m_ui(
new QT_PREPEND_NAMESPACE(qdesigner_internal)::Ui::TemplateOptionsWidget)
27 m_ui->m_addTemplatePathButton->setIcon(
28 qdesigner_internal::createIconSet(
"plus.png"_L1));
29 m_ui->m_removeTemplatePathButton->setIcon(
30 qdesigner_internal::createIconSet(
"minus.png"_L1));
32 connect(m_ui->m_templatePathListWidget, &QListWidget::itemSelectionChanged,
33 this, &TemplateOptionsWidget::templatePathSelectionChanged);
34 connect(m_ui->m_addTemplatePathButton, &QAbstractButton::clicked,
35 this, &TemplateOptionsWidget::addTemplatePath);
36 connect(m_ui->m_removeTemplatePathButton, &QAbstractButton::clicked,
37 this, &TemplateOptionsWidget::removeTemplatePath);
101 QString rc = core->dialogGui()->getExistingDirectory(parent,
102 tr(
"Pick a directory to save templates in"));
106 if (rc.endsWith(QDir::separator()))
107 rc.remove(rc.size() - 1, 1);
QString name() const override