MuseScore/src/framework/ui/dev/testdialog.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

60 lines
1.4 KiB
C
Raw Normal View History

/*
* 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
#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 {
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);
~TestDialog() override;
2020-07-20 20:07:29 +02:00
2020-07-23 10:11:04 +02:00
QString title() const;
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:
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