source: tspsg-svn/trunk/src/qtwin.h @ 92

Last change on this file since 92 was 92, checked in by laleppa, 15 years ago

+ Some Windows Vista and Windows 7 eyecandy with translucent windows thanks to http://labs.trolltech.com/blogs/2009/09/15/using-blur-behind-on-windows/ :-)

  • Property svn:keywords set to Id URL
File size: 1.1 KB
RevLine 
[92]1/****************************************************************************
2**
3** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
4**
5** Use, modification and distribution is allowed without limitation,
6** warranty, liability or support of any kind.
7**
8****************************************************************************/
9
10#ifndef QTWIN_H
11#define QTWIN_H
12
13#include <QColor>
14#include <QWidget>
15/**
16  * This is a helper class for using the Desktop Window Manager
17  * functionality on Windows 7 and Windows Vista. On other platforms
18  * these functions will simply not do anything.
19  */
20
21class WindowNotifier;
22
23class QtWin
24{
25public:
26    static bool enableBlurBehindWindow(QWidget *widget, bool enable = true);
27    static bool extendFrameIntoClientArea(QWidget *widget,
28                                          int left = -1, int top = -1,
29                                          int right = -1, int bottom = -1);
30    static bool isCompositionEnabled();
31    static QColor colorizatinColor();
32
33private:
34    static WindowNotifier *windowNotifier();
35};
36
37#endif // QTWIN_H
Note: See TracBrowser for help on using the repository browser.