summaryrefslogtreecommitdiff
path: root/src/designer/src/components/propertyeditor/previewwidget.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2018-07-31 11:44:54 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2018-07-31 20:31:31 +0000
commit1c95d379f2d4f53ca8e4d33b27d37b7dab6d7596 (patch)
treebd593bad43cdda9987bfeadf557d01366b4e98d6 /src/designer/src/components/propertyeditor/previewwidget.cpp
parentb0fd9623651ca32187e4f79ad299ef43ce8347a0 (diff)
downloadqttools-1c95d379f2d4f53ca8e4d33b27d37b7dab6d7596.tar.gz
Qt Designer: Fix clang-tidy warnings about class definitions
- Use ' = default' for trivial constructors/destructors - replace virtual by override or add override where applicable - Return *this from assignment operators of custom iterators - Replace trivial constructors by member initialization for simple structs - Add Q_DISABLE_COPY Change-Id: I67fb07cb82ccba93a41d58a8a0782628c9c681d9 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'src/designer/src/components/propertyeditor/previewwidget.cpp')
-rw-r--r--src/designer/src/components/propertyeditor/previewwidget.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/designer/src/components/propertyeditor/previewwidget.cpp b/src/designer/src/components/propertyeditor/previewwidget.cpp
index 5b30d84f6..cc5a3af31 100644
--- a/src/designer/src/components/propertyeditor/previewwidget.cpp
+++ b/src/designer/src/components/propertyeditor/previewwidget.cpp
@@ -38,9 +38,7 @@ PreviewWidget::PreviewWidget(QWidget *parent)
ui.setupUi(this);
}
-PreviewWidget::~PreviewWidget()
-{
-}
+PreviewWidget::~PreviewWidget() = default;
QT_END_NAMESPACE