2011-03-15 23:14:39 +01:00
|
|
|
/* ============================================================
|
|
|
|
* QupZilla - WebKit based browser
|
|
|
|
* Copyright (C) 2010-2011 nowrep
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
* ============================================================ */
|
2011-03-02 16:57:41 +01:00
|
|
|
/****************************************************************************
|
|
|
|
**
|
|
|
|
** 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:
|
2011-03-15 23:14:39 +01:00
|
|
|
static bool isRunningWindows7();
|
2011-03-02 16:57:41 +01:00
|
|
|
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
|