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
22QT_BEGIN_NAMESPACE
23
24class QtGradientManager;
25
26class QtGradientViewDialog : public QDialog
27{
28 Q_OBJECT
29public:
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: "Select Gradient", c: 0));
36
37private slots:
38 void slotGradientSelected(const QString &id);
39 void slotGradientActivated(const QString &id);
40
41private:
42 Ui::QtGradientViewDialog m_ui;
43};
44
45QT_END_NAMESPACE
46
47#endif
48
49

Provided by KDAB

Privacy Policy
Learn to use CMake with our Intro Training
Find out more

source code of qttools/src/shared/qtgradienteditor/qtgradientviewdialog_p.h