From ea88c906eb467ee207f50639582bf7ff4f4cee91 Mon Sep 17 00:00:00 2001 From: Steffen Baranowsky Date: Wed, 8 Feb 2017 22:42:38 +0100 Subject: [PATCH] set new initial width of piano roll editor (#3334) --- src/gui/editors/PianoRoll.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/editors/PianoRoll.cpp b/src/gui/editors/PianoRoll.cpp index a0959666bc..52cdd585e5 100644 --- a/src/gui/editors/PianoRoll.cpp +++ b/src/gui/editors/PianoRoll.cpp @@ -81,6 +81,7 @@ typedef AutomationPattern::timeMap timeMap; // some constants... +const int INITIAL_PIANOROLL_WIDTH = 860; const int INITIAL_PIANOROLL_HEIGHT = 480; const int SCROLLBAR_SIZE = 12; @@ -4374,7 +4375,7 @@ void PianoRollWindow::loadSettings( const QDomElement & de ) QSize PianoRollWindow::sizeHint() const { - return { m_toolBar->sizeHint().width() + 10, INITIAL_PIANOROLL_HEIGHT }; + return { INITIAL_PIANOROLL_WIDTH, INITIAL_PIANOROLL_HEIGHT }; }