summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--muse2/ChangeLog1
-rw-r--r--muse2/muse/confmport.cpp13
-rw-r--r--muse2/muse/confmport.h2
3 files changed, 16 insertions, 0 deletions
diff --git a/muse2/ChangeLog b/muse2/ChangeLog
index 7795f353..7cdc9fe1 100644
--- a/muse2/ChangeLog
+++ b/muse2/ChangeLog
@@ -1,6 +1,7 @@
01.03.2011:
- Added feature to show/hide track-types from arranger, this far only with toolbuttons
and no persistent storage (rj)
+ - restore window geometry for Midi configuration dialog (rj)
28.02.2011:
- Added progress dialog for loading projects (rj)
- Aligned meters on mixer strip (rj)
diff --git a/muse2/muse/confmport.cpp b/muse2/muse/confmport.cpp
index cf76d5ef..d05e174d 100644
--- a/muse2/muse/confmport.cpp
+++ b/muse2/muse/confmport.cpp
@@ -18,6 +18,7 @@
#include <QTableWidget>
#include <QTableWidgetItem>
#include <QHeaderView>
+#include <QSettings>
#include "confmport.h"
#include "app.h"
@@ -47,6 +48,15 @@ enum { DEVCOL_NO = 0, DEVCOL_GUI, DEVCOL_REC, DEVCOL_PLAY, DEVCOL_INSTR, DEVCOL_
DEVCOL_INROUTES, DEVCOL_OUTROUTES, DEVCOL_DEF_IN_CHANS, DEVCOL_DEF_OUT_CHANS, DEVCOL_STATE };
//---------------------------------------------------------
+// closeEvent
+//---------------------------------------------------------
+void MPConfig::closeEvent(QCloseEvent *event)
+{
+ QSettings settings("MusE", "MusE-qt");
+ settings.setValue("MPConfig/geometry", saveGeometry());
+ QWidget::closeEvent(event);
+}
+//---------------------------------------------------------
// changeDefInputRoutes
//---------------------------------------------------------
@@ -1015,6 +1025,9 @@ MPConfig::MPConfig(QWidget* parent)
: QDialog(parent)
{
setupUi(this);
+ QSettings settings("MusE", "MusE-qt");
+ restoreGeometry(settings.value("MPConfig/geometry").toByteArray());
+
mdevView->setRowCount(MIDI_PORTS);
mdevView->verticalHeader()->hide();
mdevView->setSelectionMode(QAbstractItemView::SingleSelection);
diff --git a/muse2/muse/confmport.h b/muse2/muse/confmport.h
index f09c4d65..3c139ee2 100644
--- a/muse2/muse/confmport.h
+++ b/muse2/muse/confmport.h
@@ -47,6 +47,8 @@ class MPConfig : public QDialog, Ui::SynthConfigBase {
void removeInstanceClicked();
void changeDefInputRoutes(QAction* act);
void changeDefOutputRoutes(QAction* act);
+ public slots:
+ void closeEvent(QCloseEvent*e);
public:
MPConfig(QWidget* parent=0);