File indexing completed on 2024-12-22 04:13:17

0001 /*
0002  *  SPDX-FileCopyrightText: 2020 Dmitry Kazakov <dimula73@gmail.com>
0003  *
0004  *  SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 
0007 #ifndef KISWARNINGWIDGET_H
0008 #define KISWARNINGWIDGET_H
0009 
0010 #include "kritaui_export.h"
0011 #include <QWidget>
0012 
0013 class QLabel;
0014 
0015 class KRITAUI_EXPORT KisWarningWidget : public QWidget
0016 {
0017     Q_OBJECT
0018 public:
0019     KisWarningWidget(QWidget *parent);
0020 
0021     void setText(const QString &text);
0022 
0023     /**
0024      * The default warning message for a case when the user
0025      * tries to change color profile for a multilayered image
0026      */
0027     static QString changeImageProfileWarningText();
0028 
0029 private:
0030     QLabel *m_warningIcon = 0;
0031     QLabel *m_warningText = 0;
0032 };
0033 
0034 #endif // KISWARNINGWIDGET_H