1 /* 2 Virtual Piano test using the MIDI Sequencer C++ library 3 Copyright (C) 2006-2021, Pedro Lopez-Cabanillas <plcl@users.sf.net> 4 5 This library is free software; you can redistribute it and/or modify 6 it under the terms of the GNU General Public License as published by 7 the Free Software Foundation; either version 3 of the License, or 8 (at your option) any later version. 9 10 This library 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, see <http://www.gnu.org/licenses/>. 17 */ 18 19 #ifndef PREFERENCES_H 20 #define PREFERENCES_H 21 22 #include <QDialog> 23 #include "ui_preferences.h" 24 25 class Preferences : public QDialog 26 { 27 Q_OBJECT 28 29 public: 30 explicit Preferences(QWidget *parent = nullptr); 31 void apply(); 32 33 public slots: 34 void slotButtonClicked(QAbstractButton *button); 35 void accept() override; 36 37 protected: 38 void showEvent ( QShowEvent *event ) override; 39 40 private: 41 Ui::PreferencesClass ui; 42 }; 43 44 #endif // PREFERENCES_H 45