1 //============================================================================= 2 // MuseScore 3 // Linux Music Score Editor 4 // 5 // Copyright (C) 2009 Werner Schweer and others 6 // 7 // This program is free software; you can redistribute it and/or modify 8 // it under the terms of the GNU General Public License version 2. 9 // 10 // This program is distributed in the hope that it will be useful, 11 // but WITHOUT ANY WARRANTY; without even the implied warranty of 12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 // GNU General Public License for more details. 14 // 15 // You should have received a copy of the GNU General Public License 16 // along with this program; if not, write to the Free Software 17 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 18 //============================================================================= 19 20 #include "splitstaff.h" 21 #include "musescore.h" 22 23 namespace Ms { 24 25 //--------------------------------------------------------- 26 // SplitStaff 27 //--------------------------------------------------------- 28 SplitStaff(QWidget * parent)29SplitStaff::SplitStaff(QWidget* parent) 30 : QDialog(parent) 31 { 32 setObjectName("SplitStaff"); 33 setupUi(this); 34 setWindowFlags(this->windowFlags() & ~Qt::WindowContextHelpButtonHint); 35 splitPoint->setValue(60); 36 MuseScore::restoreGeometry(this); 37 } 38 39 //--------------------------------------------------------- 40 // hideEvent 41 //--------------------------------------------------------- 42 hideEvent(QHideEvent * event)43void SplitStaff::hideEvent(QHideEvent* event) 44 { 45 MuseScore::saveGeometry(this); 46 QWidget::hideEvent(event); 47 } 48 49 } 50 51