QSkinny 0.8.0
C++/Qt UI toolkit
Loading...
Searching...
No Matches
QskMessageWindow.h
1/******************************************************************************
2 * QSkinny - Copyright (C) The authors
3 * SPDX-License-Identifier: BSD-3-Clause
4 *****************************************************************************/
5
6#ifndef QSK_MESSAGE_WINDOW_H
7#define QSK_MESSAGE_WINDOW_H
8
9#include "QskDialogWindow.h"
10
11class QskTextOptions;
12
13class QSK_EXPORT QskMessageWindow : public QskDialogWindow
14{
15 Q_OBJECT
16
17 Q_PROPERTY( QString text READ text
18 WRITE setText NOTIFY textChanged )
19
20 Q_PROPERTY( QskTextOptions textOptions READ textOptions
21 WRITE setTextOptions NOTIFY textOptionsChanged )
22
24
25 public:
26 QskMessageWindow( QWindow* parent = nullptr );
27 ~QskMessageWindow() override;
28
29 void setTextOptions( const QskTextOptions& );
30 QskTextOptions textOptions() const;
31
32 QString text() const;
33
34 public Q_SLOTS:
35 void setText( const QString& );
36
37 Q_SIGNALS:
38 void textChanged( const QString& );
39 void textOptionsChanged( const QskTextOptions& );
40
41 private:
42 class PrivateData;
43 std::unique_ptr< PrivateData > m_data;
44};
45
46#endif