2021-04-19 16:06:08 +02:00
|
|
|
/*
|
|
|
|
* SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
* MuseScore-CLA-applies
|
|
|
|
*
|
|
|
|
* MuseScore
|
|
|
|
* Music Composition & Notation
|
|
|
|
*
|
|
|
|
* Copyright (C) 2021 MuseScore BVBA and others
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 3 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
*/
|
2021-01-18 08:15:02 +01:00
|
|
|
#ifndef MU_UI_TESTDIALOG_H
|
|
|
|
#define MU_UI_TESTDIALOG_H
|
2020-07-20 20:07:29 +02:00
|
|
|
|
2021-10-05 15:13:47 +02:00
|
|
|
#include <QDialog>
|
2020-07-20 20:07:29 +02:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class TestDialog;
|
|
|
|
}
|
|
|
|
|
2021-01-18 08:15:02 +01:00
|
|
|
namespace mu::ui {
|
2021-10-05 15:13:47 +02:00
|
|
|
class TestDialog : public QDialog
|
2020-07-20 20:07:29 +02:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
2020-07-23 10:11:04 +02:00
|
|
|
Q_PROPERTY(QString title READ title WRITE setTitle NOTIFY titleChanged)
|
|
|
|
|
2020-07-20 20:07:29 +02:00
|
|
|
public:
|
|
|
|
TestDialog(const TestDialog& dialog);
|
|
|
|
explicit TestDialog(QWidget* parent = nullptr);
|
2021-10-05 15:13:47 +02:00
|
|
|
~TestDialog() override;
|
2020-07-20 20:07:29 +02:00
|
|
|
|
2020-07-23 10:11:04 +02:00
|
|
|
QString title() const;
|
|
|
|
|
2021-02-10 21:56:45 +01:00
|
|
|
static int static_metaTypeId();
|
|
|
|
|
2020-07-23 10:11:04 +02:00
|
|
|
public slots:
|
|
|
|
void setTitle(QString title);
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void titleChanged(QString title);
|
|
|
|
|
2020-07-20 20:07:29 +02:00
|
|
|
private:
|
2021-10-05 15:13:47 +02:00
|
|
|
Ui::TestDialog* ui = nullptr;
|
2020-07-23 10:11:04 +02:00
|
|
|
QString m_title;
|
2020-07-20 20:07:29 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2021-01-18 08:15:02 +01:00
|
|
|
#endif // MU_UI_TESTDIALOG_H
|