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
4#ifndef NEWFORMWIDGET_H
5#define NEWFORMWIDGET_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
20
21#include <QtDesigner/abstractnewformwidget.h>
22
23#include <QtWidgets/qwidget.h>
24
25#include <QtGui/qpixmap.h>
26
27#include <QtCore/qlist.h>
28#include <QtCore/qmap.h>
29#include <QtCore/qpair.h>
30#include <QtCore/qstringlist.h>
31
33
34class QIODevice;
35class QTreeWidgetItem;
36
37namespace qdesigner_internal {
38
39namespace Ui {
40 class NewFormWidget;
41}
42
44{
47
48public:
50
53
54 bool hasCurrentTemplate() const override;
56
57 // Convenience for implementing file dialogs with preview
60 const QString &workingDir,
62
63private slots:
68
69private:
73
74 void loadFrom(const QString &path, bool resourceFile, const QString &uiExtension,
76 void loadFrom(const QString &title, const QStringList &nameList,
78
79private:
82
83 QSize templateSize() const;
84 void setTemplateSize(const QSize &s);
85 int profileComboIndex() const;
88
89 // Pixmap cache (item, profile combo index)
90 using ItemPixmapCacheKey = std::pair<const QTreeWidgetItem *, int>;
93
99};
100
101}
102
103QT_END_NAMESPACE
104
105#endif // NEWFORMWIDGET_H
static QImage grabForm(QDesignerFormEditorInterface *core, QIODevice &file, const QString &workingDir, const qdesigner_internal::DeviceProfile &dp)
Definition newform.cpp:179
~NewForm() override
Definition newform.cpp:95
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:421
Combined button and popup list for selecting options.
Auxiliary methods to store/retrieve settings.
#define QDESIGNER_SHARED_EXPORT