mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-02-11 18:59:59 +01:00
Add table dialog : table config can saved and loaded.
The dialog used to edit the configuration of QetGraphicsTable item can now save and load a configuration from graphics_table.json file located in the user config dir.
This commit is contained in:
@@ -38,6 +38,10 @@ QString ConfigSaveLoaderWidget::text() const {
|
||||
return ui->m_line_edit->text();
|
||||
}
|
||||
|
||||
void ConfigSaveLoaderWidget::addItem(QString text) {
|
||||
ui->m_combo_box->addItem(text);
|
||||
}
|
||||
|
||||
void ConfigSaveLoaderWidget::on_m_load_pb_clicked() {
|
||||
emit loadClicked();
|
||||
}
|
||||
|
||||
@@ -42,6 +42,7 @@ class ConfigSaveLoaderWidget : public QGroupBox
|
||||
|
||||
QString selectedText() const;
|
||||
QString text()const;
|
||||
void addItem(QString text);
|
||||
|
||||
signals:
|
||||
void loadClicked();
|
||||
|
||||
Reference in New Issue
Block a user