forked from qt-creator/qt-creator
QmlDesigner: Fix coding style
Change-Id: I597f906627ac690cb1e066c394f11ecaeced90d9 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
committed by
Henning Gründl
parent
f9c03f23c4
commit
53b95862ad
@@ -109,7 +109,7 @@ void AlignDistribute::setModelNodeBackend(const QVariant &modelNodeBackend)
|
|||||||
// The purpose of this function is to suppress the following warning:
|
// The purpose of this function is to suppress the following warning:
|
||||||
// Warning: Property declaration modelNodeBackendProperty has no READ accessor
|
// Warning: Property declaration modelNodeBackendProperty has no READ accessor
|
||||||
// function or associated MEMBER variable. The property will be invalid.
|
// function or associated MEMBER variable. The property will be invalid.
|
||||||
QVariant AlignDistribute::getModelNodeBackend() const
|
QVariant AlignDistribute::modelNodeBackend() const
|
||||||
{
|
{
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
@@ -44,7 +44,7 @@ class AlignDistribute : public QObject
|
|||||||
Q_PROPERTY(bool selectionContainsRootItem READ selectionContainsRootItem NOTIFY
|
Q_PROPERTY(bool selectionContainsRootItem READ selectionContainsRootItem NOTIFY
|
||||||
modelNodeBackendChanged)
|
modelNodeBackendChanged)
|
||||||
|
|
||||||
Q_PROPERTY(QVariant modelNodeBackendProperty READ getModelNodeBackend WRITE setModelNodeBackend
|
Q_PROPERTY(QVariant modelNodeBackendProperty READ modelNodeBackend WRITE setModelNodeBackend
|
||||||
NOTIFY modelNodeBackendChanged)
|
NOTIFY modelNodeBackendChanged)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@@ -68,7 +68,6 @@ public:
|
|||||||
bool selectionContainsRootItem() const;
|
bool selectionContainsRootItem() const;
|
||||||
|
|
||||||
void setModelNodeBackend(const QVariant &modelNodeBackend);
|
void setModelNodeBackend(const QVariant &modelNodeBackend);
|
||||||
QVariant getModelNodeBackend() const;
|
|
||||||
|
|
||||||
static void registerDeclarativeType();
|
static void registerDeclarativeType();
|
||||||
|
|
||||||
@@ -83,6 +82,9 @@ public:
|
|||||||
signals:
|
signals:
|
||||||
void modelNodeBackendChanged();
|
void modelNodeBackendChanged();
|
||||||
|
|
||||||
|
private:
|
||||||
|
QVariant modelNodeBackend() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
using CompareFunction = std::function<bool(const ModelNode &, const ModelNode &)>;
|
using CompareFunction = std::function<bool(const ModelNode &, const ModelNode &)>;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user