| 1 | // Copyright (C) 2016 The Qt Company Ltd. | 
|---|---|
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only | 
| 3 | |
| 4 | // | 
| 5 | // W A R N I N G | 
| 6 | // ------------- | 
| 7 | // | 
| 8 | // This file is not part of the Qt API. It exists for the convenience | 
| 9 | // of Qt Designer. This header file may change from version to version | 
| 10 | // without notice, or even be removed. | 
| 11 | // | 
| 12 | // We mean it. | 
| 13 | // | 
| 14 | |
| 15 | #ifndef GRADIENTVIEWDIALOG_H | 
| 16 | #define GRADIENTVIEWDIALOG_H | 
| 17 | |
| 18 | #include <QtWidgets/QWidget> | 
| 19 | #include <QtCore/QMap> | 
| 20 | #include "ui_qtgradientviewdialog.h" | 
| 21 | |
| 22 | QT_BEGIN_NAMESPACE | 
| 23 | |
| 24 | class QtGradientManager; | 
| 25 | |
| 26 | class QtGradientViewDialog : public QDialog | 
| 27 | { | 
| 28 | Q_OBJECT | 
| 29 | public: | 
| 30 | QtGradientViewDialog(QWidget *parent = 0); | 
| 31 | |
| 32 | void setGradientManager(QtGradientManager *manager); | 
| 33 | QtGradientManager *gradientManager() const; | 
| 34 | |
| 35 |     static QGradient getGradient(bool *ok, QtGradientManager *manager, QWidget *parent = 0, const QString &caption = tr(s: s: "Select Gradient", c: c: 0));  | 
| 36 | |
| 37 | private slots: | 
| 38 | void slotGradientSelected(const QString &id); | 
| 39 | void slotGradientActivated(const QString &id); | 
| 40 | |
| 41 | private: | 
| 42 | Ui::QtGradientViewDialog m_ui; | 
| 43 | }; | 
| 44 | |
| 45 | QT_END_NAMESPACE | 
| 46 | |
| 47 | #endif | 
| 48 | |
| 49 | 
