summaryrefslogtreecommitdiffstats
path: root/src/designer/src/lib/shared/newformwidget_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/designer/src/lib/shared/newformwidget_p.h')
-rw-r--r--src/designer/src/lib/shared/newformwidget_p.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/designer/src/lib/shared/newformwidget_p.h b/src/designer/src/lib/shared/newformwidget_p.h
index b0a588461..f6daae122 100644
--- a/src/designer/src/lib/shared/newformwidget_p.h
+++ b/src/designer/src/lib/shared/newformwidget_p.h
@@ -63,21 +63,19 @@ namespace Ui {
class NewFormWidget;
}
-class QDesignerWorkbench;
-
class QDESIGNER_SHARED_EXPORT NewFormWidget : public QDesignerNewFormWidgetInterface
{
Q_OBJECT
- Q_DISABLE_COPY(NewFormWidget)
+ Q_DISABLE_COPY_MOVE(NewFormWidget)
public:
- typedef QList<qdesigner_internal::DeviceProfile> DeviceProfileList;
+ using DeviceProfileList = QList<qdesigner_internal::DeviceProfile>;
explicit NewFormWidget(QDesignerFormEditorInterface *core, QWidget *parentWidget);
~NewFormWidget() override;
bool hasCurrentTemplate() const override;
- QString currentTemplate(QString *errorMessage = 0) override;
+ QString currentTemplate(QString *errorMessage = nullptr) override;
// Convenience for implementing file dialogs with preview
static QImage grabForm(QDesignerFormEditorInterface *core,
@@ -112,8 +110,8 @@ private:
bool showCurrentItemPixmap();
// Pixmap cache (item, profile combo index)
- typedef QPair<const QTreeWidgetItem *, int> ItemPixmapCacheKey;
- typedef QMap<ItemPixmapCacheKey, QPixmap> ItemPixmapCache;
+ using ItemPixmapCacheKey = QPair<const QTreeWidgetItem *, int>;
+ using ItemPixmapCache = QMap<ItemPixmapCacheKey, QPixmap>;
ItemPixmapCache m_itemPixmapCache;
QDesignerFormEditorInterface *m_core;