Qt
6.x
The Qt SDK
Loading...
Searching...
No Matches
qwindowsvistaanimation_p.h
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
#ifndef QWINDOWSVISTAANIMATION_P_H
5
#define QWINDOWSVISTAANIMATION_P_H
6
7
//
8
// W A R N I N G
9
// -------------
10
//
11
// This file is not part of the Qt API. It exists purely as an
12
// implementation detail. This header file may change from version to
13
// version without notice, or even be removed.
14
//
15
// We mean it.
16
//
17
18
#include <private/qstyleanimation_p.h>
19
#include <QtWidgets/private/qwindowsstyle_p.h>
20
21
class
QWindowsVistaAnimation
:
public
QBlendStyleAnimation
22
{
23
Q_OBJECT
24
public
:
25
QWindowsVistaAnimation
(
Type
type
,
QObject
*
target
) :
QBlendStyleAnimation
(
type
,
target
) { }
26
27
bool
isUpdateNeeded
()
const override
;
28
void
paint
(
QPainter
*
painter
,
const
QStyleOption
*
option
);
29
};
30
31
32
// Handles state transition animations
33
class
QWindowsVistaTransition
:
public
QWindowsVistaAnimation
34
{
35
Q_OBJECT
36
public
:
37
QWindowsVistaTransition
(
QObject
*
target
) :
QWindowsVistaAnimation
(
Transition
,
target
) {}
38
};
39
40
41
// Handles pulse animations (default buttons)
42
class
QWindowsVistaPulse
:
public
QWindowsVistaAnimation
43
{
44
Q_OBJECT
45
public
:
46
QWindowsVistaPulse
(
QObject
*
target
) :
QWindowsVistaAnimation
(
Pulse
,
target
) {}
47
};
48
49
#endif
// QWINDOWSVISTAANIMATION_P_H
QBlendStyleAnimation
Definition
qstyleanimation_p.h:120
QBlendStyleAnimation::Pulse
@ Pulse
Definition
qstyleanimation_p.h:124
QBlendStyleAnimation::Transition
@ Transition
Definition
qstyleanimation_p.h:124
QObject
\inmodule QtCore
Definition
qobject.h:90
QPainter
The QPainter class performs low-level painting on widgets and other paint devices.
Definition
qpainter.h:46
QStyleOption
The QStyleOption class stores the parameters used by QStyle functions.
Definition
qstyleoption.h:39
QWindowsVistaAnimation
Definition
qwindowsvistaanimation_p.h:22
QWindowsVistaAnimation::isUpdateNeeded
bool isUpdateNeeded() const override
Definition
qwindowsvistaanimation.cpp:7
QWindowsVistaAnimation::QWindowsVistaAnimation
QWindowsVistaAnimation(Type type, QObject *target)
Definition
qwindowsvistaanimation_p.h:25
QWindowsVistaPulse
Definition
qwindowsvistaanimation_p.h:43
QWindowsVistaPulse::QWindowsVistaPulse
QWindowsVistaPulse(QObject *target)
Definition
qwindowsvistaanimation_p.h:46
QWindowsVistaTransition
Definition
qwindowsvistaanimation_p.h:34
QWindowsVistaTransition::QWindowsVistaTransition
QWindowsVistaTransition(QObject *target)
Definition
qwindowsvistaanimation_p.h:37
paint
QPainter paint
Definition
doc_src_groups.cpp:25
type
GLenum type
Definition
qopengles2ext.h:150
target
GLenum target
Definition
qopengles2ext.h:751
option
GLuint GLenum option
Definition
qopenglext.h:5929
Q_OBJECT
#define Q_OBJECT
Definition
qtmetamacros.h:117
painter
QPainter painter(this)
[7]
Type
Definition
moc.h:24
qtbase
src
plugins
styles
windowsvista
qwindowsvistaanimation_p.h
Generated by
1.9.7