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