Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_warning_block.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2023 L. E. Segovia <amy@amyspark.me>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KIS_WARNING_BLOCK_H
8#define KIS_WARNING_BLOCK_H
9
10#include <QGroupBox>
11
12#include "kritawidgets_export.h"
13
14class KRITAWIDGETS_EXPORT KisWarningBlock : public QGroupBox
15{
16 Q_OBJECT
17public:
18 Q_PROPERTY(QString text READ text WRITE setText)
19 Q_PROPERTY(QPixmap pixmap READ pixmap WRITE setPixmap)
20
21 KisWarningBlock(QWidget *parent = nullptr);
22 ~KisWarningBlock() override;
23
25 KisWarningBlock &operator=(const KisWarningBlock &) = delete;
26
27 QString text() const;
28 QPixmap pixmap() const;
29
30 void setText(const QString &);
31 void setPixmap(const QPixmap &);
32
33Q_SIGNALS:
34 void linkActivated(const QString &link);
35
36private:
37 struct Private;
38 QScopedPointer<Private> m_d;
39};
40
41#endif