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
newformwidget_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 GPL-3.0-only WITH Qt-GPL-exception-1.0
3// Qt-Security score:significant reason:default
4
5#ifndef NEWFORMWIDGET_H
6#define NEWFORMWIDGET_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
21
22#include <QtDesigner/abstractnewformwidget.h>
23
24#include <QtWidgets/qwidget.h>
25
26#include <QtGui/qpixmap.h>
27
28#include <QtCore/qlist.h>
29#include <QtCore/qmap.h>
30#include <QtCore/qstringlist.h>
31
32#include <utility>
33
34QT_BEGIN_NAMESPACE
35
36class QIODevice;
37class QTreeWidgetItem;
38
39namespace qdesigner_internal {
40
41namespace Ui {
42 class NewFormWidget;
43}
44
46{
50
51public:
53
56
57 bool hasCurrentTemplate() const override;
59
60 bool isEmbeddedGroupBoxVisible() const;
62
63 // Convenience for implementing file dialogs with preview
66 const QString &workingDir,
68
69private slots:
74
75private:
79
80 void loadFrom(const QString &path, bool resourceFile, const QString &uiExtension,
82 void loadFrom(const QString &title, const QStringList &nameList,
84
85private:
88
89 QSize templateSize() const;
90 void setTemplateSize(const QSize &s);
91 int profileComboIndex() const;
94
95 // Pixmap cache (item, profile combo index)
96 using ItemPixmapCacheKey = std::pair<const QTreeWidgetItem *, int>;
99
105};
106
107}
108
109QT_END_NAMESPACE
110
111#endif // NEWFORMWIDGET_H
static QImage grabForm(QDesignerFormEditorInterface *core, QIODevice &file, const QString &workingDir, const qdesigner_internal::DeviceProfile &dp)
Definition newform.cpp:178
~NewForm() override
Definition newform.cpp:94
bool openForm(QWidget *parent)
QActionGroup * recentFilesActions() const
void setShowNewFormOnStartup(bool showIt)
QDesignerSettings(QDesignerFormEditorInterface *core)
bool showNewFormOnStartup() const
QDesignerActions * actionManager() const
QDesignerFormEditorInterface * core() const
friend class QWidget
Definition qpainter.h:432
Combined button and popup list for selecting options.
Auxiliary methods to store/retrieve settings.
#define QDESIGNER_SHARED_EXPORT