summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/embedded/fluidlauncher/pictureflow.cpp9
-rw-r--r--src/svg/qsvghandler.cpp11
2 files changed, 2 insertions, 18 deletions
diff --git a/examples/embedded/fluidlauncher/pictureflow.cpp b/examples/embedded/fluidlauncher/pictureflow.cpp
index e3df9b6..1e229b7 100644
--- a/examples/embedded/fluidlauncher/pictureflow.cpp
+++ b/examples/embedded/fluidlauncher/pictureflow.cpp
@@ -77,10 +77,6 @@
#include <QWidget>
#include <QTime>
-#ifdef Q_WS_QWS
-#include <QScreen>
-#endif
-
#include <QDebug>
static const int captionFontSize =
@@ -1122,11 +1118,6 @@ PictureFlow::PictureFlow(QWidget* parent): QWidget(parent)
setAttribute(Qt::WA_StaticContents, true);
setAttribute(Qt::WA_OpaquePaintEvent, true);
setAttribute(Qt::WA_NoSystemBackground, true);
-
-#ifdef Q_WS_QWS
- if (QScreen::instance()->pixelFormat() != QImage::Format_Invalid)
- setAttribute(Qt::WA_PaintOnScreen, true);
-#endif
}
PictureFlow::~PictureFlow()
diff --git a/src/svg/qsvghandler.cpp b/src/svg/qsvghandler.cpp
index 87b04be..55bab45 100644
--- a/src/svg/qsvghandler.cpp
+++ b/src/svg/qsvghandler.cpp
@@ -636,15 +636,8 @@ static qreal toDouble(const QChar *&str)
if (neg)
val = -val;
} else {
-#if defined(Q_WS_QWS) && !defined(Q_OS_VXWORKS)
- if(sizeof(qreal) == sizeof(float))
- val = strtof(temp, 0);
- else
-#endif
- {
- bool ok = false;
- val = qstrtod(temp, 0, &ok);
- }
+ bool ok = false;
+ val = qstrtod(temp, 0, &ok);
}
return val;