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// Qt-Security score:significant reason:default
4
6#include "formwindow.h"
7
8// sdk
9#include <QtDesigner/qextensionmanager.h>
10
11#include <QtWidgets/qlayout.h>
12#include <QtCore/qmetaobject.h>
13#include <QtCore/qdebug.h>
14
16
17using namespace Qt::StringLiterals;
18
19namespace qdesigner_internal {
20
21LinePropertySheet::LinePropertySheet(Line *object, QObject *parent)
22 : QDesignerPropertySheet(object, parent)
23{
24 clearFakeProperties();
25}
26
28
29bool LinePropertySheet::isVisible(int index) const
30{
31 const QString name = propertyName(index);
32
33 if (name == "frameShape"_L1)
34 return false;
35 return QDesignerPropertySheet::isVisible(index);
36}
37
38void LinePropertySheet::setProperty(int index, const QVariant &value)
39{
40 QDesignerPropertySheet::setProperty(index, value);
41}
42
43QString LinePropertySheet::propertyGroup(int index) const
44{
45 return QDesignerPropertySheet::propertyGroup(index);
46}
47
48} // namespace qdesigner_internal
49
50QT_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.