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
6#include "formwindow.h"
8
9#include <QtDesigner/qextensionmanager.h>
10
11#include <QtWidgets/qlayout.h>
12
14
15using namespace Qt::StringLiterals;
16
17namespace qdesigner_internal
18{
19SpacerPropertySheet::SpacerPropertySheet(Spacer *object, QObject *parent)
20 : QDesignerPropertySheet(object, parent)
21{
22 clearFakeProperties();
23}
24
26
27bool SpacerPropertySheet::isVisible(int index) const
28{
29 return propertyGroup(index) == "Spacer"_L1;
30}
31
32void SpacerPropertySheet::setProperty(int index, const QVariant &value)
33{
34 QDesignerPropertySheet::setProperty(index, value);
35}
36
38{
39 return false;
40}
41}
42
43QT_END_NAMESPACE
void setProperty(int index, const QVariant &value) override
Combined button and popup list for selecting options.
Auxiliary methods to store/retrieve settings.