Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
abstractformwindowcursor.h
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
5
#
ifndef
ABSTRACTFORMWINDOWCURSOR_H
6
#
define
ABSTRACTFORMWINDOWCURSOR_H
7
8
#
include
<
QtDesigner
/
sdk_global
.
h
>
9
10
QT_BEGIN_NAMESPACE
11
12
class
QDesignerFormWindowInterface;
13
class
QWidget
;
14
class
QVariant;
15
class
QString;
16
17
class
QDESIGNER_SDK_EXPORT
QDesignerFormWindowCursorInterface
18
{
19
public
:
20
Q_DISABLE_COPY_MOVE(QDesignerFormWindowCursorInterface)
21
22
enum
MoveOperation
23
{
24
NoMove,
25
26
Start,
27
End,
28
Next,
29
Prev,
30
Left,
31
Right,
32
Up,
33
Down
34
};
35
36
enum
MoveMode
37
{
38
MoveAnchor,
39
KeepAnchor
40
};
41
42
QDesignerFormWindowCursorInterface() =
default
;
43
virtual
~QDesignerFormWindowCursorInterface() =
default
;
44
45
virtual
QDesignerFormWindowInterface *formWindow()
const
= 0;
46
47
virtual
bool
movePosition(MoveOperation op, MoveMode mode = MoveAnchor) = 0;
48
49
virtual
int
position()
const
= 0;
50
virtual
void
setPosition(
int
pos, MoveMode mode = MoveAnchor) = 0;
51
52
virtual
QWidget *current()
const
= 0;
53
54
virtual
int
widgetCount()
const
= 0;
55
virtual
QWidget *widget(
int
index)
const
= 0;
56
57
virtual
bool
hasSelection()
const
= 0;
58
virtual
int
selectedWidgetCount()
const
= 0;
59
virtual
QWidget *selectedWidget(
int
index)
const
= 0;
60
61
virtual
void
setProperty(
const
QString &name,
const
QVariant &value) = 0;
62
virtual
void
setWidgetProperty(QWidget *widget,
const
QString &name,
const
QVariant &value) = 0;
63
virtual
void
resetWidgetProperty(QWidget *widget,
const
QString &name) = 0;
64
65
bool
isWidgetSelected(QWidget *widget)
const
;
66
};
67
68
QT_END_NAMESPACE
69
70
#
endif
// ABSTRACTFORMWINDOWCURSOR_H
QDesignerFormWindowCursorInterface
The QDesignerFormWindowCursorInterface class allows you to query and modify a form window's widget se...
Definition
abstractformwindowcursor.h:18
QPainter::QWidget
friend class QWidget
Definition
qpainter.h:432
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qttools
src
designer
src
lib
sdk
abstractformwindowcursor.h
Generated on
for Qt by
1.18.0