defuze.me  Client
qtwin.h
00001 /****************************************************************************
00002 **
00003 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
00004 **
00005 ** Use, modification and distribution is allowed without limitation,
00006 ** warranty, liability or support of any kind.
00007 **
00008 ****************************************************************************/
00009 
00010 #ifndef QTWIN_H
00011 #define QTWIN_H
00012 
00013 #include <QColor>
00014 #include <QWidget>
00015 
00016 class WindowNotifier;
00017 
00025 class QtWin
00026 {
00027 public:
00028     static bool enableBlurBehindWindow(QWidget *widget, bool enable = true);
00029     static bool extendFrameIntoClientArea(QWidget *widget,
00030                                           int left = -1, int top = -1,
00031                                           int right = -1, int bottom = -1);
00032     static bool isCompositionEnabled();
00033     static QColor colorizatinColor();
00034 
00035 private:
00036     static WindowNotifier *windowNotifier();
00037 };
00038 
00039 #endif // QTWIN_H