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
line_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
5#include "formwindow.h"
6
7// sdk
8#include <QtDesigner/qextensionmanager.h>
9
10#include <QtWidgets/qlayout.h>
11#include <QtCore/qmetaobject.h>
12#include <QtCore/qdebug.h>
13
15
16using namespace Qt::StringLiterals;
17
18namespace qdesigner_internal {
19
20LinePropertySheet::LinePropertySheet(Line *object, QObject *parent)
21 : QDesignerPropertySheet(object, parent)
22{
23 clearFakeProperties();
24}
25
27
28bool LinePropertySheet::isVisible(int index) const
29{
30 const QString name = propertyName(index);
31
32 if (name == "frameShape"_L1)
33 return false;
34 return QDesignerPropertySheet::isVisible(index);
35}
36
37void LinePropertySheet::setProperty(int index, const QVariant &value)
38{
39 QDesignerPropertySheet::setProperty(index, value);
40}
41
42QString LinePropertySheet::propertyGroup(int index) const
43{
44 return QDesignerPropertySheet::propertyGroup(index);
45}
46
47} // namespace qdesigner_internal
48
49QT_END_NAMESPACE
QString propertyGroup(int index) const override
bool isVisible(int index) const override
void setProperty(int index, const QVariant &value) override
Combined button and popup list for selecting options.
Auxiliary methods to store/retrieve settings.