mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-06-19 04:32:37 +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 {
|
else {
|
||||||
strl = QETInformation::elementInfoKeys();
|
strl = QETInformation::elementInfoKeys();
|
||||||
}
|
}
|
||||||
for (int i=0; i<strl.size();++i) {
|
//We use a QMap because the keys of the map are sorted, then no matter the current local,
|
||||||
ui -> m_elmt_info_cb -> addItem(strl[i], QETInformation::translatedInfoKey(strl[i]));
|
//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()
|
void DynamicTextFieldEditor::on_m_x_sb_editingFinished()
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ 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(
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ TitleBlockPropertiesWidget::TitleBlockPropertiesWidget(
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
@brief TitleBlockPropertiesWidget::TitleBlockPropertiesWidget
|
@brief TitleBlockPropertiesWidget::TitleBlockPropertiesWidget
|
||||||
default constructor with tempalte list
|
default constructor with template 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"
|
||||||
|
|||||||
Reference in New Issue
Block a user