From 0d8bf6c67693cc1e41bd9fab7ba7924088506b84 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Fri, 25 Oct 2019 14:20:43 +0200 Subject: [PATCH] lint --- src/timeline2/DelegateChooser.cpp | 2 +- src/timeline2/DelegateChooser.h | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/timeline2/DelegateChooser.cpp b/src/timeline2/DelegateChooser.cpp index e558da61..6aeea69b 100644 --- a/src/timeline2/DelegateChooser.cpp +++ b/src/timeline2/DelegateChooser.cpp @@ -9,7 +9,7 @@ QQmlComponent * DelegateChoice::delegate() const { - return delegate_; + return delegate_; } void diff --git a/src/timeline2/DelegateChooser.h b/src/timeline2/DelegateChooser.h index a20a1489..68ebeb04 100644 --- a/src/timeline2/DelegateChooser.h +++ b/src/timeline2/DelegateChooser.h @@ -1,6 +1,5 @@ -// A DelegateChooser like the one, that was added to Qt5.12 (in labs), but compatible with older Qt versions -// see KDE/kquickitemviews -// see qtdeclarative/qqmldelagatecomponent +// A DelegateChooser like the one, that was added to Qt5.12 (in labs), but compatible with older Qt +// versions see KDE/kquickitemviews see qtdeclarative/qqmldelagatecomponent #pragma once @@ -40,8 +39,8 @@ private: class DelegateChooser : public QQuickItem { - Q_OBJECT - Q_CLASSINFO("DefaultProperty", "choices") + Q_OBJECT + Q_CLASSINFO("DefaultProperty", "choices") public: Q_PROPERTY(QQmlListProperty choices READ choices CONSTANT) @@ -81,4 +80,3 @@ private: static DelegateChoice *choice(QQmlListProperty *, int index); static void clearChoices(QQmlListProperty *); }; -