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
dpi_chooser.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
//
6
// W A R N I N G
7
// -------------
8
//
9
// This file is not part of the Qt API. It exists for the convenience
10
// of Qt Designer. This header
11
// file may change from version to version without notice, or even be removed.
12
//
13
// We mean it.
14
//
15
16
#
ifndef
DPICHOOSER_H
17
#
define
DPICHOOSER_H
18
19
#
include
<
QtWidgets
/
qwidget
.
h
>
20
21
QT_BEGIN_NAMESPACE
22
23
class
QSpinBox;
24
class
QComboBox;
25
26
namespace
qdesigner_internal
{
27
28
struct
DPI_Entry
;
29
30
/* Let the user choose a DPI settings */
31
class
DPI_Chooser
:
public
QWidget
{
32
Q_DISABLE_COPY_MOVE
(
DPI_Chooser
)
33
Q_OBJECT
34
35
public
:
36
explicit
DPI_Chooser
(
QWidget
*
parent
=
nullptr
);
37
~
DPI_Chooser
()
override
;
38
39
void
getDPI
(
int
*dpiX,
int
*dpiY)
const
;
40
void
setDPI
(
int
dpiX,
int
dpiY);
41
42
private
slots
:
43
void
syncSpinBoxes
();
44
45
private
:
46
void
setUserDefinedValues(
int
dpiX,
int
dpiY);
47
48
struct
DPI_Entry
*m_systemEntry;
49
QComboBox *m_predefinedCombo;
50
QSpinBox *m_dpiXSpinBox;
51
QSpinBox *m_dpiYSpinBox;
52
};
53
}
54
55
QT_END_NAMESPACE
56
57
#
endif
// DPICHOOSER_H
QPainter::QWidget
friend class QWidget
Definition
qpainter.h:432
qdesigner_internal::DPI_Chooser
Definition
dpi_chooser.h:31
qdesigner_internal::DPI_Chooser::getDPI
void getDPI(int *dpiX, int *dpiY) const
Definition
dpi_chooser.cpp:105
qdesigner_internal::DPI_Chooser::~DPI_Chooser
~DPI_Chooser() override
Definition
dpi_chooser.cpp:100
qdesigner_internal::DPI_Chooser::setDPI
void setDPI(int dpiX, int dpiY)
Definition
dpi_chooser.cpp:111
minDPI
@ minDPI
Definition
dpi_chooser.cpp:18
maxDPI
@ maxDPI
Definition
dpi_chooser.cpp:18
Q_DECLARE_METATYPE
QT_END_NAMESPACE Q_DECLARE_METATYPE(const struct qdesigner_internal::DPI_Entry *)
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qdesigner_internal
Auxiliary methods to store/retrieve settings.
Definition
buddyeditor.cpp:67
qdesigner_internal::dpiEntries
const struct DPI_Entry dpiEntries[]
Definition
dpi_chooser.cpp:29
qdesigner_internal::DPI_Entry
Definition
dpi_chooser.cpp:23
qdesigner_internal::DPI_Entry::dpiY
int dpiY
Definition
dpi_chooser.cpp:25
qdesigner_internal::DPI_Entry::description
const char * description
Definition
dpi_chooser.cpp:26
qdesigner_internal::DPI_Entry::dpiX
int dpiX
Definition
dpi_chooser.cpp:24
qttools
src
designer
src
components
formeditor
dpi_chooser.h
Generated on
for Qt by
1.18.0