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