62 int template_index =
templates_ -> currentIndex();
63 return(template_index != -1 ?
templates_ -> currentText() : QString());
76 if (template_index != -1) {
107 if (indexes.count())
return(indexes.first());
133 if (!current_collection)
return;
137 QStringList available_templates = current_collection -> templates();
138 if (available_templates.count()) {
139 foreach (QString template_name, available_templates) {
140 templates_ -> addItem(template_name, QVariant(
true));
TitleBlockTemplateLocationChooser(const TitleBlockTemplateLocation &, QWidget *=nullptr)
virtual void setLocation(const TitleBlockTemplateLocation &)
virtual QString name() const
virtual int indexForCollection(TitleBlockTemplatesCollection *) const
virtual TitleBlockTemplateLocation location() const
QHash< int, TitleBlockTemplatesCollection * > collections_index_
Collections index within the combo box.
QComboBox * templates_
Existing templates combo box.
virtual void updateTemplates()
static QList< TitleBlockTemplatesCollection * > availableTitleBlockTemplatesCollections()
virtual void updateCollections()
virtual TitleBlockTemplatesCollection * collection() const
TitleBlockTemplatesCollection * parentCollection() const
~TitleBlockTemplateLocationChooser() override
QFormLayout * form_layout_