Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qcustompixmapstyle.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
4#include "qcustompixmapstyle.h"
5
6#include <QtGui>
7
8using namespace Qt::StringLiterals;
9
11QCustomPixmapStyle::QCustomPixmapStyle() :
13{
15 addDescriptor(PB_Enabled,
16 "://button/core_button_inactive.png"_L1,
17 QMargins(13, 13, 13, 13),
20 addDescriptor(PB_Checked,
21 "://button/core_button_enabled_selected.png"_L1,
22 QMargins(13, 13, 13, 13),
24 addDescriptor(PB_Pressed,
25 "://button/core_button_pressed.png"_L1,
26 QMargins(13, 13, 13, 13),
28 addDescriptor(PB_Disabled,
29 "://button/core_button_disabled.png"_L1,
30 QMargins(13, 13, 13, 13),
32 addDescriptor(PB_PressedDisabled,
33 "://button/core_button_disabled_selected.png"_L1,
34 QMargins(13, 13, 13, 13),
36
38 addDescriptor(LE_Enabled,
39 "://lineedit/core_textinput_bg.png"_L1,
40 QMargins(8, 8, 8, 8));
41 addDescriptor(LE_Disabled,
42 "://lineedit/core_textinput_bg_disabled.png"_L1,
43 QMargins(8, 8, 8, 8));
44 addDescriptor(LE_Focused,
45 "://lineedit/core_textinput_bg_highlight.png"_L1,
46 QMargins(8, 8, 8, 8));
47
48 copyDescriptor(LE_Enabled, TE_Enabled);
49 copyDescriptor(LE_Disabled, TE_Disabled);
50 copyDescriptor(LE_Focused, TE_Focused);
52}
54
55QCustomPixmapStyle::~QCustomPixmapStyle()
56{
57}
\inmodule QtCore
Definition qmargins.h:24
The QPixmapStyle class provides mechanism for writing pixmap based styles.
@ RepeatTile
Definition qnamespace.h:135
@ StretchTile
Definition qnamespace.h:134
The QTileRules class provides the rules used to draw a pixmap or image split into nine segments.
Definition qdrawutil.h:88