Compare commits

..

1 Commits

Author SHA1 Message Date
ChuckNr11 33863d3b85 Merge 0a658d5d61 into a140c5ad39 2024-12-15 21:17:17 +00:00
7 changed files with 24 additions and 31 deletions
BIN
View File
Binary file not shown.
+3 -9
View File
@@ -226,15 +226,9 @@ void DynamicTextFieldEditor::fillInfoComboBox()
else { else {
strl = QETInformation::elementInfoKeys(); strl = QETInformation::elementInfoKeys();
} }
//We use a QMap because the keys of the map are sorted, then no matter the current local, for (int i=0; i<strl.size();++i) {
//the value of the combo box are always alphabetically sorted ui -> m_elmt_info_cb -> addItem(strl[i], QETInformation::translatedInfoKey(strl[i]));
QMap <QString, QString> info_map; }
for(const QString& str : strl)
info_map.insert(QETInformation::translatedInfoKey(str), str);
for (const QString& key : info_map.keys())
ui -> m_elmt_info_cb -> addItem(key, info_map.value(key));
} }
void DynamicTextFieldEditor::on_m_x_sb_editingFinished() void DynamicTextFieldEditor::on_m_x_sb_editingFinished()
+1 -1
View File
@@ -510,7 +510,7 @@ void QETProject::setDefaultTitleBlockProperties(const TitleBlockProperties &titl
collection = QETApp::commonTitleBlockTemplatesCollection(); collection = QETApp::commonTitleBlockTemplatesCollection();
break; break;
case QET::Company : case QET::Company :
collection = QETApp::companyTitleBlockTemplatesCollection(); // collection = QETApp::companyTitleBlockTemplatesCollection();
break; break;
case QET::Custom : case QET::Custom :
collection = QETApp::customTitleBlockTemplatesCollection(); collection = QETApp::customTitleBlockTemplatesCollection();
-1
View File
@@ -57,7 +57,6 @@ NewDiagramPage::NewDiagramPage(QETProject *project,
// default titleblock properties // default titleblock properties
QList <TitleBlockTemplatesCollection *> c; QList <TitleBlockTemplatesCollection *> c;
c << QETApp::commonTitleBlockTemplatesCollection() c << QETApp::commonTitleBlockTemplatesCollection()
<< QETApp::companyTitleBlockTemplatesCollection()
<< QETApp::customTitleBlockTemplatesCollection(); << QETApp::customTitleBlockTemplatesCollection();
if (m_project) c << m_project->embeddedTitleBlockTemplatesCollection(); if (m_project) c << m_project->embeddedTitleBlockTemplatesCollection();
ipw = new TitleBlockPropertiesWidget( ipw = new TitleBlockPropertiesWidget(
+1 -1
View File
@@ -49,7 +49,7 @@ TitleBlockPropertiesWidget::TitleBlockPropertiesWidget(
/** /**
@brief TitleBlockPropertiesWidget::TitleBlockPropertiesWidget @brief TitleBlockPropertiesWidget::TitleBlockPropertiesWidget
default constructor with template list default constructor with tempalte list
@param tbt_collection template list @param tbt_collection template list
@param titleblock properties to edit @param titleblock properties to edit
@param current_date if true, display the radio button "current date" @param current_date if true, display the radio button "current date"