Qt
6.x
The Qt SDK
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
4
#include "
qwindowsvistaanimation_p.h
"
5
#include "
qwindowsvistastyle_p_p.h
"
6
7
bool
QWindowsVistaAnimation::isUpdateNeeded
()
const
8
{
9
return
QWindowsVistaStylePrivate::useVista
();
10
}
11
12
void
QWindowsVistaAnimation::paint
(
QPainter
*
painter
,
const
QStyleOption
*
option
)
13
{
14
painter
->
drawImage
(
option
->rect,
currentImage
());
15
}
QBlendStyleAnimation::currentImage
QImage currentImage() const
Definition
qstyleanimation.cpp:211
QPainter
The QPainter class performs low-level painting on widgets and other paint devices.
Definition
qpainter.h:46
QPainter::drawImage
void drawImage(const QRectF &targetRect, const QImage &image, const QRectF &sourceRect, Qt::ImageConversionFlags flags=Qt::AutoColor)
Draws the rectangular portion source of the given image into the target rectangle in the paint device...
Definition
qpainter.cpp:5147
QStyleOption
The QStyleOption class stores the parameters used by QStyle functions.
Definition
qstyleoption.h:39
QWindowsVistaAnimation::isUpdateNeeded
bool isUpdateNeeded() const override
Definition
qwindowsvistaanimation.cpp:7
QWindowsVistaAnimation::paint
void paint(QPainter *painter, const QStyleOption *option)
Definition
qwindowsvistaanimation.cpp:12
QWindowsVistaStylePrivate::useVista
static bool useVista(bool update=false)
Definition
qwindowsvistastyle.cpp:169
option
GLuint GLenum option
Definition
qopenglext.h:5929
qwindowsvistaanimation_p.h
qwindowsvistastyle_p_p.h
painter
QPainter painter(this)
[7]
qtbase
src
plugins
styles
windowsvista
qwindowsvistaanimation.cpp
Generated by
1.9.7