Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qtgradientutils_p.h
Go to the documentation of this file.
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 GRADIENTUTILS_H
16#define GRADIENTUTILS_H
17
18#include <QtGui/QGradient>
19#include <QtGui/QPainter>
20
22
24
26{
27public:
28 static QString styleSheetCode(const QGradient &gradient);
29 // utils methods, they could be outside of this class
30 static QString saveState(const QtGradientManager *manager);
31 static void restoreState(QtGradientManager *manager, const QString &state);
32
33 static QPixmap gradientPixmap(const QGradient &gradient, QSize size = QSize(64, 64),
34 bool checkeredBackground = false);
35};
36
37QT_END_NAMESPACE
38
39#endif
QDesignerIntegrationInterfacePrivate(QDesignerFormEditorInterface *core)
QDesignerFormEditorInterface * m_core
The QDesignerIntegrationInterface glues together parts of \QD and allows for overwriting functionalit...
The QDesignerIntegration class is \QD's implementation of QDesignerIntegrationInterface.
The QDesignerPropertyEditorInterface class allows you to query and manipulate the current state of Qt...
virtual QString propertyGroup(int index) const =0
virtual int indexOf(const QString &name) const =0
The QDesignerWidgetBoxInterface class allows you to control the contents of \QD's widget box.
friend class QWidget
Definition qpainter.h:421
static void restoreState(QtGradientManager *manager, const QString &state)
static QString styleSheetCode(const QGradient &gradient)
static QString saveState(const QtGradientManager *manager)
static QPixmap gradientPixmap(const QGradient &gradient, QSize size=QSize(64, 64), bool checkeredBackground=false)
void getSelection(qdesigner_internal::Selection &s)
static void initializePlugins(QDesignerFormEditorInterface *formEditor)
QDesignerIntegrationInterface::Feature m_features
void setupFormWindow(QDesignerFormWindowInterface *formWindow)
void addDynamicProperty(const QString &name, const QVariant &value)
void updateProperty(const QString &name, const QVariant &value, bool enableSubPropertyHandling)
QDesignerIntegrationInterface::ResourceFileWatcherBehaviour m_resourceFileWatcherBehaviour
Combined button and popup list for selecting options.
Auxiliary methods to store/retrieve settings.
static QString fixHelpClassName(const QString &className)
static QString classForProperty(QDesignerFormEditorInterface *core, QObject *object, const QString &property)