diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2011-07-09 15:26:57 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2011-07-09 15:26:57 +0200 |
commit | 0b814f9ea3d47e35b6966061aa3f3c0aac5ab048 (patch) | |
tree | 3b3abab81932b2c7b4a08bbfb9711db3ee8c2702 /src/qt/qtwin.h | |
parent | 7668631d1b65ff1d1e7ad09086f6dc91fdd7ed77 (diff) | |
download | bitcoin-0b814f9ea3d47e35b6966061aa3f3c0aac5ab048.tar.xz |
add better windows7/vista look by nico_w
Diffstat (limited to 'src/qt/qtwin.h')
-rw-r--r-- | src/qt/qtwin.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/qt/qtwin.h b/src/qt/qtwin.h new file mode 100644 index 0000000000..4008c7fa28 --- /dev/null +++ b/src/qt/qtwin.h @@ -0,0 +1,37 @@ +/**************************************************************************** +** +** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). +** +** Use, modification and distribution is allowed without limitation, +** warranty, liability or support of any kind. +** +****************************************************************************/ + +#ifndef QTWIN_H +#define QTWIN_H + +#include <QColor> +#include <QWidget> +/** + * This is a helper class for using the Desktop Window Manager + * functionality on Windows 7 and Windows Vista. On other platforms + * these functions will simply not do anything. + */ + +class WindowNotifier; + +class QtWin +{ +public: + static bool enableBlurBehindWindow(QWidget *widget, bool enable = true); + static bool extendFrameIntoClientArea(QWidget *widget, + int left = -1, int top = -1, + int right = -1, int bottom = -1); + static bool isCompositionEnabled(); + static QColor colorizatinColor(); + +private: + static WindowNotifier *windowNotifier(); +}; + +#endif // QTWIN_H |