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
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
7
9
10bool QWindowsVistaAnimation::isUpdateNeeded() const
11{
13}
14
15void 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
23QT_END_NAMESPACE
friend class QPainter
static bool useVista(bool update=false)