summaryrefslogtreecommitdiff
path: root/muse2/muse/confmport.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'muse2/muse/confmport.cpp')
-rw-r--r--muse2/muse/confmport.cpp13
1 files changed, 13 insertions, 0 deletions
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);