mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 14:50:53 +01:00
Fix Remove old summary feature
This commit is contained in:
@@ -85,6 +85,19 @@ int FolioAutonumberingW::toFolio(){
|
||||
int FolioAutonumberingW::newFoliosNumber(){
|
||||
return ui->m_new_tabs_sb->value();
|
||||
}
|
||||
/**
|
||||
* @brief FolioAutonumberingW::updateFolioList
|
||||
* update Folio List in From and To ComboBox
|
||||
*/
|
||||
void FolioAutonumberingW::updateFolioList(){
|
||||
ui -> m_from_cb->clear();
|
||||
ui -> m_to_cb->clear();
|
||||
if (newFolios){
|
||||
this -> on_m_create_new_tabs_rb_clicked();
|
||||
} else {
|
||||
this -> on_m_autonumber_tabs_rb_clicked();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief FolioAutonumberingW::on_m_create_new_tabs_rb_clicked
|
||||
@@ -175,6 +188,7 @@ void FolioAutonumberingW::on_buttonBox_clicked(QAbstractButton *button) {
|
||||
case QDialogButtonBox::ApplyRole:
|
||||
applyEnable(true);
|
||||
emit applyPressed();
|
||||
updateFolioList();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ class FolioAutonumberingW : public QWidget
|
||||
Ui::FolioAutonumberingW *ui;
|
||||
QList <NumPartEditorW *> num_part_list_;
|
||||
NumerotationContext m_context;
|
||||
|
||||
void updateFolioList();
|
||||
};
|
||||
|
||||
#endif // FOLIOAUTONUMBERING_H
|
||||
|
||||
@@ -43,6 +43,7 @@ class QETProject;
|
||||
class Terminal;
|
||||
class DiagramImageItem;
|
||||
class DiagramEventInterface;
|
||||
class DiagramFolioList;
|
||||
class QETProject;
|
||||
|
||||
/**
|
||||
@@ -53,6 +54,7 @@ class QETProject;
|
||||
*/
|
||||
class Diagram : public QGraphicsScene
|
||||
{
|
||||
friend DiagramFolioList;
|
||||
friend QETProject;
|
||||
|
||||
Q_OBJECT
|
||||
|
||||
Reference in New Issue
Block a user