Cleanup leftover QWS

QWS is replaced with QPA in Qt5

Change-Id: Iccec38e55ae23a27ebecd8010e1df7bba8aa5a33
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
This commit is contained in:
Tasuku Suzuki 2021-04-13 11:30:28 +09:00
parent 94e03e506a
commit 2df3d8ed41
9 changed files with 3 additions and 29 deletions

View File

@ -99,6 +99,4 @@ inline int getpagesize()
#include <stdlib.h>
#define QT_QWS_TEMP_DIR QString::fromLatin1(qgetenv("TMP"))
#endif // Q_QNX_PLATFORMDEFS_H

View File

@ -96,6 +96,4 @@ inline float strtof(const char *b, char **e)
return float(strtod(b, e));
}
#define QT_QWS_TEMP_DIR QString::fromLatin1(qgetenv("TMP"))
#endif // QPLATFORMDEFS_H

View File

@ -56,7 +56,7 @@
#include <stdlib.h>
#include <limits.h>
#include <errno.h>
#if !defined(QWS) && defined(Q_OS_MAC)
#if defined(Q_OS_MACOS)
# include <private/qcore_mac_p.h>
#endif

View File

@ -40,7 +40,7 @@
#include "qglobal.h"
#if !defined(QWS) && defined(Q_OS_MAC)
#if defined(Q_OS_MACOS)
# include "private/qcore_mac_p.h"
# include <CoreFoundation/CoreFoundation.h>
#endif

View File

@ -320,7 +320,6 @@ protected:
QImage smoothScaled(int w, int h) const;
private:
friend class QWSOnScreenSurface;
QImageData *d;
friend class QRasterPlatformPixmap;

View File

@ -2266,12 +2266,6 @@ bool qt_try_modal(QWidget *widget, QEvent::Type type)
bool block_event = false;
switch (type) {
#if 0
case QEvent::Focus:
if (!static_cast<QWSFocusEvent*>(event)->simpleData.get_focus)
break;
// drop through
#endif
case QEvent::MouseButtonPress: // disallow mouse/key events
case QEvent::MouseButtonRelease:
case QEvent::MouseMove:

View File

@ -65,7 +65,6 @@ QT_BEGIN_NAMESPACE
class QLayout;
class QWSRegionManager;
class QStyle;
class QAction;
class QVariant;

View File

@ -2320,12 +2320,11 @@ QSize QWindowsStyle::sizeFromContents(ContentsType ct, const QStyleOption *opt,
int minwidth = int(QStyleHelper::dpiScaled(75, dpi));
int minheight = int(QStyleHelper::dpiScaled(23, dpi));
#ifndef QT_QWS_SMALL_PUSHBUTTON
if (w < minwidth + defwidth && !btn->text.isEmpty())
w = minwidth + defwidth;
if (h < minheight + defwidth)
h = minheight + defwidth;
#endif
sz = QSize(w, h);
}
break;

View File

@ -175,12 +175,6 @@ uint QColormap::pixel(const QColor &color) const
const int green_mask = 0x00ff00;
const int blue_mask = 0x0000ff;
const int tg = g << green_shift;
#ifdef QT_QWS_DEPTH_32_BGR
if (qt_screen->pixelType() == QScreen::BGRPixel) {
const int tb = b << red_shift;
return 0xff000000 | (r & blue_mask) | (tg & green_mask) | (tb & red_mask);
}
#endif
const int tr = r << red_shift;
return 0xff000000 | (b & blue_mask) | (tg & green_mask) | (tr & red_mask);
}
@ -202,13 +196,6 @@ const QColor QColormap::colorAt(uint pixel) const
const int red_mask = 0xff0000;
const int green_mask = 0x00ff00;
const int blue_mask = 0x0000ff;
#ifdef QT_QWS_DEPTH_32_BGR
if (qt_screen->pixelType() == QScreen::BGRPixel) {
return QColor((pixel & blue_mask),
(pixel & green_mask) >> green_shift,
(pixel & red_mask) >> red_shift);
}
#endif
return QColor((pixel & red_mask) >> red_shift,
(pixel & green_mask) >> green_shift,
(pixel & blue_mask));