[Companion] Make simulator startup from ModelEdit panel act the same as simulating a model from the models list widget (that is, including the other radio data as well); Simplify some code, remove automatic signal connections and use new syntax. (#4721)

This commit is contained in:
Max Paperno
2017-03-31 07:55:25 +02:00
committed by Bertrand Songis
parent 965849ee41
commit 4c0dbfcb6c
2 changed files with 23 additions and 46 deletions
+3 -6
View File
@@ -46,7 +46,7 @@ class ModelEdit : public QDialog
public:
ModelEdit(QWidget * parent, RadioData & radioData, int modelId, Firmware * firmware);
~ModelEdit();
protected:
void closeEvent(QCloseEvent *event);
@@ -54,15 +54,12 @@ class ModelEdit : public QDialog
void modified();
private slots:
void onTabModified();
void on_pushButton_clicked();
void on_tabWidget_currentChanged(int index);
void onTabIndexChanged(int index);
private:
Ui::ModelEdit *ui;
int modelId;
ModelData & model;
GeneralSettings & generalSettings;
RadioData & radioData;
Firmware * firmware;
QVector<GenericPanel *> panels;