blob: ecd089a85e6d8efeb2728604cce61467c2005994 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#ifndef GRADIENTVIEWDIALOG_H
#define GRADIENTVIEWDIALOG_H
#include <QtWidgets/QWidget>
#include <QtCore/QMap>
#include "ui_qtgradientviewdialog.h"
QT_BEGIN_NAMESPACE
class QtGradientManager;
class QtGradientViewDialog : public QDialog
{
Q_OBJECT
public:
QtGradientViewDialog(QWidget *parent = 0);
void setGradientManager(QtGradientManager *manager);
QtGradientManager *gradientManager() const;
static QGradient getGradient(bool *ok, QtGradientManager *manager, QWidget *parent = 0, const QString &caption = tr("Select Gradient", 0));
private slots:
void slotGradientSelected(const QString &id);
void slotGradientActivated(const QString &id);
private:
Ui::QtGradientViewDialog m_ui;
};
QT_END_NAMESPACE
#endif
|