Windows CE cleanup.
Remove remaining CE-specific files and #ifdefs. Change-Id: I407e14cade64c9eaa414f333764b4f82a75befde Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
This commit is contained in:
parent
f15cfbfdee
commit
ffde99d5a0
@ -144,13 +144,4 @@
|
||||
#define CLEARTYPE_QUALITY 5
|
||||
#endif
|
||||
|
||||
#ifdef Q_OS_WINCE
|
||||
#ifndef LR_DEFAULTSIZE
|
||||
#define LR_DEFAULTSIZE 0
|
||||
#endif
|
||||
#ifndef LR_SHARED
|
||||
#define LR_SHARED 0
|
||||
#endif
|
||||
#endif // Q_OS_WINCE
|
||||
|
||||
#endif // QT_WINDOWS_H
|
||||
|
@ -1,96 +0,0 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2016 The Qt Company Ltd.
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the QtNetwork module of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:LGPL$
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and The Qt Company. For licensing terms
|
||||
** and conditions see https://www.qt.io/terms-conditions. For further
|
||||
** information use the contact form at https://www.qt.io/contact-us.
|
||||
**
|
||||
** GNU Lesser General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
** General Public License version 3 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.LGPL3 included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU Lesser General Public License version 3 requirements
|
||||
** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
|
||||
**
|
||||
** GNU General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU
|
||||
** General Public License version 2.0 or (at your option) the GNU General
|
||||
** Public license version 3 or any later version approved by the KDE Free
|
||||
** Qt Foundation. The licenses are as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
|
||||
** included in the packaging of this file. Please review the following
|
||||
** information to ensure the GNU General Public License requirements will
|
||||
** be met: https://www.gnu.org/licenses/gpl-2.0.html and
|
||||
** https://www.gnu.org/licenses/gpl-3.0.html.
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QNETWORKFUNCTIONS_WINCE_H
|
||||
#define QNETWORKFUNCTIONS_WINCE_H
|
||||
|
||||
#if 0
|
||||
#pragma qt_sync_stop_processing
|
||||
#endif
|
||||
|
||||
#ifdef Q_OS_WINCE
|
||||
|
||||
#include <qt_windows.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
DECLARE_HANDLE(SC_HANDLE);
|
||||
typedef enum _SC_ENUM_TYPE {
|
||||
SC_ENUM_PROCESS_INFO = 0
|
||||
} SC_ENUM_TYPE;
|
||||
#define SC_MANAGER_CONNECT 0x0001
|
||||
#define SC_MANAGER_CREATE_SERVICE 0x0002
|
||||
#define SC_MANAGER_ENUMERATE_SERVICE 0x0004
|
||||
#define SERVICE_ACTIVE 0x00000001
|
||||
#define SERVICE_INACTIVE 0x00000002
|
||||
#define SERVICE_STATE_ALL (SERVICE_ACTIVE | \
|
||||
SERVICE_INACTIVE)
|
||||
typedef struct _SERVICE_STATUS_PROCESS {
|
||||
DWORD dwServiceType;
|
||||
DWORD dwCurrentState;
|
||||
DWORD dwControlsAccepted;
|
||||
DWORD dwWin32ExitCode;
|
||||
DWORD dwServiceSpecificExitCode;
|
||||
DWORD dwCheckPoint;
|
||||
DWORD dwWaitHint;
|
||||
DWORD dwProcessId;
|
||||
DWORD dwServiceFlags;
|
||||
} SERVICE_STATUS_PROCESS, *LPSERVICE_STATUS_PROCESS;
|
||||
typedef struct _ENUM_SERVICE_STATUS_PROCESSA {
|
||||
LPSTR lpServiceName;
|
||||
LPSTR lpDisplayName;
|
||||
SERVICE_STATUS_PROCESS ServiceStatusProcess;
|
||||
} ENUM_SERVICE_STATUS_PROCESSA, *LPENUM_SERVICE_STATUS_PROCESSA;
|
||||
typedef struct _ENUM_SERVICE_STATUS_PROCESSW {
|
||||
LPWSTR lpServiceName;
|
||||
LPWSTR lpDisplayName;
|
||||
SERVICE_STATUS_PROCESS ServiceStatusProcess;
|
||||
} ENUM_SERVICE_STATUS_PROCESSW, *LPENUM_SERVICE_STATUS_PROCESSW;
|
||||
#ifdef UNICODE
|
||||
typedef ENUM_SERVICE_STATUS_PROCESSW ENUM_SERVICE_STATUS_PROCESS;
|
||||
typedef LPENUM_SERVICE_STATUS_PROCESSW LPENUM_SERVICE_STATUS_PROCESS;
|
||||
#else
|
||||
typedef ENUM_SERVICE_STATUS_PROCESSA ENUM_SERVICE_STATUS_PROCESS;
|
||||
typedef LPENUM_SERVICE_STATUS_PROCESSA LPENUM_SERVICE_STATUS_PROCESS;
|
||||
#endif // UNICODE
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // Q_OS_WINCE
|
||||
#endif // QNETWORKFUNCTIONS_WINCE_H
|
@ -52,7 +52,6 @@
|
||||
#include <qt_windows.h>
|
||||
#include <wininet.h>
|
||||
#include <lmcons.h>
|
||||
#include "qnetworkfunctions_wince.h"
|
||||
|
||||
/*
|
||||
* Information on the WinHTTP DLL:
|
||||
|
@ -151,11 +151,10 @@ messageDebugEntries[] = {
|
||||
{WM_IME_ENDCOMPOSITION, "WM_IME_ENDCOMPOSITION", true},
|
||||
{WM_IME_NOTIFY, "WM_IME_NOTIFY", true},
|
||||
{WM_IME_REQUEST, "WM_IME_REQUEST", true},
|
||||
#if !defined(Q_OS_WINCE) && !defined(QT_NO_SESSIONMANAGER)
|
||||
#if !defined(QT_NO_SESSIONMANAGER)
|
||||
{WM_QUERYENDSESSION, "WM_QUERYENDSESSION", true},
|
||||
{WM_ENDSESSION, "WM_ENDSESSION", true},
|
||||
#endif
|
||||
#ifndef Q_OS_WINCE
|
||||
{WM_MOUSEACTIVATE,"WM_MOUSEACTIVATE", true},
|
||||
{WM_CHILDACTIVATE, "WM_CHILDACTIVATE", true},
|
||||
{WM_PARENTNOTIFY, "WM_PARENTNOTIFY", true},
|
||||
@ -181,7 +180,6 @@ messageDebugEntries[] = {
|
||||
{WM_CHANGECBCHAIN, "WM_CHANGECBCHAIN", true},
|
||||
{WM_DISPLAYCHANGE, "WM_DISPLAYCHANGE", true},
|
||||
{WM_DRAWCLIPBOARD, "WM_DRAWCLIPBOARD", true},
|
||||
#endif // !Q_OS_WINCE
|
||||
{WM_THEMECHANGED, "WM_THEMECHANGED", true}
|
||||
};
|
||||
|
||||
|
@ -56,12 +56,6 @@
|
||||
#ifndef QT_NO_STYLE_WINDOWSVISTA
|
||||
#include "qwindowsvistastyle_p.h"
|
||||
#endif
|
||||
#ifndef QT_NO_STYLE_WINDOWSCE
|
||||
#include "qwindowscestyle_p.h"
|
||||
#endif
|
||||
#ifndef QT_NO_STYLE_WINDOWSMOBILE
|
||||
#include "qwindowsmobilestyle_p.h"
|
||||
#endif
|
||||
|
||||
#if !defined(QT_NO_STYLE_MAC) && defined(Q_OS_MAC)
|
||||
# include "qmacstyle_mac_p.h"
|
||||
@ -114,16 +108,6 @@ QStyle *QStyleFactory::create(const QString& key)
|
||||
ret = new QWindowsStyle;
|
||||
else
|
||||
#endif
|
||||
#ifndef QT_NO_STYLE_WINDOWSCE
|
||||
if (style == QLatin1String("windowsce"))
|
||||
ret = new QWindowsCEStyle;
|
||||
else
|
||||
#endif
|
||||
#ifndef QT_NO_STYLE_WINDOWSMOBILE
|
||||
if (style == QLatin1String("windowsmobile"))
|
||||
ret = new QWindowsMobileStyle;
|
||||
else
|
||||
#endif
|
||||
#ifndef QT_NO_STYLE_WINDOWSXP
|
||||
if (style == QLatin1String("windowsxp"))
|
||||
ret = new QWindowsXPStyle;
|
||||
@ -180,14 +164,6 @@ QStringList QStyleFactory::keys()
|
||||
if (!list.contains(QLatin1String("Windows")))
|
||||
list << QLatin1String("Windows");
|
||||
#endif
|
||||
#ifndef QT_NO_STYLE_WINDOWSCE
|
||||
if (!list.contains(QLatin1String("WindowsCE")))
|
||||
list << QLatin1String("WindowsCE");
|
||||
#endif
|
||||
#ifndef QT_NO_STYLE_WINDOWSMOBILE
|
||||
if (!list.contains(QLatin1String("WindowsMobile")))
|
||||
list << QLatin1String("WindowsMobile");
|
||||
#endif
|
||||
#ifndef QT_NO_STYLE_WINDOWSXP
|
||||
if (!list.contains(QLatin1String("WindowsXP")) &&
|
||||
(QSysInfo::WindowsVersion >= QSysInfo::WV_XP && (QSysInfo::WindowsVersion & QSysInfo::WV_NT_based)))
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,108 +0,0 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2016 The Qt Company Ltd.
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the QtWidgets module of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:LGPL$
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and The Qt Company. For licensing terms
|
||||
** and conditions see https://www.qt.io/terms-conditions. For further
|
||||
** information use the contact form at https://www.qt.io/contact-us.
|
||||
**
|
||||
** GNU Lesser General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
** General Public License version 3 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.LGPL3 included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU Lesser General Public License version 3 requirements
|
||||
** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
|
||||
**
|
||||
** GNU General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU
|
||||
** General Public License version 2.0 or (at your option) the GNU General
|
||||
** Public license version 3 or any later version approved by the KDE Free
|
||||
** Qt Foundation. The licenses are as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
|
||||
** included in the packaging of this file. Please review the following
|
||||
** information to ensure the GNU General Public License requirements will
|
||||
** be met: https://www.gnu.org/licenses/gpl-2.0.html and
|
||||
** https://www.gnu.org/licenses/gpl-3.0.html.
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QWINDOWSCESTYLE_P_H
|
||||
#define QWINDOWSCESTYLE_P_H
|
||||
|
||||
//
|
||||
// W A R N I N G
|
||||
// -------------
|
||||
//
|
||||
// This file is not part of the Qt API. It exists purely as an
|
||||
// implementation detail. This header file may change from version to
|
||||
// version without notice, or even be removed.
|
||||
//
|
||||
// We mean it.
|
||||
//
|
||||
|
||||
#include <private/qwindowsstyle_p.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
|
||||
#if !defined(QT_NO_STYLE_WINDOWSCE)
|
||||
|
||||
class QWindowsCEStyle : public QWindowsStyle
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
QWindowsCEStyle();
|
||||
~QWindowsCEStyle();
|
||||
|
||||
void drawPrimitive(PrimitiveElement element, const QStyleOption *option,
|
||||
QPainter *painter, const QWidget *widget = 0) const;
|
||||
|
||||
void drawControl(ControlElement element, const QStyleOption *option,
|
||||
QPainter *painter, const QWidget *widget) const;
|
||||
|
||||
void drawComplexControl(ComplexControl control, const QStyleOptionComplex *option,
|
||||
QPainter *painter, const QWidget *widget) const;
|
||||
|
||||
virtual void drawItemText(QPainter *painter, const QRect &rect,
|
||||
int flags, const QPalette &pal, bool enabled,
|
||||
const QString &text, QPalette::ColorRole textRole = QPalette::NoRole) const;
|
||||
|
||||
QSize sizeFromContents(ContentsType type, const QStyleOption *option,
|
||||
const QSize &size, const QWidget *widget) const;
|
||||
|
||||
QRect subElementRect(SubElement element, const QStyleOption *option, const QWidget *widget) const;
|
||||
QRect subControlRect(ComplexControl cc, const QStyleOptionComplex *opt,
|
||||
SubControl sc, const QWidget *widget) const;
|
||||
|
||||
SubControl hitTestComplexControl(ComplexControl control, const QStyleOptionComplex *option,
|
||||
const QPoint &pos, const QWidget *widget = 0) const;
|
||||
|
||||
QPixmap standardPixmap(StandardPixmap standardPixmap, const QStyleOption *opt,
|
||||
const QWidget *widget = 0) const;
|
||||
int pixelMetric(PixelMetric metric, const QStyleOption *option = 0, const QWidget *widget = 0) const;
|
||||
|
||||
int styleHint(StyleHint hint, const QStyleOption *opt = 0, const QWidget *widget = 0,
|
||||
QStyleHintReturn *returnData = 0) const;
|
||||
|
||||
void polish(QWidget *widget);
|
||||
void polish(QPalette &palette);
|
||||
void polish(QApplication *app);
|
||||
QPalette standardPalette() const;
|
||||
};
|
||||
|
||||
#endif // QT_NO_STYLE_WINDOWSCE
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // QWINDOWSCESTYLE_P_H
|
@ -1,116 +0,0 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2016 The Qt Company Ltd.
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the QtWidgets module of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:LGPL$
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and The Qt Company. For licensing terms
|
||||
** and conditions see https://www.qt.io/terms-conditions. For further
|
||||
** information use the contact form at https://www.qt.io/contact-us.
|
||||
**
|
||||
** GNU Lesser General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
** General Public License version 3 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.LGPL3 included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU Lesser General Public License version 3 requirements
|
||||
** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
|
||||
**
|
||||
** GNU General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU
|
||||
** General Public License version 2.0 or (at your option) the GNU General
|
||||
** Public license version 3 or any later version approved by the KDE Free
|
||||
** Qt Foundation. The licenses are as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
|
||||
** included in the packaging of this file. Please review the following
|
||||
** information to ensure the GNU General Public License requirements will
|
||||
** be met: https://www.gnu.org/licenses/gpl-2.0.html and
|
||||
** https://www.gnu.org/licenses/gpl-3.0.html.
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QWINDOWSCESTYLE_P_P_H
|
||||
#define QWINDOWSCESTYLE_P_P_H
|
||||
|
||||
#include "qwindowscestyle_p.h"
|
||||
#include <private/qwindowsstyle_p_p.h>
|
||||
|
||||
//
|
||||
// W A R N I N G
|
||||
// -------------
|
||||
//
|
||||
// This file is not part of the Qt API. It exists for the convenience
|
||||
// of qapplication_*.cpp, qwidget*.cpp and qfiledialog.cpp. This header
|
||||
// file may change from version to version without notice, or even be removed.
|
||||
//
|
||||
// We mean it.
|
||||
//
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QPainter;
|
||||
class QPalette;
|
||||
class QPoint;
|
||||
class QColor;
|
||||
class QBrush;
|
||||
class QRect;
|
||||
|
||||
// Private class
|
||||
class QWindowsCEStylePrivate : public QWindowsStylePrivate
|
||||
{
|
||||
Q_DECLARE_PUBLIC(QWindowsCEStyle)
|
||||
public:
|
||||
inline QWindowsCEStylePrivate()
|
||||
{ }
|
||||
|
||||
|
||||
static void drawWinCEButton(QPainter *p, int x, int y, int w, int h,
|
||||
const QPalette &pal, bool sunken = false,
|
||||
const QBrush *fill = 0);
|
||||
|
||||
static void drawWinCEButton(QPainter *p, const QRect &r,
|
||||
const QPalette &pal, bool sunken = false,
|
||||
const QBrush *fill = 0);
|
||||
|
||||
static void drawWinCEPanel(QPainter *p, int x, int y, int w, int h,
|
||||
const QPalette &pal, bool sunken = false,
|
||||
const QBrush *fill = 0);
|
||||
|
||||
static void drawWinCEPanel(QPainter *p, const QRect &r,
|
||||
const QPalette &pal, bool sunken = false,
|
||||
const QBrush *fill = 0);
|
||||
|
||||
static void drawWinShades(QPainter *p,
|
||||
int x, int y, int w, int h,
|
||||
const QColor &c1, const QColor &c2,
|
||||
const QColor &c3, const QColor &c4,
|
||||
const QBrush *fill);
|
||||
|
||||
static void drawWinCEShades(QPainter *p,
|
||||
int x, int y, int w, int h,
|
||||
const QColor &c1, const QColor &c2,
|
||||
const QColor &c3, const QColor &c4,
|
||||
const QBrush *fill);
|
||||
|
||||
static void drawWinCEShadesSunken(QPainter *p,
|
||||
int x, int y, int w, int h,
|
||||
const QColor &c1, const QColor &c2,
|
||||
const QColor &c3, const QColor &c4,
|
||||
const QBrush *fill);
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif //QWINDOWSCESTYLE_P_P_H
|
File diff suppressed because it is too large
Load Diff
@ -1,121 +0,0 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2016 The Qt Company Ltd.
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the QtWidgets module of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:LGPL$
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and The Qt Company. For licensing terms
|
||||
** and conditions see https://www.qt.io/terms-conditions. For further
|
||||
** information use the contact form at https://www.qt.io/contact-us.
|
||||
**
|
||||
** GNU Lesser General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
** General Public License version 3 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.LGPL3 included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU Lesser General Public License version 3 requirements
|
||||
** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
|
||||
**
|
||||
** GNU General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU
|
||||
** General Public License version 2.0 or (at your option) the GNU General
|
||||
** Public license version 3 or any later version approved by the KDE Free
|
||||
** Qt Foundation. The licenses are as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
|
||||
** included in the packaging of this file. Please review the following
|
||||
** information to ensure the GNU General Public License requirements will
|
||||
** be met: https://www.gnu.org/licenses/gpl-2.0.html and
|
||||
** https://www.gnu.org/licenses/gpl-3.0.html.
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QWINDOWSMOBILESTYLE_P_H
|
||||
#define QWINDOWSMOBILESTYLE_P_H
|
||||
|
||||
//
|
||||
// W A R N I N G
|
||||
// -------------
|
||||
//
|
||||
// This file is not part of the Qt API. It exists purely as an
|
||||
// implementation detail. This header file may change from version to
|
||||
// version without notice, or even be removed.
|
||||
//
|
||||
// We mean it.
|
||||
//
|
||||
|
||||
#include <private/qwindowsstyle_p.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
|
||||
#if !defined(QT_NO_STYLE_WINDOWSMOBILE)
|
||||
|
||||
class QWindowsMobileStylePrivate;
|
||||
|
||||
class QWindowsMobileStyle : public QWindowsStyle
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
QWindowsMobileStyle();
|
||||
~QWindowsMobileStyle();
|
||||
|
||||
void drawPrimitive(PrimitiveElement element, const QStyleOption *option,
|
||||
QPainter *painter, const QWidget *widget = 0) const;
|
||||
|
||||
void drawControl(ControlElement element, const QStyleOption *option,
|
||||
QPainter *painter, const QWidget *widget) const;
|
||||
|
||||
void drawComplexControl(ComplexControl control, const QStyleOptionComplex *option,
|
||||
QPainter *painter, const QWidget *widget) const;
|
||||
|
||||
QSize sizeFromContents(ContentsType type, const QStyleOption *option,
|
||||
const QSize &size, const QWidget *widget) const;
|
||||
|
||||
QRect subElementRect(SubElement element, const QStyleOption *option, const QWidget *widget) const;
|
||||
|
||||
QRect subControlRect(ComplexControl cc, const QStyleOptionComplex *opt,
|
||||
SubControl sc, const QWidget *widget) const;
|
||||
|
||||
QPixmap generatedIconPixmap(QIcon::Mode iconMode, const QPixmap &pixmap,
|
||||
const QStyleOption *option) const;
|
||||
|
||||
QPixmap standardPixmap(StandardPixmap sp, const QStyleOption *option,
|
||||
const QWidget *widget) const;
|
||||
|
||||
int pixelMetric(PixelMetric metric, const QStyleOption *option = 0, const QWidget *widget = 0) const;
|
||||
|
||||
int styleHint(StyleHint hint, const QStyleOption *opt = 0, const QWidget *widget = 0,
|
||||
QStyleHintReturn *returnData = 0) const;
|
||||
|
||||
void polish(QApplication*);
|
||||
void unpolish(QApplication*);
|
||||
void polish(QWidget *widget);
|
||||
void unpolish(QWidget *widget);
|
||||
void polish(QPalette &);
|
||||
|
||||
QPalette standardPalette() const;
|
||||
|
||||
bool doubleControls() const;
|
||||
|
||||
void setDoubleControls(bool);
|
||||
|
||||
protected:
|
||||
QWindowsMobileStyle(QWindowsMobileStylePrivate &dd);
|
||||
|
||||
private:
|
||||
Q_DECLARE_PRIVATE(QWindowsMobileStyle)
|
||||
};
|
||||
|
||||
#endif // QT_NO_STYLE_WINDOWSMOBILE
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif //QWINDOWSMOBILESTYLE_P_H
|
@ -1,133 +0,0 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2016 The Qt Company Ltd.
|
||||
** Contact: https://www.qt.io/licensing/
|
||||
**
|
||||
** This file is part of the QtWidgets module of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:LGPL$
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and The Qt Company. For licensing terms
|
||||
** and conditions see https://www.qt.io/terms-conditions. For further
|
||||
** information use the contact form at https://www.qt.io/contact-us.
|
||||
**
|
||||
** GNU Lesser General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
** General Public License version 3 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.LGPL3 included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU Lesser General Public License version 3 requirements
|
||||
** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
|
||||
**
|
||||
** GNU General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU
|
||||
** General Public License version 2.0 or (at your option) the GNU General
|
||||
** Public license version 3 or any later version approved by the KDE Free
|
||||
** Qt Foundation. The licenses are as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
|
||||
** included in the packaging of this file. Please review the following
|
||||
** information to ensure the GNU General Public License requirements will
|
||||
** be met: https://www.gnu.org/licenses/gpl-2.0.html and
|
||||
** https://www.gnu.org/licenses/gpl-3.0.html.
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QWINDOWSMOBILESTYLE_P_P_H
|
||||
#define QWINDOWSMOBILESTYLE_P_P_H
|
||||
|
||||
//
|
||||
// W A R N I N G
|
||||
// -------------
|
||||
//
|
||||
// This file is not part of the Qt API. It exists for the convenience
|
||||
// of qapplication_*.cpp, qwidget*.cpp and qfiledialog.cpp. This header
|
||||
// file may change from version to version without notice, or even be removed.
|
||||
//
|
||||
// We mean it.
|
||||
//
|
||||
|
||||
#include "qwindowsmobilestyle_p.h"
|
||||
#include "qwindowsstyle_p_p.h"
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
#ifndef QT_NO_STYLE_WINDOWSMOBILE
|
||||
|
||||
class QStyleOptionTab;
|
||||
class QStyleOptionSlider;
|
||||
|
||||
class QWindowsMobileStylePrivate : public QWindowsStylePrivate
|
||||
{
|
||||
Q_DECLARE_PUBLIC(QWindowsMobileStyle)
|
||||
public:
|
||||
QWindowsMobileStylePrivate();
|
||||
bool doubleControls;
|
||||
bool smartphone;
|
||||
#ifdef Q_OS_WINCE_WM
|
||||
bool wm65;
|
||||
#endif
|
||||
|
||||
QImage imageRadioButton;
|
||||
QImage imageRadioButtonChecked;
|
||||
QImage imageRadioButtonHighlighted;
|
||||
QImage imageChecked;
|
||||
QImage imageCheckedBold;
|
||||
QImage imageArrowDown;
|
||||
QImage imageArrowUp;
|
||||
QImage imageArrowLeft;
|
||||
QImage imageArrowRight;
|
||||
QImage imageArrowDownBig;
|
||||
QImage imageArrowUpBig;
|
||||
QImage imageArrowLeftBig;
|
||||
QImage imageArrowRightBig;
|
||||
QImage imageClose;
|
||||
QImage imageMaximize;
|
||||
QImage imageNormalize;
|
||||
QImage imageMinimize;
|
||||
|
||||
void setupWindowsMobileStyle65();
|
||||
|
||||
#ifdef Q_OS_WINCE_WM
|
||||
//Windows Mobile 6.5 images
|
||||
QImage imageScrollbarHandleUp;
|
||||
QImage imageScrollbarHandleDown;
|
||||
QImage imageScrollbarHandleUpHigh;
|
||||
QImage imageScrollbarHandleDownHigh;
|
||||
QImage imageScrollbarGripUp;
|
||||
QImage imageScrollbarGripDown;
|
||||
QImage imageScrollbarGripMiddle;
|
||||
QImage imageListViewHighlightCornerLeft;
|
||||
QImage imageListViewHighlightCornerRight;
|
||||
QImage imageListViewHighlightMiddle;
|
||||
QImage imageTabEnd;
|
||||
QImage imageTabSelectedEnd;
|
||||
QImage imageTabSelectedBegin;
|
||||
QImage imageTabMiddle;
|
||||
|
||||
QColor currentTintHigh;
|
||||
QColor currentTintButton;
|
||||
|
||||
void tintImagesHigh(QColor color);
|
||||
void tintImagesButton(QColor color);
|
||||
void tintListViewHighlight(QColor color);
|
||||
|
||||
#endif //Q_OS_WINCE_WM
|
||||
|
||||
void drawScrollbarHandleUp(QPainter *p, QStyleOptionSlider *opt, bool completeFrame = false, bool secondScrollBar = false);
|
||||
void drawScrollbarHandleDown(QPainter *p, QStyleOptionSlider *opt, bool completeFrame = false, bool secondScrollBar = false);
|
||||
void drawScrollbarGroove(QPainter *p, const QStyleOptionSlider *opt);
|
||||
void drawScrollbarGrip(QPainter *p, QStyleOptionSlider *newScrollbar, const QStyleOptionComplex *option, bool drawCompleteFrame);
|
||||
void drawTabBarTab(QPainter *p, const QStyleOptionTab *tab);
|
||||
void drawPanelItemViewSelected(QPainter *painter, const QStyleOptionViewItem *option, QRect rect = QRect());
|
||||
|
||||
};
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // QT_NO_STYLE_WINDOWSMOBILE
|
||||
#endif //QWINDOWSMOBILESTYLE_P_P_H
|
@ -91,22 +91,6 @@ contains( styles, fusion ) {
|
||||
DEFINES += QT_NO_STYLE_FUSION
|
||||
}
|
||||
|
||||
contains( styles, windowsce ) {
|
||||
HEADERS += styles/qwindowscestyle_p.h
|
||||
HEADERS += styles/qwindowscestyle_p_p.h
|
||||
SOURCES += styles/qwindowscestyle.cpp
|
||||
} else {
|
||||
DEFINES += QT_NO_STYLE_WINDOWSCE
|
||||
}
|
||||
|
||||
contains( styles, windowsmobile ) {
|
||||
HEADERS += styles/qwindowsmobilestyle_p.h
|
||||
HEADERS += styles/qwindowsmobilestyle_p_p.h
|
||||
SOURCES += styles/qwindowsmobilestyle.cpp
|
||||
} else {
|
||||
DEFINES += QT_NO_STYLE_WINDOWSMOBILE
|
||||
}
|
||||
|
||||
contains( styles, android ) {
|
||||
HEADERS += styles/qandroidstyle_p.h
|
||||
SOURCES += styles/qandroidstyle.cpp
|
||||
|
@ -36,7 +36,7 @@
|
||||
#include <QDir>
|
||||
#include <QFile>
|
||||
|
||||
#if defined(Q_OS_WIN) && !defined(Q_OS_WINCE)
|
||||
#if defined(Q_OS_WIN)
|
||||
#include <windows.h>
|
||||
#include <winioctl.h>
|
||||
#ifndef IO_REPARSE_TAG_MOUNT_POINT
|
||||
|
Loading…
Reference in New Issue
Block a user