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
qwindowsvistaanimation.cpp
Go to the documentation of this file.
1
// Copyright (C) 2016 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
#
include
"qwindowsvistaanimation_p.h"
6
#
include
"qwindowsvistastyle_p_p.h"
7
8
QT_BEGIN_NAMESPACE
9
10
bool
QWindowsVistaAnimation::isUpdateNeeded()
const
11
{
12
return
QWindowsVistaStylePrivate
::
useVista
(
)
;
13
}
14
15
void
QWindowsVistaAnimation::paint(
QPainter
*painter,
const
QStyleOption *option)
16
{
17
const
auto
img = currentImage();
18
const
auto
sz = QSizeF(option->rect.size()) * img.devicePixelRatio();
19
QRectF sourceRect(0, 0, sz.width(), sz.height());
20
painter->drawImage(option->rect, img, sourceRect);
21
}
22
23
QT_END_NAMESPACE
QPaintEngine::QPainter
friend class QPainter
Definition
qpaintengine.h:220
QWindowsVistaStylePrivate
Definition
qwindowsvistastyle_p_p.h:89
QWindowsVistaStylePrivate::useVista
static bool useVista(bool update=false)
Definition
qwindowsvistastyle.cpp:161
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtbase
src
plugins
styles
modernwindows
qwindowsvistaanimation.cpp
Generated on
for Qt by
1.18.0