Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
spacer_propertysheet.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3// Qt-Security score:significant reason:default
4
7#include "formwindow.h"
9
10#include <QtDesigner/qextensionmanager.h>
11
12#include <QtWidgets/qlayout.h>
13
15
16using namespace Qt::StringLiterals;
17
18namespace qdesigner_internal
19{
20SpacerPropertySheet::SpacerPropertySheet(Spacer *object, QObject *parent)
21 : QDesignerPropertySheet(object, parent)
22{
23 clearFakeProperties();
24}
25
27
28bool SpacerPropertySheet::isVisible(int index) const
29{
30 return propertyGroup(index) == "Spacer"_L1;
31}
32
33void SpacerPropertySheet::setProperty(int index, const QVariant &value)
34{
35 QDesignerPropertySheet::setProperty(index, value);
36}
37
39{
40 return false;
41}
42}
43
44QT_END_NAMESPACE
void setProperty(int index, const QVariant &value) override
Combined button and popup list for selecting options.
Auxiliary methods to store/retrieve settings.