connect(swatch, SIGNAL(topLevelChanged(bool)), titlebar, SLOT(updateMask()));
connect(swatch, SIGNAL(featuresChanged(QDockWidget::DockWidgetFeatures)), titlebar, SLOT(updateMask()), Qt::QueuedConnection);
-#ifdef Q_WS_QWS
- QPalette pal = palette();
- pal.setBrush(backgroundRole(), QColor(0,0,0,0));
- swatch->setPalette(pal);
-#endif
}
QString name = QString::fromLatin1(sets[i].name);
void tst_QImage::create()
{
bool cr = true;
-#if !defined(Q_WS_QWS) && !defined(Q_OS_WINCE)
+#if !defined(Q_OS_WINCE)
QT_TRY {
#endif
//QImage image(7000000, 7000000, 8, 256, QImage::IgnoreEndian);
QImage image(7000000, 7000000, QImage::Format_Indexed8);
image.setColorCount(256);
cr = !image.isNull();
-#if !defined(Q_WS_QWS) && !defined(Q_OS_WINCE)
+#if !defined(Q_OS_WINCE)
} QT_CATCH (...) {
}
#endif
#include <windows.h>
#endif
-#ifdef Q_WS_QWS
-#include <qscreen_qws.h>
-#endif
Q_DECLARE_METATYPE(QImage::Format)
void tst_QPainter::linearGradientSymmetry()
{
-#ifdef Q_WS_QWS
- QSKIP("QWS has limited resolution in the gradient color table");
-#else
QFETCH(QGradientStops, stops);
QImage a(64, 8, QImage::Format_ARGB32_Premultiplied);
b = b.mirrored(true);
QCOMPARE(a, b);
-#endif
}
void tst_QPainter::gradientInterpolation()
QStringList serverArguments = QStringList() << SRCDIR "lackey/scripts/server.js" << QString::number(processes);
QProcess producer;
producer.setProcessChannelMode(QProcess::ForwardedChannels);
-#ifdef Q_WS_QWS
- serverArguments << "-qws";
-#endif
QList<QProcess*> consumers;
producer.start("lackey/lackey", serverArguments);
QVERIFY2(producer.waitForStarted(-1), qPrintable(producer.errorString()));
QTest::qWait(2000);
for (int i = 0; i < processes; ++i) {
QStringList arguments = QStringList() << SRCDIR "lackey/scripts/client.js";
-#ifdef Q_WS_QWS
- arguments << "-qws";
-#endif
QProcess *p = new QProcess;
p->setProcessChannelMode(QProcess::ForwardedChannels);
consumers.append(p);
// Use Qt::Tool as fully decorated windows have a minimum width of 160 on Windows.
view.setWindowFlags(view.windowFlags() | Qt::Tool);
view.setBackgroundBrush(Qt::white);
-#ifdef Q_WS_QWS
- view.setWindowFlags(Qt::FramelessWindowHint);
-#endif
view.resize(2*size, 2*size);
QGLWidget *viewport = new QGLWidget;
void tst_QGL::glWidgetRendering()
{
GLWidget w;
-#ifdef Q_WS_QWS
- w.setWindowFlags(Qt::FramelessWindowHint);
-#endif
w.resize(256, 128);
w.show();
QSKIP("QGLFramebufferObject not supported on this platform");
FBOUseInGLWidget w;
-#ifdef Q_WS_QWS
- w.setWindowFlags(Qt::FramelessWindowHint);
-#endif
w.resize(100, 100);
w.show();
void tst_QGL::replaceClipping()
{
ReplaceClippingGLWidget glw;
-#ifdef Q_WS_QWS
- glw.setWindowFlags(Qt::FramelessWindowHint);
-#endif
glw.resize(300, 300);
glw.show();
void tst_QGL::clipTest()
{
ClipTestGLWidget glw;
-#ifdef Q_WS_QWS
- glw.setWindowFlags(Qt::FramelessWindowHint);
-#endif
glw.resize(220, 220);
glw.show();
QVERIFY(QTest::qWaitForWindowExposed(&view));
QApplication::processEvents();
-#ifdef Q_WS_QWS
- QApplication::sendPostedEvents(); //glib workaround
-#endif
QTRY_VERIFY(!_paintedItems.isEmpty());
QVERIFY((_paintedItems.size() % 4) == 0);
void tst_QGraphicsWidget::respectHFW()
{
-#if defined(Q_OS_WINCE) || defined(Q_OS_MAC) || defined(Q_WS_QWS)
- qDebug("This test is platform dependent, it fails on wince, mac and qws. Please fix.");
+#if defined(Q_OS_WINCE) || defined(Q_OS_MAC)
+ QSKIP("This test is platform dependent, it fails on wince and mac. Please fix.");
#else
QGraphicsScene scene;
HFWWidget *window = new HFWWidget;
{
// From Task 137729
-#ifdef Q_WS_QWS
- QSKIP("Embedded drag-and-drop not good enough yet...");
-#endif
const int attempts = 10;
int successes = 0;
void tst_QAbstractItemView::dragAndDropOnChild()
{
-#ifdef Q_WS_QWS
- QSKIP("Embedded drag-and-drop not good enough yet...");
-#endif
const int attempts = 10;
int successes = 0;
table.setItem(0, 0, item);
QApplication::processEvents();
-#ifdef Q_WS_QWS
- QApplication::sendPostedEvents(); //glib workaround
-#endif
QTRY_COMPARE(delegate->displayText, item->text());
if (properties.contains("italic")) {
int screen;
screen = desktopWidget->screenNumber(allScreens.topLeft() - QPoint(1, 1));
-#ifdef Q_WS_QWS
- QEXPECT_FAIL("", "Task 151710", Abort);
-#endif
QVERIFY(screen >= 0 && screen < desktopWidget->numScreens());
screen = desktopWidget->screenNumber(allScreens.topRight() + QPoint(1, 1));
QVERIFY(screen >= 0 && screen < desktopWidget->numScreens());
widgets << combobox;
widgets << new QLabel("TESTING TESTING");
-#ifdef Q_WS_QWS
- // QWS has its own special focus logic which is slightly different
- // and I don't dare change it at this point, because someone will
- // be relying on it. It means that setFocus() on a NoFocus widget (i.e.
- // a QLabel) will not work before the window is activated.
- widgets[2]->setFocusPolicy(Qt::StrongFocus);
-#endif
foreach (QWidget *widget, widgets) {
QDialog frame;
frame.setLayout(layout);
frame.show();
-#ifdef Q_WS_QWS
-//QWS does not implement enter/leave when windows are shown underneath the cursor
- QCursor::setPos(QPoint(0,0));
-#endif
QApplication::setActiveWindow(&frame);
QVERIFY(QTest::qWaitForWindowActive(&frame));
QEXPECT_FAIL("", "showMinimized doesn't really minimize if you don't have access to the server", Abort);
#endif
QVERIFY(QTest::qWaitForWindowExposed(&mdiArea));
-#if defined(Q_WS_QWS)
- QEXPECT_FAIL("", "task 168682", Abort);
-#endif
#ifdef Q_OS_WINCE
QSKIP("Not fixed yet. See Task 197453");
#endif
tb.setMenu(menu);
tb.setDefaultAction(def);
-#ifdef Q_WS_QWS
- QApplication::processEvents(); //wait for the window system to show the tool button
-#endif
def->trigger();
QCOMPARE(spy.count(),1);