From 54a04e69ec2124a41a992555ca49e4d29366bc47 Mon Sep 17 00:00:00 2001 From: Yohann Dedy Date: Wed, 2 Nov 2016 10:32:02 +0100 Subject: [PATCH] Fixed window size to 1024x768 Preset #0 selected at runtime --- src/mainwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 89257a1..a8b6494 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -17,6 +17,7 @@ mainWindow::mainWindow(QWidget *parent) : _midiIn(new QMidiIn(this)), _midiOut(new QMidiOut(this)) { + this->setFixedSize(1024,768); _prefixPocketC = {0xF0,0x00,0x20,0x20,0x14,0x00}; _midiIn->setIgnoreTypes(false, false, false); @@ -87,6 +88,7 @@ mainWindow::mainWindow(QWidget *parent) : connect(_midiIn, SIGNAL(midiMessageReceived(QMidiMessage*)), this, SLOT(onMidiMessageReceive(QMidiMessage*))); connect(settings, SIGNAL(triggered(bool)), this, SLOT(openSettingsWindow())); + _presetsList->setCurrentRow(0); } mainWindow::~mainWindow()