mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-06-27 11:34:12 +02:00
Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 34cc26a325 | |||
| ba14c6112e | |||
| cb8256bd48 | |||
| 3dd512b587 | |||
| 31c0267cd5 | |||
| 88b2955b00 | |||
| 46378ca2a7 | |||
| c7481011e8 | |||
| 15d9708c46 | |||
| 3b32daf15d |
Binary file not shown.
@@ -226,9 +226,15 @@ void DynamicTextFieldEditor::fillInfoComboBox()
|
||||
else {
|
||||
strl = QETInformation::elementInfoKeys();
|
||||
}
|
||||
for (int i=0; i<strl.size();++i) {
|
||||
ui -> m_elmt_info_cb -> addItem(strl[i], QETInformation::translatedInfoKey(strl[i]));
|
||||
}
|
||||
//We use a QMap because the keys of the map are sorted, then no matter the current local,
|
||||
//the value of the combo box are always alphabetically sorted
|
||||
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()
|
||||
|
||||
@@ -510,7 +510,7 @@ void QETProject::setDefaultTitleBlockProperties(const TitleBlockProperties &titl
|
||||
collection = QETApp::commonTitleBlockTemplatesCollection();
|
||||
break;
|
||||
case QET::Company :
|
||||
// collection = QETApp::companyTitleBlockTemplatesCollection();
|
||||
collection = QETApp::companyTitleBlockTemplatesCollection();
|
||||
break;
|
||||
case QET::Custom :
|
||||
collection = QETApp::customTitleBlockTemplatesCollection();
|
||||
|
||||
@@ -57,6 +57,7 @@ NewDiagramPage::NewDiagramPage(QETProject *project,
|
||||
// default titleblock properties
|
||||
QList <TitleBlockTemplatesCollection *> c;
|
||||
c << QETApp::commonTitleBlockTemplatesCollection()
|
||||
<< QETApp::companyTitleBlockTemplatesCollection()
|
||||
<< QETApp::customTitleBlockTemplatesCollection();
|
||||
if (m_project) c << m_project->embeddedTitleBlockTemplatesCollection();
|
||||
ipw = new TitleBlockPropertiesWidget(
|
||||
|
||||
@@ -49,7 +49,7 @@ TitleBlockPropertiesWidget::TitleBlockPropertiesWidget(
|
||||
|
||||
/**
|
||||
@brief TitleBlockPropertiesWidget::TitleBlockPropertiesWidget
|
||||
default constructor with tempalte list
|
||||
default constructor with template list
|
||||
@param tbt_collection template list
|
||||
@param titleblock properties to edit
|
||||
@param current_date if true, display the radio button "current date"
|
||||
|
||||
Reference in New Issue
Block a user