lint
This commit is contained in:
parent
3d6f502bcc
commit
0d8bf6c676
@ -9,7 +9,7 @@
|
|||||||
QQmlComponent *
|
QQmlComponent *
|
||||||
DelegateChoice::delegate() const
|
DelegateChoice::delegate() const
|
||||||
{
|
{
|
||||||
return delegate_;
|
return delegate_;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
// A DelegateChooser like the one, that was added to Qt5.12 (in labs), but compatible with older Qt versions
|
// A DelegateChooser like the one, that was added to Qt5.12 (in labs), but compatible with older Qt
|
||||||
// see KDE/kquickitemviews
|
// versions see KDE/kquickitemviews see qtdeclarative/qqmldelagatecomponent
|
||||||
// see qtdeclarative/qqmldelagatecomponent
|
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
@ -40,8 +39,8 @@ private:
|
|||||||
|
|
||||||
class DelegateChooser : public QQuickItem
|
class DelegateChooser : public QQuickItem
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
Q_CLASSINFO("DefaultProperty", "choices")
|
Q_CLASSINFO("DefaultProperty", "choices")
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Q_PROPERTY(QQmlListProperty<DelegateChoice> choices READ choices CONSTANT)
|
Q_PROPERTY(QQmlListProperty<DelegateChoice> choices READ choices CONSTANT)
|
||||||
@ -81,4 +80,3 @@ private:
|
|||||||
static DelegateChoice *choice(QQmlListProperty<DelegateChoice> *, int index);
|
static DelegateChoice *choice(QQmlListProperty<DelegateChoice> *, int index);
|
||||||
static void clearChoices(QQmlListProperty<DelegateChoice> *);
|
static void clearChoices(QQmlListProperty<DelegateChoice> *);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user