diff --git a/companion/src/fwpreferencesdialog.cpp b/companion/src/fwpreferencesdialog.cpp
index c4c2a820b..2dfce0e73 100644
--- a/companion/src/fwpreferencesdialog.cpp
+++ b/companion/src/fwpreferencesdialog.cpp
@@ -460,56 +460,6 @@ void fwPreferencesDialog::on_ProfSave_PB_clicked()
}
}
-void fwPreferencesDialog::on_export_PB_clicked()
-{
- QSettings settings;
- QString profile=QString("profile%1").arg(ui->ProfSlot_SB->value());
- QString name=ui->ProfName_LE->text();
- if (!name.isEmpty()) {
- QString fileName = QFileDialog::getSaveFileName(this, tr("Export profile As"), settings.value("lastDir").toString() + "/" +name+".ini" , "*.ini");
- if (fileName.isEmpty())
- return;
- QSettings exportfile(fileName, QSettings::IniFormat);
- settings.beginGroup("Profiles");
- settings.beginGroup(profile);
- QStringList keys = settings.childKeys();
- foreach (QString key, keys) {
- exportfile.setValue(key,settings.value(key));
- }
- settings.endGroup();
- }
- settings.endGroup();
-}
-
-void fwPreferencesDialog::on_import_PB_clicked()
-{
- QSettings settings;
- QString profile=QString("profile%1").arg(ui->ProfSlot_SB->value());
- QString name=ui->ProfName_LE->text();
- if (!name.isEmpty()) {
- int ret = QMessageBox::question(this, "Companion",
- tr("Profile slot is not empty, profile slot %1 will we overwritten.
Are you sure ?").arg(ui->ProfSlot_SB->value()) ,
- QMessageBox::Yes | QMessageBox::No);
- if (ret==QMessageBox::No) {
- return;
- }
- }
- QString fileName = QFileDialog::getOpenFileName(this, tr("Open Profile to import"), settings.value("lastDir").toString(), "*.ini");
- if (fileName.isEmpty())
- return;
- QSettings importfile(fileName, QSettings::IniFormat);
- settings.beginGroup("Profiles");
- settings.beginGroup(profile);
- QStringList keys = importfile.childKeys();
- foreach (QString key, keys) {
- settings.setValue(key,importfile.value(key));
- }
- settings.endGroup();
- settings.endGroup();
- on_ProfSlot_SB_valueChanged();
-}
-
-
void fwPreferencesDialog::on_SplashSelect_clicked()
{
QString supportedImageFormats;
diff --git a/companion/src/fwpreferencesdialog.h b/companion/src/fwpreferencesdialog.h
index 6a3b165d7..67eb0bd03 100644
--- a/companion/src/fwpreferencesdialog.h
+++ b/companion/src/fwpreferencesdialog.h
@@ -43,8 +43,6 @@ private slots:
void on_checkFWUpdates_clicked();
void on_ProfSlot_SB_valueChanged();
void on_ProfSave_PB_clicked();
- void on_export_PB_clicked();
- void on_import_PB_clicked();
void on_SplashSelect_clicked();
void on_clearImageButton_clicked();
};
diff --git a/companion/src/fwpreferencesdialog.ui b/companion/src/fwpreferencesdialog.ui
index 798862ded..b7b4e54f5 100644
--- a/companion/src/fwpreferencesdialog.ui
+++ b/companion/src/fwpreferencesdialog.ui
@@ -86,13 +86,6 @@
- -
-
-
- Save Profile
-
-
-
-
@@ -938,20 +931,6 @@ This is used by the templated to determine which channel goes to what number out
- -
-
-
- Export
-
-
-
- -
-
-
- Import
-
-
-
-
@@ -1126,6 +1105,13 @@ May be different from firmware language
+ -
+
+
+ Save Profile
+
+
+