Merge remote-tracking branch 'origin/5.15' into dev
Change-Id: I5b671c89ceb8998b37f99d58df0e0a9e5785e3ad
This commit is contained in:
commit
ab5153aa0b
@ -53,6 +53,7 @@
|
|||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
#include <QtMath>
|
#include <QtMath>
|
||||||
|
#include <cstdlib>
|
||||||
|
|
||||||
//! [0]
|
//! [0]
|
||||||
TabletCanvas::TabletCanvas()
|
TabletCanvas::TabletCanvas()
|
||||||
|
@ -142,8 +142,6 @@ QT_USE_NAMESPACE
|
|||||||
|
|
||||||
- (BOOL)canQuit
|
- (BOOL)canQuit
|
||||||
{
|
{
|
||||||
[[NSApp mainMenu] cancelTracking];
|
|
||||||
|
|
||||||
bool handle_quit = true;
|
bool handle_quit = true;
|
||||||
NSMenuItem *quitMenuItem = [[QCocoaMenuLoader sharedMenuLoader] quitMenuItem];
|
NSMenuItem *quitMenuItem = [[QCocoaMenuLoader sharedMenuLoader] quitMenuItem];
|
||||||
if (!QGuiApplicationPrivate::instance()->modalWindowList.isEmpty()
|
if (!QGuiApplicationPrivate::instance()->modalWindowList.isEmpty()
|
||||||
|
@ -2226,6 +2226,7 @@ QMenu *QLineEdit::createStandardContextMenu()
|
|||||||
|
|
||||||
action = popup->addAction(QLineEdit::tr("Select All") + ACCEL_KEY(QKeySequence::SelectAll));
|
action = popup->addAction(QLineEdit::tr("Select All") + ACCEL_KEY(QKeySequence::SelectAll));
|
||||||
action->setEnabled(!d->control->text().isEmpty() && !d->control->allSelected());
|
action->setEnabled(!d->control->text().isEmpty() && !d->control->allSelected());
|
||||||
|
setActionIcon(action, QStringLiteral("edit-select-all"));
|
||||||
d->selectAllAction = action;
|
d->selectAllAction = action;
|
||||||
connect(action, SIGNAL(triggered()), SLOT(selectAll()));
|
connect(action, SIGNAL(triggered()), SLOT(selectAll()));
|
||||||
|
|
||||||
|
@ -2362,6 +2362,7 @@ QMenu *QWidgetTextControl::createStandardContextMenu(const QPointF &pos, QWidget
|
|||||||
a = menu->addAction(tr("Select All") + ACCEL_KEY(QKeySequence::SelectAll), this, SLOT(selectAll()));
|
a = menu->addAction(tr("Select All") + ACCEL_KEY(QKeySequence::SelectAll), this, SLOT(selectAll()));
|
||||||
a->setEnabled(!d->doc->isEmpty());
|
a->setEnabled(!d->doc->isEmpty());
|
||||||
a->setObjectName(QStringLiteral("select-all"));
|
a->setObjectName(QStringLiteral("select-all"));
|
||||||
|
setActionIcon(a, QStringLiteral("edit-select-all"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((d->interactionFlags & Qt::TextEditable) && QGuiApplication::styleHints()->useRtlExtensions()) {
|
if ((d->interactionFlags & Qt::TextEditable) && QGuiApplication::styleHints()->useRtlExtensions()) {
|
||||||
|
@ -365,6 +365,7 @@ void PaintCommands::staticInit()
|
|||||||
"^gradient_setCoordinateMode\\s+(\\w*)$",
|
"^gradient_setCoordinateMode\\s+(\\w*)$",
|
||||||
"gradient_setCoordinateMode <coordinate method enum>",
|
"gradient_setCoordinateMode <coordinate method enum>",
|
||||||
"gradient_setCoordinateMode ObjectBoundingMode");
|
"gradient_setCoordinateMode ObjectBoundingMode");
|
||||||
|
|
||||||
DECL_PAINTCOMMANDSECTION("drawing ops");
|
DECL_PAINTCOMMANDSECTION("drawing ops");
|
||||||
DECL_PAINTCOMMAND("drawPoint", command_drawPoint,
|
DECL_PAINTCOMMAND("drawPoint", command_drawPoint,
|
||||||
"^drawPoint\\s+(-?[\\w.]*)\\s+(-?[\\w.]*)$",
|
"^drawPoint\\s+(-?[\\w.]*)\\s+(-?[\\w.]*)$",
|
||||||
@ -454,6 +455,14 @@ void PaintCommands::staticInit()
|
|||||||
"\n - where t means tile"
|
"\n - where t means tile"
|
||||||
"\n - and s is an offset in the tile",
|
"\n - and s is an offset in the tile",
|
||||||
"drawTiledPixmap :/images/alpha.png ");
|
"drawTiledPixmap :/images/alpha.png ");
|
||||||
|
DECL_PAINTCOMMAND("fillRect", command_fillRect,
|
||||||
|
"^fillRect\\s+(-?\\w*)\\s+(-?\\w*)\\s+(-?\\w*)\\s+(-?\\w*)\\s*(\\w*)?$",
|
||||||
|
"fillRect <x> <y> <w> <h> [color]\n - Uses current brush if no color given",
|
||||||
|
"fillRect 10 10 20 20 blue");
|
||||||
|
DECL_PAINTCOMMAND("fillRectF", command_fillRectF,
|
||||||
|
"^fillRectF\\s+(-?[.\\w]*)\\s+(-?[.\\w]*)\\s+(-?[.\\w]*)\\s+(-?[.\\w]*)\\s*(\\w*)?$",
|
||||||
|
"fillRectF <x> <y> <w> <h> [color]\n - Uses current brush if no color given",
|
||||||
|
"fillRectF 10.5 10.5 20.2 20.2 blue");
|
||||||
|
|
||||||
DECL_PAINTCOMMANDSECTION("painterPaths");
|
DECL_PAINTCOMMANDSECTION("painterPaths");
|
||||||
DECL_PAINTCOMMAND("path_moveTo", command_path_moveTo,
|
DECL_PAINTCOMMAND("path_moveTo", command_path_moveTo,
|
||||||
@ -1331,6 +1340,46 @@ void PaintCommands::command_drawTextDocument(QRegularExpressionMatch re)
|
|||||||
m_painter->restore();
|
m_painter->restore();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/***************************************************************************************************/
|
||||||
|
void PaintCommands::command_fillRect(QRegularExpressionMatch re)
|
||||||
|
{
|
||||||
|
QStringList caps = re.capturedTexts();
|
||||||
|
int x = convertToInt(caps.at(1));
|
||||||
|
int y = convertToInt(caps.at(2));
|
||||||
|
int w = convertToInt(caps.at(3));
|
||||||
|
int h = convertToInt(caps.at(4));
|
||||||
|
|
||||||
|
if (!caps.at(5).isEmpty()) {
|
||||||
|
QColor color = convertToColor(caps.at(5));
|
||||||
|
if (m_verboseMode)
|
||||||
|
printf(" -(lance) fillRect(%d, %d, %d, %d, %s)\n", x, y, w, h, qPrintable(color.name()));
|
||||||
|
m_painter->fillRect(x, y, w, h, color);
|
||||||
|
} else {
|
||||||
|
if (m_verboseMode)
|
||||||
|
printf(" -(lance) fillRect(%d, %d, %d, %d)\n", x, y, w, h);
|
||||||
|
m_painter->fillRect(x, y, w, h, m_painter->brush());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void PaintCommands::command_fillRectF(QRegularExpressionMatch re)
|
||||||
|
{
|
||||||
|
QStringList caps = re.capturedTexts();
|
||||||
|
double x = convertToDouble(caps.at(1));
|
||||||
|
double y = convertToDouble(caps.at(2));
|
||||||
|
double w = convertToDouble(caps.at(3));
|
||||||
|
double h = convertToDouble(caps.at(4));
|
||||||
|
|
||||||
|
if (!caps.at(5).isEmpty()) {
|
||||||
|
QColor color = convertToColor(caps.at(5));
|
||||||
|
if (m_verboseMode)
|
||||||
|
printf(" -(lance) fillRectF(%.2f, %.2f, %.2f, %.2f, %s)\n", x, y, w, h, qPrintable(color.name()));
|
||||||
|
m_painter->fillRect(QRectF(x, y, w, h), color);
|
||||||
|
} else {
|
||||||
|
if (m_verboseMode)
|
||||||
|
printf(" -(lance) fillRectF(%.2f, %.2f, %.2f, %.2f)\n", x, y, w, h);
|
||||||
|
m_painter->fillRect(QRectF(x, y, w, h), m_painter->brush());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/***************************************************************************************************/
|
/***************************************************************************************************/
|
||||||
void PaintCommands::command_noop(QRegularExpressionMatch)
|
void PaintCommands::command_noop(QRegularExpressionMatch)
|
||||||
|
@ -200,6 +200,10 @@ private:
|
|||||||
void command_drawStaticText(QRegularExpressionMatch re);
|
void command_drawStaticText(QRegularExpressionMatch re);
|
||||||
void command_drawTextDocument(QRegularExpressionMatch re);
|
void command_drawTextDocument(QRegularExpressionMatch re);
|
||||||
void command_drawTiledPixmap(QRegularExpressionMatch re);
|
void command_drawTiledPixmap(QRegularExpressionMatch re);
|
||||||
|
void command_fillRect(QRegularExpressionMatch re);
|
||||||
|
void command_fillRectF(QRegularExpressionMatch re);
|
||||||
|
|
||||||
|
// paths
|
||||||
void command_path_addEllipse(QRegularExpressionMatch re);
|
void command_path_addEllipse(QRegularExpressionMatch re);
|
||||||
void command_path_addPolygon(QRegularExpressionMatch re);
|
void command_path_addPolygon(QRegularExpressionMatch re);
|
||||||
void command_path_addRect(QRegularExpressionMatch re);
|
void command_path_addRect(QRegularExpressionMatch re);
|
||||||
|
121
tests/auto/other/lancelot/scripts/fillrect.qps
Normal file
121
tests/auto/other/lancelot/scripts/fillrect.qps
Normal file
@ -0,0 +1,121 @@
|
|||||||
|
setRenderHint Antialiasing false
|
||||||
|
|
||||||
|
# offscreen
|
||||||
|
translate 0 -200
|
||||||
|
|
||||||
|
begin_block rects
|
||||||
|
# int API
|
||||||
|
fillRect 10 10 20 20 green
|
||||||
|
fillRect 40 10 20 20
|
||||||
|
drawRect 70 10 20 20
|
||||||
|
|
||||||
|
# float API, int values
|
||||||
|
fillRectF 10.0 40.0 20.0 20.0 green
|
||||||
|
fillRectF 40.0 40.0 20.0 20.0
|
||||||
|
drawRect 70.0 40.0 20.0 20.0
|
||||||
|
|
||||||
|
# float API, float values
|
||||||
|
fillRectF 10.0 70.0 20.5 20.5 green
|
||||||
|
fillRectF 40.0 70.0 20.5 20.5
|
||||||
|
drawRect 70.0 70.0 20.5 20.5
|
||||||
|
|
||||||
|
# alignment, int api, color
|
||||||
|
fillRect 10 100 10 10 green
|
||||||
|
fillRect 20 100 10 10 green
|
||||||
|
fillRect 10 110 10 10 green
|
||||||
|
fillRect 20 110 10 10 green
|
||||||
|
|
||||||
|
# alignment, int api, brush
|
||||||
|
fillRect 40 100 10 10
|
||||||
|
fillRect 50 100 10 10
|
||||||
|
fillRect 40 110 10 10
|
||||||
|
fillRect 50 110 10 10
|
||||||
|
|
||||||
|
# alignment comparison
|
||||||
|
drawRect 70 100 10 10
|
||||||
|
drawRect 80 100 10 10
|
||||||
|
drawRect 70 110 10 10
|
||||||
|
drawRect 80 110 10 10
|
||||||
|
|
||||||
|
# alignment, float api, color
|
||||||
|
fillRectF 10.0 130.0 10.0 10.0 green
|
||||||
|
fillRectF 20.0 130.0 10.0 10.0 green
|
||||||
|
fillRectF 10.0 140.0 10.0 10.0 green
|
||||||
|
fillRectF 20.0 140.0 10.0 10.0 green
|
||||||
|
|
||||||
|
# alignment, float api, brush
|
||||||
|
fillRectF 40.0 130.0 10.0 10.0
|
||||||
|
fillRectF 50.0 130.0 10.0 10.0
|
||||||
|
fillRectF 40.0 140.0 10.0 10.0
|
||||||
|
fillRectF 50.0 140.0 10.0 10.0
|
||||||
|
|
||||||
|
# alignment comparison
|
||||||
|
drawRect 70.0 130.0 10.0 10.0
|
||||||
|
drawRect 80.0 130.0 10.0 10.0
|
||||||
|
drawRect 70.0 140.0 10.0 10.0
|
||||||
|
drawRect 80.0 140.0 10.0 10.0
|
||||||
|
|
||||||
|
end_block
|
||||||
|
|
||||||
|
begin_block row
|
||||||
|
|
||||||
|
repeat_block rects
|
||||||
|
|
||||||
|
save
|
||||||
|
translate 100.2 0.2
|
||||||
|
repeat_block rects
|
||||||
|
restore
|
||||||
|
|
||||||
|
save
|
||||||
|
translate 200.5 0.5
|
||||||
|
repeat_block rects
|
||||||
|
restore
|
||||||
|
|
||||||
|
save
|
||||||
|
translate 300.7 0.7
|
||||||
|
repeat_block rects
|
||||||
|
restore
|
||||||
|
|
||||||
|
end_block
|
||||||
|
|
||||||
|
# end of block defs
|
||||||
|
|
||||||
|
resetMatrix
|
||||||
|
|
||||||
|
setPen NoPen
|
||||||
|
setBrush green
|
||||||
|
repeat_block row
|
||||||
|
|
||||||
|
save
|
||||||
|
translate 500 50
|
||||||
|
scale 0.42 0.42
|
||||||
|
repeat_block row
|
||||||
|
restore
|
||||||
|
|
||||||
|
save
|
||||||
|
translate 0 160
|
||||||
|
scale 1.8 0.8
|
||||||
|
repeat_block row
|
||||||
|
restore
|
||||||
|
|
||||||
|
save
|
||||||
|
translate 650 320
|
||||||
|
rotate 80
|
||||||
|
repeat_block row
|
||||||
|
restore
|
||||||
|
|
||||||
|
save
|
||||||
|
setBrush green Dense2Pattern
|
||||||
|
translate 0 400
|
||||||
|
repeat_block row
|
||||||
|
restore
|
||||||
|
|
||||||
|
save
|
||||||
|
gradient_clearStops
|
||||||
|
gradient_appendStop 0 green
|
||||||
|
gradient_appendStop 1 blue
|
||||||
|
gradient_setCoordinateMode ObjectBoundingMode
|
||||||
|
gradient_setLinear 0.0 0.0 1.0 1.0
|
||||||
|
translate 0 600
|
||||||
|
repeat_block row
|
||||||
|
restore
|
121
tests/auto/other/lancelot/scripts/fillrect_aa.qps
Normal file
121
tests/auto/other/lancelot/scripts/fillrect_aa.qps
Normal file
@ -0,0 +1,121 @@
|
|||||||
|
setRenderHint Antialiasing true
|
||||||
|
|
||||||
|
# offscreen
|
||||||
|
translate 0 -200
|
||||||
|
|
||||||
|
begin_block rects
|
||||||
|
# int API
|
||||||
|
fillRect 10 10 20 20 green
|
||||||
|
fillRect 40 10 20 20
|
||||||
|
drawRect 70 10 20 20
|
||||||
|
|
||||||
|
# float API, int values
|
||||||
|
fillRectF 10.0 40.0 20.0 20.0 green
|
||||||
|
fillRectF 40.0 40.0 20.0 20.0
|
||||||
|
drawRect 70.0 40.0 20.0 20.0
|
||||||
|
|
||||||
|
# float API, float values
|
||||||
|
fillRectF 10.0 70.0 20.5 20.5 green
|
||||||
|
fillRectF 40.0 70.0 20.5 20.5
|
||||||
|
drawRect 70.0 70.0 20.5 20.5
|
||||||
|
|
||||||
|
# alignment, int api, color
|
||||||
|
fillRect 10 100 10 10 green
|
||||||
|
fillRect 20 100 10 10 green
|
||||||
|
fillRect 10 110 10 10 green
|
||||||
|
fillRect 20 110 10 10 green
|
||||||
|
|
||||||
|
# alignment, int api, brush
|
||||||
|
fillRect 40 100 10 10
|
||||||
|
fillRect 50 100 10 10
|
||||||
|
fillRect 40 110 10 10
|
||||||
|
fillRect 50 110 10 10
|
||||||
|
|
||||||
|
# alignment comparison
|
||||||
|
drawRect 70 100 10 10
|
||||||
|
drawRect 80 100 10 10
|
||||||
|
drawRect 70 110 10 10
|
||||||
|
drawRect 80 110 10 10
|
||||||
|
|
||||||
|
# alignment, float api, color
|
||||||
|
fillRectF 10.0 130.0 10.0 10.0 green
|
||||||
|
fillRectF 20.0 130.0 10.0 10.0 green
|
||||||
|
fillRectF 10.0 140.0 10.0 10.0 green
|
||||||
|
fillRectF 20.0 140.0 10.0 10.0 green
|
||||||
|
|
||||||
|
# alignment, float api, brush
|
||||||
|
fillRectF 40.0 130.0 10.0 10.0
|
||||||
|
fillRectF 50.0 130.0 10.0 10.0
|
||||||
|
fillRectF 40.0 140.0 10.0 10.0
|
||||||
|
fillRectF 50.0 140.0 10.0 10.0
|
||||||
|
|
||||||
|
# alignment comparison
|
||||||
|
drawRect 70.0 130.0 10.0 10.0
|
||||||
|
drawRect 80.0 130.0 10.0 10.0
|
||||||
|
drawRect 70.0 140.0 10.0 10.0
|
||||||
|
drawRect 80.0 140.0 10.0 10.0
|
||||||
|
|
||||||
|
end_block
|
||||||
|
|
||||||
|
begin_block row
|
||||||
|
|
||||||
|
repeat_block rects
|
||||||
|
|
||||||
|
save
|
||||||
|
translate 100.2 0.2
|
||||||
|
repeat_block rects
|
||||||
|
restore
|
||||||
|
|
||||||
|
save
|
||||||
|
translate 200.5 0.5
|
||||||
|
repeat_block rects
|
||||||
|
restore
|
||||||
|
|
||||||
|
save
|
||||||
|
translate 300.7 0.7
|
||||||
|
repeat_block rects
|
||||||
|
restore
|
||||||
|
|
||||||
|
end_block
|
||||||
|
|
||||||
|
# end of block defs
|
||||||
|
|
||||||
|
resetMatrix
|
||||||
|
|
||||||
|
setPen NoPen
|
||||||
|
setBrush green
|
||||||
|
repeat_block row
|
||||||
|
|
||||||
|
save
|
||||||
|
translate 500 50
|
||||||
|
scale 0.42 0.42
|
||||||
|
repeat_block row
|
||||||
|
restore
|
||||||
|
|
||||||
|
save
|
||||||
|
translate 0 160
|
||||||
|
scale 1.8 0.8
|
||||||
|
repeat_block row
|
||||||
|
restore
|
||||||
|
|
||||||
|
save
|
||||||
|
translate 650 320
|
||||||
|
rotate 80
|
||||||
|
repeat_block row
|
||||||
|
restore
|
||||||
|
|
||||||
|
save
|
||||||
|
setBrush green Dense2Pattern
|
||||||
|
translate 0 400
|
||||||
|
repeat_block row
|
||||||
|
restore
|
||||||
|
|
||||||
|
save
|
||||||
|
gradient_clearStops
|
||||||
|
gradient_appendStop 0 green
|
||||||
|
gradient_appendStop 1 blue
|
||||||
|
gradient_setCoordinateMode ObjectBoundingMode
|
||||||
|
gradient_setLinear 0.0 0.0 1.0 1.0
|
||||||
|
translate 0 600
|
||||||
|
repeat_block row
|
||||||
|
restore
|
@ -185,12 +185,6 @@ private slots:
|
|||||||
void mysql_timeType_data() { generic_data("QMYSQL"); }
|
void mysql_timeType_data() { generic_data("QMYSQL"); }
|
||||||
void mysql_timeType();
|
void mysql_timeType();
|
||||||
|
|
||||||
#ifdef NOT_READY_YET
|
|
||||||
void task_229811();
|
|
||||||
void task_229811_data() { generic_data(); }
|
|
||||||
void task_234422_data() { generic_data(); }
|
|
||||||
void task_234422();
|
|
||||||
#endif
|
|
||||||
void task_217003_data() { generic_data(); }
|
void task_217003_data() { generic_data(); }
|
||||||
void task_217003();
|
void task_217003();
|
||||||
|
|
||||||
@ -3448,90 +3442,6 @@ void tst_QSqlQuery::task_205701()
|
|||||||
QSqlDatabase::removeDatabase("atest");
|
QSqlDatabase::removeDatabase("atest");
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef NOT_READY_YET
|
|
||||||
// For task: 229811
|
|
||||||
void tst_QSqlQuery::task_229811()
|
|
||||||
{
|
|
||||||
QFETCH( QString, dbName );
|
|
||||||
QSqlDatabase db = QSqlDatabase::database( dbName );
|
|
||||||
CHECK_DATABASE( db );
|
|
||||||
|
|
||||||
if (!db.driverName().startsWith( "QODBC" )) return;
|
|
||||||
|
|
||||||
QSqlQuery q( db );
|
|
||||||
|
|
||||||
const QString tableName(qTableName("task_229811", __FILE__, db));
|
|
||||||
|
|
||||||
if ( !q.exec( "CREATE TABLE " + tableName + " (Word varchar(20))" ) ) {
|
|
||||||
qDebug() << "Warning" << q.lastError();
|
|
||||||
}
|
|
||||||
|
|
||||||
QVERIFY_SQL( q, exec( "INSERT INTO " + tableName + " values ('Albert')" ) );
|
|
||||||
QVERIFY_SQL( q, exec( "INSERT INTO " + tableName + " values ('Beehive')" ) );
|
|
||||||
QVERIFY_SQL( q, exec( "INSERT INTO " + tableName + " values ('Alimony')" ) );
|
|
||||||
QVERIFY_SQL( q, exec( "INSERT INTO " + tableName + " values ('Bohemian')" ) );
|
|
||||||
QVERIFY_SQL( q, exec( "INSERT INTO " + tableName + " values ('AllStars')" ) );
|
|
||||||
|
|
||||||
|
|
||||||
QString stmt = "SELECT * FROM " + tableName + " WHERE Word LIKE :name";
|
|
||||||
QVERIFY_SQL(q,prepare(stmt));
|
|
||||||
q.bindValue(":name", "A%");
|
|
||||||
QVERIFY_SQL(q,exec());
|
|
||||||
|
|
||||||
QVERIFY(q.isActive());
|
|
||||||
QVERIFY(q.isSelect());
|
|
||||||
QVERIFY(q.first());
|
|
||||||
|
|
||||||
QSqlRecord rec = q.record();
|
|
||||||
QCOMPARE(rec.field(0).value().toString(), QString("Albert"));
|
|
||||||
QVERIFY(q.next());
|
|
||||||
rec = q.record();
|
|
||||||
QCOMPARE(rec.field(0).value().toString(), QString("Alimony"));
|
|
||||||
QVERIFY(q.next());
|
|
||||||
rec = q.record();
|
|
||||||
QCOMPARE(rec.field(0).value().toString(),QString("AllStars"));
|
|
||||||
|
|
||||||
q.exec("DROP TABLE " + tableName );
|
|
||||||
}
|
|
||||||
|
|
||||||
void tst_QSqlQuery::task_234422()
|
|
||||||
{
|
|
||||||
QFETCH( QString, dbName );
|
|
||||||
QSqlDatabase db = QSqlDatabase::database( dbName );
|
|
||||||
CHECK_DATABASE( db );
|
|
||||||
|
|
||||||
QSqlQuery query(db);
|
|
||||||
QStringList m_airlines;
|
|
||||||
QStringList m_countries;
|
|
||||||
|
|
||||||
m_airlines << "Lufthansa" << "SAS" << "United" << "KLM" << "Aeroflot";
|
|
||||||
m_countries << "DE" << "SE" << "US" << "NL" << "RU";
|
|
||||||
|
|
||||||
const QString tableName(qTableName("task_234422", __FILE__, db));
|
|
||||||
|
|
||||||
QVERIFY_SQL(query,exec("CREATE TABLE " + tableName + " (id int primary key, "
|
|
||||||
"name varchar(20), homecountry varchar(2))"));
|
|
||||||
for (int i = 0; i < m_airlines.count(); ++i) {
|
|
||||||
QVERIFY(query.exec(QString("INSERT INTO " + tableName + " values(%1, '%2', '%3')")
|
|
||||||
.arg(i).arg(m_airlines[i], m_countries[i])));
|
|
||||||
}
|
|
||||||
|
|
||||||
QVERIFY_SQL(query, exec("SELECT name FROM " + tableName));
|
|
||||||
QVERIFY(query.isSelect());
|
|
||||||
QVERIFY(query.first());
|
|
||||||
QVERIFY(query.next());
|
|
||||||
QCOMPARE(query.at(), 1);
|
|
||||||
|
|
||||||
QSqlQuery query2(query);
|
|
||||||
|
|
||||||
QVERIFY_SQL(query2,exec());
|
|
||||||
QVERIFY(query2.first());
|
|
||||||
QCOMPARE(query2.at(), 0);
|
|
||||||
QCOMPARE(query.at(), 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
void tst_QSqlQuery::task_233829()
|
void tst_QSqlQuery::task_233829()
|
||||||
{
|
{
|
||||||
QFETCH( QString, dbName );
|
QFETCH( QString, dbName );
|
||||||
|
@ -57,6 +57,7 @@
|
|||||||
#endif
|
#endif
|
||||||
#include <private/qguiapplication_p.h>
|
#include <private/qguiapplication_p.h>
|
||||||
#include <qpa/qplatformtheme.h>
|
#include <qpa/qplatformtheme.h>
|
||||||
|
#include <qpa/qplatformintegration.h>
|
||||||
#include <QFileDialog>
|
#include <QFileDialog>
|
||||||
#include <QFileSystemModel>
|
#include <QFileSystemModel>
|
||||||
|
|
||||||
@ -1129,6 +1130,8 @@ void tst_QFiledialog::setNameFilter()
|
|||||||
|
|
||||||
void tst_QFiledialog::focus()
|
void tst_QFiledialog::focus()
|
||||||
{
|
{
|
||||||
|
if (!QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::WindowActivation))
|
||||||
|
QSKIP("Window activation is not supported");
|
||||||
QFileDialog fd;
|
QFileDialog fd;
|
||||||
fd.setDirectory(QDir::currentPath());
|
fd.setDirectory(QDir::currentPath());
|
||||||
fd.show();
|
fd.show();
|
||||||
@ -1550,6 +1553,9 @@ public slots:
|
|||||||
|
|
||||||
void tst_QFiledialog::rejectModalDialogs()
|
void tst_QFiledialog::rejectModalDialogs()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This freezes. Figure out why.");
|
||||||
|
|
||||||
// QTBUG-38672 , static functions should return empty Urls
|
// QTBUG-38672 , static functions should return empty Urls
|
||||||
DialogRejecter dr;
|
DialogRejecter dr;
|
||||||
|
|
||||||
@ -1609,6 +1615,9 @@ public:
|
|||||||
|
|
||||||
void tst_QFiledialog::focusObjectDuringDestruction()
|
void tst_QFiledialog::focusObjectDuringDestruction()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This freezes. Figure out why.");
|
||||||
|
|
||||||
QTRY_VERIFY(QGuiApplication::topLevelWindows().isEmpty());
|
QTRY_VERIFY(QGuiApplication::topLevelWindows().isEmpty());
|
||||||
|
|
||||||
qtbug57193DialogRejecter dialogRejecter;
|
qtbug57193DialogRejecter dialogRejecter;
|
||||||
|
@ -179,6 +179,9 @@ class FriendlyFontDialog : public QFontDialog
|
|||||||
|
|
||||||
void tst_QFontDialog::task256466_wrongStyle()
|
void tst_QFontDialog::task256466_wrongStyle()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This freezes. Figure out why.");
|
||||||
|
|
||||||
QFontDatabase fdb;
|
QFontDatabase fdb;
|
||||||
FriendlyFontDialog dialog;
|
FriendlyFontDialog dialog;
|
||||||
dialog.setOption(QFontDialog::DontUseNativeDialog);
|
dialog.setOption(QFontDialog::DontUseNativeDialog);
|
||||||
|
@ -152,6 +152,9 @@ void tst_QGraphicsPixmapItem::contains_data()
|
|||||||
// public bool contains(QPointF const& point) const
|
// public bool contains(QPointF const& point) const
|
||||||
void tst_QGraphicsPixmapItem::contains()
|
void tst_QGraphicsPixmapItem::contains()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QFETCH(QPixmap, pixmap);
|
QFETCH(QPixmap, pixmap);
|
||||||
QFETCH(QPointF, point);
|
QFETCH(QPointF, point);
|
||||||
QFETCH(bool, contains);
|
QFETCH(bool, contains);
|
||||||
|
@ -3078,6 +3078,9 @@ void tst_QGraphicsScene::tabFocus_emptyScene()
|
|||||||
|
|
||||||
void tst_QGraphicsScene::tabFocus_sceneWithFocusableItems()
|
void tst_QGraphicsScene::tabFocus_sceneWithFocusableItems()
|
||||||
{
|
{
|
||||||
|
if (!QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::WindowActivation))
|
||||||
|
QSKIP("Window activation is not supported");
|
||||||
|
|
||||||
QGraphicsScene scene;
|
QGraphicsScene scene;
|
||||||
QGraphicsTextItem *item = scene.addText("Qt rocks!");
|
QGraphicsTextItem *item = scene.addText("Qt rocks!");
|
||||||
item->setTabChangesFocus(true);
|
item->setTabChangesFocus(true);
|
||||||
@ -3218,6 +3221,9 @@ protected:
|
|||||||
|
|
||||||
void tst_QGraphicsScene::tabFocus_sceneWithFocusWidgets()
|
void tst_QGraphicsScene::tabFocus_sceneWithFocusWidgets()
|
||||||
{
|
{
|
||||||
|
if (!QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::WindowActivation))
|
||||||
|
QSKIP("Window activation is not supported");
|
||||||
|
|
||||||
QGraphicsScene scene;
|
QGraphicsScene scene;
|
||||||
|
|
||||||
FocusWidget *widget1 = new FocusWidget;
|
FocusWidget *widget1 = new FocusWidget;
|
||||||
@ -3287,6 +3293,9 @@ void tst_QGraphicsScene::tabFocus_sceneWithFocusWidgets()
|
|||||||
|
|
||||||
void tst_QGraphicsScene::tabFocus_sceneWithNestedFocusWidgets()
|
void tst_QGraphicsScene::tabFocus_sceneWithNestedFocusWidgets()
|
||||||
{
|
{
|
||||||
|
if (!QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::WindowActivation))
|
||||||
|
QSKIP("Window activation is not supported");
|
||||||
|
|
||||||
QGraphicsScene scene;
|
QGraphicsScene scene;
|
||||||
|
|
||||||
FocusWidget *widget1 = new FocusWidget;
|
FocusWidget *widget1 = new FocusWidget;
|
||||||
@ -3811,6 +3820,9 @@ public:
|
|||||||
|
|
||||||
void tst_QGraphicsScene::inputMethod()
|
void tst_QGraphicsScene::inputMethod()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
PlatformInputContext inputContext;
|
PlatformInputContext inputContext;
|
||||||
QInputMethodPrivate *inputMethodPrivate =
|
QInputMethodPrivate *inputMethodPrivate =
|
||||||
QInputMethodPrivate::get(QGuiApplication::inputMethod());
|
QInputMethodPrivate::get(QGuiApplication::inputMethod());
|
||||||
@ -4054,6 +4066,9 @@ void tst_QGraphicsScene::polishItems2()
|
|||||||
|
|
||||||
void tst_QGraphicsScene::isActive()
|
void tst_QGraphicsScene::isActive()
|
||||||
{
|
{
|
||||||
|
if (!QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::WindowActivation))
|
||||||
|
QSKIP("Window activation is not supported");
|
||||||
|
|
||||||
#if defined(Q_OS_ANDROID) && !defined(Q_OS_ANDROID_EMBEDDED)
|
#if defined(Q_OS_ANDROID) && !defined(Q_OS_ANDROID_EMBEDDED)
|
||||||
QSKIP("Fails on Android (QTBUG-44430)");
|
QSKIP("Fails on Android (QTBUG-44430)");
|
||||||
#endif
|
#endif
|
||||||
|
@ -418,6 +418,9 @@ void tst_QGraphicsView::alignment()
|
|||||||
|
|
||||||
void tst_QGraphicsView::interactive()
|
void tst_QGraphicsView::interactive()
|
||||||
{
|
{
|
||||||
|
if (!QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::WindowActivation))
|
||||||
|
QSKIP("Window activation is not supported");
|
||||||
|
|
||||||
TestItem *item = new TestItem;
|
TestItem *item = new TestItem;
|
||||||
item->setFlags(QGraphicsItem::ItemIsMovable);
|
item->setFlags(QGraphicsItem::ItemIsMovable);
|
||||||
QCOMPARE(item->events.size(), 0);
|
QCOMPARE(item->events.size(), 0);
|
||||||
@ -3297,6 +3300,9 @@ void tst_QGraphicsView::task186827_deleteReplayedItem()
|
|||||||
|
|
||||||
void tst_QGraphicsView::task207546_focusCrash()
|
void tst_QGraphicsView::task207546_focusCrash()
|
||||||
{
|
{
|
||||||
|
if (!QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::WindowActivation))
|
||||||
|
QSKIP("Window activation is not supported");
|
||||||
|
|
||||||
class _Widget : public QWidget
|
class _Widget : public QWidget
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -3641,6 +3647,8 @@ void tst_QGraphicsView::moveItemWhileScrolling()
|
|||||||
int a = adjustForAntialiasing ? 2 : 1;
|
int a = adjustForAntialiasing ? 2 : 1;
|
||||||
expectedRegion += QRect(40, 50, 10, 10).adjusted(-a, -a, a, a);
|
expectedRegion += QRect(40, 50, 10, 10).adjusted(-a, -a, a, a);
|
||||||
expectedRegion += QRect(40, 60, 10, 10).adjusted(-a, -a, a, a);
|
expectedRegion += QRect(40, 60, 10, 10).adjusted(-a, -a, a, a);
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
COMPARE_REGIONS(view.lastPaintedRegion, expectedRegion);
|
COMPARE_REGIONS(view.lastPaintedRegion, expectedRegion);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4394,6 +4402,9 @@ void tst_QGraphicsView::inputMethodSensitivity()
|
|||||||
|
|
||||||
void tst_QGraphicsView::inputContextReset()
|
void tst_QGraphicsView::inputContextReset()
|
||||||
{
|
{
|
||||||
|
if (!QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::WindowActivation))
|
||||||
|
QSKIP("Window activation is not supported");
|
||||||
|
|
||||||
PlatformInputContext inputContext;
|
PlatformInputContext inputContext;
|
||||||
QInputMethodPrivate *inputMethodPrivate = QInputMethodPrivate::get(qApp->inputMethod());
|
QInputMethodPrivate *inputMethodPrivate = QInputMethodPrivate::get(qApp->inputMethod());
|
||||||
inputMethodPrivate->testContext = &inputContext;
|
inputMethodPrivate->testContext = &inputContext;
|
||||||
@ -4652,6 +4663,9 @@ void tst_QGraphicsView::QTBUG_4151_clipAndIgnore_data()
|
|||||||
|
|
||||||
void tst_QGraphicsView::QTBUG_4151_clipAndIgnore()
|
void tst_QGraphicsView::QTBUG_4151_clipAndIgnore()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QFETCH(bool, clip);
|
QFETCH(bool, clip);
|
||||||
QFETCH(bool, ignoreTransformations);
|
QFETCH(bool, ignoreTransformations);
|
||||||
QFETCH(int, numItems);
|
QFETCH(int, numItems);
|
||||||
@ -4834,6 +4848,9 @@ QRectF IMItem::mf(1.5, 1.6, 10, 10);
|
|||||||
|
|
||||||
void tst_QGraphicsView::QTBUG_16063_microFocusRect()
|
void tst_QGraphicsView::QTBUG_16063_microFocusRect()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QGraphicsScene scene;
|
QGraphicsScene scene;
|
||||||
IMItem *item = new IMItem();
|
IMItem *item = new IMItem();
|
||||||
scene.addItem(item);
|
scene.addItem(item);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
CONFIG += testcase
|
CONFIG += testcase
|
||||||
TARGET = tst_qabstractitemview
|
TARGET = tst_qabstractitemview
|
||||||
QT += widgets testlib testlib-private
|
QT += widgets testlib testlib-private gui-private
|
||||||
SOURCES += tst_qabstractitemview.cpp
|
SOURCES += tst_qabstractitemview.cpp
|
||||||
|
@ -26,6 +26,10 @@
|
|||||||
**
|
**
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
#include <private/qguiapplication_p.h>
|
||||||
|
|
||||||
|
#include <qpa/qplatformintegration.h>
|
||||||
|
|
||||||
#include <QAbstractItemView>
|
#include <QAbstractItemView>
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
#include <QHeaderView>
|
#include <QHeaderView>
|
||||||
@ -975,6 +979,9 @@ void tst_QAbstractItemView::setItemDelegate_data()
|
|||||||
|
|
||||||
void tst_QAbstractItemView::setItemDelegate()
|
void tst_QAbstractItemView::setItemDelegate()
|
||||||
{
|
{
|
||||||
|
if (!QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::WindowActivation))
|
||||||
|
QSKIP("Window activation is not supported");
|
||||||
|
|
||||||
QFETCH(const IntList, rowsOrColumnsWithDelegate);
|
QFETCH(const IntList, rowsOrColumnsWithDelegate);
|
||||||
QFETCH(QPoint, cellToEdit);
|
QFETCH(QPoint, cellToEdit);
|
||||||
QTableView v;
|
QTableView v;
|
||||||
@ -1093,6 +1100,9 @@ void tst_QAbstractItemView::setCurrentIndex()
|
|||||||
|
|
||||||
void tst_QAbstractItemView::task221955_selectedEditor()
|
void tst_QAbstractItemView::task221955_selectedEditor()
|
||||||
{
|
{
|
||||||
|
if (!QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::WindowActivation))
|
||||||
|
QSKIP("Window activation is not supported");
|
||||||
|
|
||||||
QTreeWidget tree;
|
QTreeWidget tree;
|
||||||
tree.setColumnCount(2);
|
tree.setColumnCount(2);
|
||||||
|
|
||||||
@ -1178,6 +1188,9 @@ void tst_QAbstractItemView::task250754_fontChange()
|
|||||||
|
|
||||||
void tst_QAbstractItemView::task200665_itemEntered()
|
void tst_QAbstractItemView::task200665_itemEntered()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
//we test that view will emit entered
|
//we test that view will emit entered
|
||||||
//when the scrollbar move but not the mouse itself
|
//when the scrollbar move but not the mouse itself
|
||||||
QStandardItemModel model(1000, 1);
|
QStandardItemModel model(1000, 1);
|
||||||
@ -1385,6 +1398,9 @@ void tst_QAbstractItemView::ctrlRubberbandSelection()
|
|||||||
|
|
||||||
void tst_QAbstractItemView::QTBUG6407_extendedSelection()
|
void tst_QAbstractItemView::QTBUG6407_extendedSelection()
|
||||||
{
|
{
|
||||||
|
if (!QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::WindowActivation))
|
||||||
|
QSKIP("Window activation is not supported");
|
||||||
|
|
||||||
QListWidget view;
|
QListWidget view;
|
||||||
view.setSelectionMode(QAbstractItemView::ExtendedSelection);
|
view.setSelectionMode(QAbstractItemView::ExtendedSelection);
|
||||||
for (int i = 0; i < 50; ++i)
|
for (int i = 0; i < 50; ++i)
|
||||||
@ -1466,6 +1482,9 @@ void tst_QAbstractItemView::testDelegateDestroyEditor()
|
|||||||
|
|
||||||
void tst_QAbstractItemView::testClickedSignal()
|
void tst_QAbstractItemView::testClickedSignal()
|
||||||
{
|
{
|
||||||
|
if (!QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::WindowActivation))
|
||||||
|
QSKIP("Window activation is not supported");
|
||||||
|
|
||||||
QTableWidget view(5, 5);
|
QTableWidget view(5, 5);
|
||||||
|
|
||||||
centerOnScreen(&view);
|
centerOnScreen(&view);
|
||||||
@ -1510,6 +1529,9 @@ public:
|
|||||||
|
|
||||||
void tst_QAbstractItemView::testChangeEditorState()
|
void tst_QAbstractItemView::testChangeEditorState()
|
||||||
{
|
{
|
||||||
|
if (!QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::WindowActivation))
|
||||||
|
QSKIP("Window activation is not supported");
|
||||||
|
|
||||||
// Test for QTBUG-25370
|
// Test for QTBUG-25370
|
||||||
TestModel model;
|
TestModel model;
|
||||||
model.setItem(0, 0, new QStandardItem("a"));
|
model.setItem(0, 0, new QStandardItem("a"));
|
||||||
@ -1577,6 +1599,9 @@ void tst_QAbstractItemView::deselectInSingleSelection()
|
|||||||
|
|
||||||
void tst_QAbstractItemView::testNoActivateOnDisabledItem()
|
void tst_QAbstractItemView::testNoActivateOnDisabledItem()
|
||||||
{
|
{
|
||||||
|
if (!QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::WindowActivation))
|
||||||
|
QSKIP("Window activation is not supported");
|
||||||
|
|
||||||
QTreeView treeView;
|
QTreeView treeView;
|
||||||
QStandardItemModel model(1, 1);
|
QStandardItemModel model(1, 1);
|
||||||
QStandardItem *item = new QStandardItem("item");
|
QStandardItem *item = new QStandardItem("item");
|
||||||
@ -1613,6 +1638,9 @@ void tst_QAbstractItemView::testFocusPolicy_data()
|
|||||||
|
|
||||||
void tst_QAbstractItemView::testFocusPolicy()
|
void tst_QAbstractItemView::testFocusPolicy()
|
||||||
{
|
{
|
||||||
|
if (!QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::WindowActivation))
|
||||||
|
QSKIP("Window activation is not supported");
|
||||||
|
|
||||||
QFETCH(QAbstractItemDelegate*, delegate);
|
QFETCH(QAbstractItemDelegate*, delegate);
|
||||||
|
|
||||||
QWidget window;
|
QWidget window;
|
||||||
@ -1821,6 +1849,9 @@ void tst_QAbstractItemView::shiftSelectionAfterChangingModelContents()
|
|||||||
|
|
||||||
void tst_QAbstractItemView::QTBUG48968_reentrant_updateEditorGeometries()
|
void tst_QAbstractItemView::QTBUG48968_reentrant_updateEditorGeometries()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QTreeView tree;
|
QTreeView tree;
|
||||||
QStandardItemModel *m = new QStandardItemModel(&tree);
|
QStandardItemModel *m = new QStandardItemModel(&tree);
|
||||||
for (int i = 0; i < 10; ++i) {
|
for (int i = 0; i < 10; ++i) {
|
||||||
@ -2154,6 +2185,9 @@ public:
|
|||||||
|
|
||||||
void tst_QAbstractItemView::QTBUG46785_mouseout_hover_state()
|
void tst_QAbstractItemView::QTBUG46785_mouseout_hover_state()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
HoverItemDelegate delegate;
|
HoverItemDelegate delegate;
|
||||||
|
|
||||||
QTableWidget table(5, 5);
|
QTableWidget table(5, 5);
|
||||||
@ -2232,6 +2266,9 @@ void tst_QAbstractItemView::inputMethodEnabled_data()
|
|||||||
|
|
||||||
void tst_QAbstractItemView::inputMethodEnabled()
|
void tst_QAbstractItemView::inputMethodEnabled()
|
||||||
{
|
{
|
||||||
|
if (!QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::WindowActivation))
|
||||||
|
QSKIP("Window activation is not supported");
|
||||||
|
|
||||||
QFETCH(QByteArray, viewType);
|
QFETCH(QByteArray, viewType);
|
||||||
QFETCH(Qt::ItemFlags, itemFlags);
|
QFETCH(Qt::ItemFlags, itemFlags);
|
||||||
QFETCH(bool, result);
|
QFETCH(bool, result);
|
||||||
@ -2312,6 +2349,9 @@ void tst_QAbstractItemView::currentFollowsIndexWidget_data()
|
|||||||
|
|
||||||
void tst_QAbstractItemView::currentFollowsIndexWidget()
|
void tst_QAbstractItemView::currentFollowsIndexWidget()
|
||||||
{
|
{
|
||||||
|
if (!QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::WindowActivation))
|
||||||
|
QSKIP("Window activation is not supported");
|
||||||
|
|
||||||
QFETCH(QByteArray, viewType);
|
QFETCH(QByteArray, viewType);
|
||||||
|
|
||||||
QScopedPointer<QAbstractItemView> view(viewFromString(viewType));
|
QScopedPointer<QAbstractItemView> view(viewFromString(viewType));
|
||||||
@ -2369,6 +2409,9 @@ void tst_QAbstractItemView::checkFocusAfterActivationChanges_data()
|
|||||||
|
|
||||||
void tst_QAbstractItemView::checkFocusAfterActivationChanges()
|
void tst_QAbstractItemView::checkFocusAfterActivationChanges()
|
||||||
{
|
{
|
||||||
|
if (!QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::WindowActivation))
|
||||||
|
QSKIP("Window activation is not supported");
|
||||||
|
|
||||||
QFETCH(QByteArray, viewType);
|
QFETCH(QByteArray, viewType);
|
||||||
|
|
||||||
const QRect availableGeo = QGuiApplication::primaryScreen()->availableGeometry();
|
const QRect availableGeo = QGuiApplication::primaryScreen()->availableGeometry();
|
||||||
|
@ -346,6 +346,9 @@ void tst_QColumnView::scrollTo_data()
|
|||||||
|
|
||||||
void tst_QColumnView::scrollTo()
|
void tst_QColumnView::scrollTo()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QFETCH(bool, reverse);
|
QFETCH(bool, reverse);
|
||||||
QFETCH(bool, giveFocus);
|
QFETCH(bool, giveFocus);
|
||||||
QWidget topLevel;
|
QWidget topLevel;
|
||||||
@ -665,6 +668,9 @@ void tst_QColumnView::moveGrip_data()
|
|||||||
|
|
||||||
void tst_QColumnView::moveGrip()
|
void tst_QColumnView::moveGrip()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QFETCH(bool, reverse);
|
QFETCH(bool, reverse);
|
||||||
QWidget topLevel;
|
QWidget topLevel;
|
||||||
if (reverse)
|
if (reverse)
|
||||||
|
@ -416,6 +416,9 @@ void tst_QDataWidgetMapper::mappedWidgetAt()
|
|||||||
|
|
||||||
void tst_QDataWidgetMapper::textEditDoesntChangeFocusOnTab_qtbug3305()
|
void tst_QDataWidgetMapper::textEditDoesntChangeFocusOnTab_qtbug3305()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QDataWidgetMapper mapper;
|
QDataWidgetMapper mapper;
|
||||||
QAbstractItemModel *model = testModel(&mapper);
|
QAbstractItemModel *model = testModel(&mapper);
|
||||||
mapper.setModel(model);
|
mapper.setModel(model);
|
||||||
|
@ -1558,6 +1558,9 @@ void tst_QHeaderView::hiddenSectionCount()
|
|||||||
|
|
||||||
void tst_QHeaderView::focusPolicy()
|
void tst_QHeaderView::focusPolicy()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QHeaderView view(Qt::Horizontal);
|
QHeaderView view(Qt::Horizontal);
|
||||||
QCOMPARE(view.focusPolicy(), Qt::NoFocus);
|
QCOMPARE(view.focusPolicy(), Qt::NoFocus);
|
||||||
|
|
||||||
@ -2295,6 +2298,9 @@ static int checkHeaderViewOrder(const QHeaderView *view, const IntList &expected
|
|||||||
|
|
||||||
void tst_QHeaderView::QTBUG6058_reset()
|
void tst_QHeaderView::QTBUG6058_reset()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QStringListModel model1({ "0", "1", "2", "3", "4", "5" });
|
QStringListModel model1({ "0", "1", "2", "3", "4", "5" });
|
||||||
QStringListModel model2({ "a", "b", "c" });
|
QStringListModel model2({ "a", "b", "c" });
|
||||||
QSortFilterProxyModel proxy;
|
QSortFilterProxyModel proxy;
|
||||||
@ -3441,6 +3447,9 @@ protected:
|
|||||||
|
|
||||||
void tst_QHeaderView::statusTips()
|
void tst_QHeaderView::statusTips()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
StatusTipHeaderView headerView(Qt::Horizontal);
|
StatusTipHeaderView headerView(Qt::Horizontal);
|
||||||
QtTestModel model(5, 5);
|
QtTestModel model(5, 5);
|
||||||
headerView.setModel(&model);
|
headerView.setModel(&model);
|
||||||
|
@ -1030,6 +1030,9 @@ void tst_QItemDelegate::decoration_data()
|
|||||||
|
|
||||||
void tst_QItemDelegate::decoration()
|
void tst_QItemDelegate::decoration()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
Q_CHECK_PAINTEVENTS
|
Q_CHECK_PAINTEVENTS
|
||||||
|
|
||||||
QFETCH(int, type);
|
QFETCH(int, type);
|
||||||
@ -1282,6 +1285,9 @@ void tst_QItemDelegate::enterKey_data()
|
|||||||
|
|
||||||
void tst_QItemDelegate::enterKey()
|
void tst_QItemDelegate::enterKey()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QFETCH(WidgetType, widget);
|
QFETCH(WidgetType, widget);
|
||||||
QFETCH(int, key);
|
QFETCH(int, key);
|
||||||
QFETCH(bool, expectedFocus);
|
QFETCH(bool, expectedFocus);
|
||||||
@ -1343,6 +1349,9 @@ void tst_QItemDelegate::enterKey()
|
|||||||
|
|
||||||
void tst_QItemDelegate::task257859_finalizeEdit()
|
void tst_QItemDelegate::task257859_finalizeEdit()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QStandardItemModel model;
|
QStandardItemModel model;
|
||||||
model.appendRow(new QStandardItem());
|
model.appendRow(new QStandardItem());
|
||||||
|
|
||||||
@ -1438,6 +1447,9 @@ void tst_QItemDelegate::testLineEditValidation_data()
|
|||||||
|
|
||||||
void tst_QItemDelegate::testLineEditValidation()
|
void tst_QItemDelegate::testLineEditValidation()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QFETCH(int, key);
|
QFETCH(int, key);
|
||||||
|
|
||||||
struct TestDelegate : public QItemDelegate
|
struct TestDelegate : public QItemDelegate
|
||||||
|
@ -435,6 +435,9 @@ void touch(QWidget *widget, Qt::KeyboardModifier modifier, Qt::Key keyPress)
|
|||||||
*/
|
*/
|
||||||
void tst_QItemView::spider()
|
void tst_QItemView::spider()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QFETCH(QString, viewType);
|
QFETCH(QString, viewType);
|
||||||
QFETCH(QAbstractItemView::ScrollMode, vscroll);
|
QFETCH(QAbstractItemView::ScrollMode, vscroll);
|
||||||
QFETCH(QAbstractItemView::ScrollMode, hscroll);
|
QFETCH(QAbstractItemView::ScrollMode, hscroll);
|
||||||
|
@ -1322,6 +1322,9 @@ void tst_QListView::scrollBarAsNeeded_data()
|
|||||||
|
|
||||||
void tst_QListView::scrollBarAsNeeded()
|
void tst_QListView::scrollBarAsNeeded()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QFETCH(QSize, size);
|
QFETCH(QSize, size);
|
||||||
QFETCH(int, itemCount);
|
QFETCH(int, itemCount);
|
||||||
QFETCH(QAbstractItemView::ScrollMode, verticalScrollMode);
|
QFETCH(QAbstractItemView::ScrollMode, verticalScrollMode);
|
||||||
@ -1505,6 +1508,9 @@ void tst_QListView::task203585_selectAll()
|
|||||||
|
|
||||||
void tst_QListView::task228566_infiniteRelayout()
|
void tst_QListView::task228566_infiniteRelayout()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QListView view;
|
QListView view;
|
||||||
|
|
||||||
QStringList list;
|
QStringList list;
|
||||||
@ -1588,6 +1594,9 @@ void tst_QListView::task196118_visualRegionForSelection()
|
|||||||
|
|
||||||
void tst_QListView::task254449_draggingItemToNegativeCoordinates()
|
void tst_QListView::task254449_draggingItemToNegativeCoordinates()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
//we'll check that the items are painted correctly
|
//we'll check that the items are painted correctly
|
||||||
PublicListView list;
|
PublicListView list;
|
||||||
QStandardItemModel model(1, 1);
|
QStandardItemModel model(1, 1);
|
||||||
@ -1627,6 +1636,9 @@ void tst_QListView::task254449_draggingItemToNegativeCoordinates()
|
|||||||
|
|
||||||
void tst_QListView::keyboardSearch()
|
void tst_QListView::keyboardSearch()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QStringListModel model({"AB", "AC", "BA", "BB", "BD", "KAFEINE",
|
QStringListModel model({"AB", "AC", "BA", "BB", "BD", "KAFEINE",
|
||||||
"KONQUEROR", "KOPETE", "KOOKA", "OKULAR"});
|
"KONQUEROR", "KOPETE", "KOOKA", "OKULAR"});
|
||||||
|
|
||||||
@ -1708,6 +1720,9 @@ void tst_QListView::shiftSelectionWithNonUniformItemSizes()
|
|||||||
|
|
||||||
void tst_QListView::shiftSelectionWithItemAlignment()
|
void tst_QListView::shiftSelectionWithItemAlignment()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QStringList items;
|
QStringList items;
|
||||||
for (int c = 0; c < 2; c++) {
|
for (int c = 0; c < 2; c++) {
|
||||||
for (int i = 10; i > 0; i--)
|
for (int i = 10; i > 0; i--)
|
||||||
@ -1778,6 +1793,9 @@ void tst_QListView::clickOnViewportClearsSelection()
|
|||||||
|
|
||||||
void tst_QListView::task262152_setModelColumnNavigate()
|
void tst_QListView::task262152_setModelColumnNavigate()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QListView view;
|
QListView view;
|
||||||
QStandardItemModel model(3,2);
|
QStandardItemModel model(3,2);
|
||||||
model.setItem(0, 1, new QStandardItem("[0,1]"));
|
model.setItem(0, 1, new QStandardItem("[0,1]"));
|
||||||
|
@ -1587,6 +1587,9 @@ public:
|
|||||||
|
|
||||||
void tst_QListWidget::fastScroll()
|
void tst_QListWidget::fastScroll()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QWidget topLevel;
|
QWidget topLevel;
|
||||||
MyListWidget widget(&topLevel);
|
MyListWidget widget(&topLevel);
|
||||||
for (int i = 0; i < 50; ++i)
|
for (int i = 0; i < 50; ++i)
|
||||||
@ -1654,6 +1657,9 @@ void tst_QListWidget::task199503_crashWhenCleared()
|
|||||||
|
|
||||||
void tst_QListWidget::task217070_scrollbarsAdjusted()
|
void tst_QListWidget::task217070_scrollbarsAdjusted()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
//This task was mailing for style using SH_ScrollView_FrameOnlyAroundContents such as QMotifStyle
|
//This task was mailing for style using SH_ScrollView_FrameOnlyAroundContents such as QMotifStyle
|
||||||
QListWidget v;
|
QListWidget v;
|
||||||
for (int i = 0; i < 200;i++)
|
for (int i = 0; i < 200;i++)
|
||||||
@ -1743,6 +1749,9 @@ public:
|
|||||||
|
|
||||||
void tst_QListWidget::QTBUG14363_completerWithAnyKeyPressedEditTriggers()
|
void tst_QListWidget::QTBUG14363_completerWithAnyKeyPressedEditTriggers()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QListWidget listWidget;
|
QListWidget listWidget;
|
||||||
listWidget.setEditTriggers(QAbstractItemView::AnyKeyPressed);
|
listWidget.setEditTriggers(QAbstractItemView::AnyKeyPressed);
|
||||||
listWidget.setItemDelegate(new ItemDelegate(&listWidget));
|
listWidget.setItemDelegate(new ItemDelegate(&listWidget));
|
||||||
|
@ -585,6 +585,9 @@ void tst_QTableView::keyboardNavigation_data()
|
|||||||
|
|
||||||
void tst_QTableView::keyboardNavigation()
|
void tst_QTableView::keyboardNavigation()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QFETCH(int, rowCount);
|
QFETCH(int, rowCount);
|
||||||
QFETCH(int, columnCount);
|
QFETCH(int, columnCount);
|
||||||
QFETCH(bool, tabKeyNavigation);
|
QFETCH(bool, tabKeyNavigation);
|
||||||
@ -1254,6 +1257,9 @@ void tst_QTableView::moveCursorStrikesBack_data()
|
|||||||
|
|
||||||
void tst_QTableView::moveCursorStrikesBack()
|
void tst_QTableView::moveCursorStrikesBack()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QFETCH(int, hideRow);
|
QFETCH(int, hideRow);
|
||||||
QFETCH(int, hideColumn);
|
QFETCH(int, hideColumn);
|
||||||
QFETCH(const IntList, disableRows);
|
QFETCH(const IntList, disableRows);
|
||||||
@ -3240,6 +3246,9 @@ void tst_QTableView::spans()
|
|||||||
|
|
||||||
void tst_QTableView::spansAfterRowInsertion()
|
void tst_QTableView::spansAfterRowInsertion()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QtTestTableModel model(10, 10);
|
QtTestTableModel model(10, 10);
|
||||||
QtTestTableView view;
|
QtTestTableView view;
|
||||||
view.setModel(&model);
|
view.setModel(&model);
|
||||||
@ -3276,6 +3285,9 @@ void tst_QTableView::spansAfterRowInsertion()
|
|||||||
|
|
||||||
void tst_QTableView::spansAfterColumnInsertion()
|
void tst_QTableView::spansAfterColumnInsertion()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QtTestTableModel model(10, 10);
|
QtTestTableModel model(10, 10);
|
||||||
QtTestTableView view;
|
QtTestTableView view;
|
||||||
view.setModel(&model);
|
view.setModel(&model);
|
||||||
@ -3312,6 +3324,9 @@ void tst_QTableView::spansAfterColumnInsertion()
|
|||||||
|
|
||||||
void tst_QTableView::spansAfterRowRemoval()
|
void tst_QTableView::spansAfterRowRemoval()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QtTestTableModel model(10, 10);
|
QtTestTableModel model(10, 10);
|
||||||
QtTestTableView view;
|
QtTestTableView view;
|
||||||
view.setModel(&model);
|
view.setModel(&model);
|
||||||
@ -3353,6 +3368,9 @@ void tst_QTableView::spansAfterRowRemoval()
|
|||||||
|
|
||||||
void tst_QTableView::spansAfterColumnRemoval()
|
void tst_QTableView::spansAfterColumnRemoval()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QtTestTableModel model(10, 10);
|
QtTestTableModel model(10, 10);
|
||||||
QtTestTableView view;
|
QtTestTableView view;
|
||||||
view.setModel(&model);
|
view.setModel(&model);
|
||||||
@ -3509,6 +3527,9 @@ public:
|
|||||||
|
|
||||||
void tst_QTableView::editSpanFromDirections()
|
void tst_QTableView::editSpanFromDirections()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QFETCH(const KeyList, keyPresses);
|
QFETCH(const KeyList, keyPresses);
|
||||||
QFETCH(QSharedPointer<QStandardItemModel>, model);
|
QFETCH(QSharedPointer<QStandardItemModel>, model);
|
||||||
QFETCH(int, row);
|
QFETCH(int, row);
|
||||||
@ -3644,6 +3665,9 @@ QT_END_NAMESPACE
|
|||||||
|
|
||||||
void tst_QTableView::tabFocus()
|
void tst_QTableView::tabFocus()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
if (!qt_tab_all_widgets())
|
if (!qt_tab_all_widgets())
|
||||||
QSKIP("This test requires full keyboard control to be enabled.");
|
QSKIP("This test requires full keyboard control to be enabled.");
|
||||||
|
|
||||||
@ -4069,6 +4093,9 @@ struct ValueSaver {
|
|||||||
|
|
||||||
void tst_QTableView::task191545_dragSelectRows()
|
void tst_QTableView::task191545_dragSelectRows()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QStandardItemModel model(10, 10);
|
QStandardItemModel model(10, 10);
|
||||||
QTableView table;
|
QTableView table;
|
||||||
table.setModel(&model);
|
table.setModel(&model);
|
||||||
|
@ -1208,6 +1208,9 @@ void tst_QTreeView::keyboardSearch()
|
|||||||
|
|
||||||
void tst_QTreeView::keyboardSearchMultiColumn()
|
void tst_QTreeView::keyboardSearchMultiColumn()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QTreeView view;
|
QTreeView view;
|
||||||
QStandardItemModel model(4, 2);
|
QStandardItemModel model(4, 2);
|
||||||
|
|
||||||
@ -1886,6 +1889,9 @@ void tst_QTreeView::moveCursor_data()
|
|||||||
|
|
||||||
void tst_QTreeView::moveCursor()
|
void tst_QTreeView::moveCursor()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QFETCH(bool, uniformRowHeights);
|
QFETCH(bool, uniformRowHeights);
|
||||||
QFETCH(bool, scrollPerPixel);
|
QFETCH(bool, scrollPerPixel);
|
||||||
QtTestModel model(8, 6);
|
QtTestModel model(8, 6);
|
||||||
@ -3536,6 +3542,9 @@ void tst_QTreeView::task203696_hidingColumnsAndRowsn()
|
|||||||
|
|
||||||
void tst_QTreeView::addRowsWhileSectionsAreHidden()
|
void tst_QTreeView::addRowsWhileSectionsAreHidden()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QTreeView view;
|
QTreeView view;
|
||||||
for (int pass = 1; pass <= 2; ++pass) {
|
for (int pass = 1; pass <= 2; ++pass) {
|
||||||
QStandardItemModel *model = new QStandardItemModel(6, pass, &view);
|
QStandardItemModel *model = new QStandardItemModel(6, pass, &view);
|
||||||
@ -3602,6 +3611,9 @@ void tst_QTreeView::task216717_updateChildren()
|
|||||||
|
|
||||||
void tst_QTreeView::task220298_selectColumns()
|
void tst_QTreeView::task220298_selectColumns()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
//this is a very simple 3x3 model where the internalId of the index are different for each cell
|
//this is a very simple 3x3 model where the internalId of the index are different for each cell
|
||||||
class Model : public QAbstractTableModel
|
class Model : public QAbstractTableModel
|
||||||
{
|
{
|
||||||
@ -3644,6 +3656,9 @@ void tst_QTreeView::task220298_selectColumns()
|
|||||||
|
|
||||||
void tst_QTreeView::task224091_appendColumns()
|
void tst_QTreeView::task224091_appendColumns()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QStandardItemModel *model = new QStandardItemModel();
|
QStandardItemModel *model = new QStandardItemModel();
|
||||||
QWidget* topLevel= new QWidget;
|
QWidget* topLevel= new QWidget;
|
||||||
setFrameless(topLevel);
|
setFrameless(topLevel);
|
||||||
@ -3803,6 +3818,9 @@ void tst_QTreeView::task202039_closePersistentEditor()
|
|||||||
|
|
||||||
void tst_QTreeView::task238873_avoidAutoReopening()
|
void tst_QTreeView::task238873_avoidAutoReopening()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QStandardItemModel model;
|
QStandardItemModel model;
|
||||||
|
|
||||||
QStandardItem item0("row 0");
|
QStandardItem item0("row 0");
|
||||||
@ -3889,6 +3907,9 @@ void tst_QTreeView::task246536_scrollbarsNotWorking()
|
|||||||
|
|
||||||
void tst_QTreeView::task250683_wrongSectionSize()
|
void tst_QTreeView::task250683_wrongSectionSize()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QStandardItemModel model;
|
QStandardItemModel model;
|
||||||
populateFakeDirModel(&model);
|
populateFakeDirModel(&model);
|
||||||
|
|
||||||
@ -4027,6 +4048,9 @@ void tst_QTreeView::task245654_changeModelAndExpandAll()
|
|||||||
|
|
||||||
void tst_QTreeView::doubleClickedWithSpans()
|
void tst_QTreeView::doubleClickedWithSpans()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QTreeView view;
|
QTreeView view;
|
||||||
QStandardItemModel model(1, 2);
|
QStandardItemModel model(1, 2);
|
||||||
view.setModel(&model);
|
view.setModel(&model);
|
||||||
@ -4120,6 +4144,9 @@ void tst_QTreeView::taskQTBUG_9216_setSizeAndUniformRowHeightsWrongRepaint()
|
|||||||
|
|
||||||
void tst_QTreeView::keyboardNavigationWithDisabled()
|
void tst_QTreeView::keyboardNavigationWithDisabled()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QWidget topLevel;
|
QWidget topLevel;
|
||||||
QTreeView view(&topLevel);
|
QTreeView view(&topLevel);
|
||||||
QStandardItemModel model(90, 0);
|
QStandardItemModel model(90, 0);
|
||||||
@ -4492,6 +4519,9 @@ void tst_QTreeView::taskQTBUG_8176_emitOnExpandAll()
|
|||||||
|
|
||||||
void tst_QTreeView::testInitialFocus()
|
void tst_QTreeView::testInitialFocus()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QTreeWidget treeWidget;
|
QTreeWidget treeWidget;
|
||||||
treeWidget.setColumnCount(5);
|
treeWidget.setColumnCount(5);
|
||||||
new QTreeWidgetItem(&treeWidget, QString("1;2;3;4;5").split(QLatin1Char(';')));
|
new QTreeWidgetItem(&treeWidget, QString("1;2;3;4;5").split(QLatin1Char(';')));
|
||||||
@ -4690,6 +4720,9 @@ void tst_QTreeView::statusTip_data()
|
|||||||
|
|
||||||
void tst_QTreeView::statusTip()
|
void tst_QTreeView::statusTip()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QFETCH(bool, intermediateParent);
|
QFETCH(bool, intermediateParent);
|
||||||
QMainWindow mw;
|
QMainWindow mw;
|
||||||
QtTestModel model(5, 5);
|
QtTestModel model(5, 5);
|
||||||
@ -4759,6 +4792,9 @@ public:
|
|||||||
|
|
||||||
void tst_QTreeView::fetchMoreOnScroll()
|
void tst_QTreeView::fetchMoreOnScroll()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QTreeView tw;
|
QTreeView tw;
|
||||||
FetchMoreModel im;
|
FetchMoreModel im;
|
||||||
tw.setModel(&im);
|
tw.setModel(&im);
|
||||||
@ -4819,6 +4855,9 @@ void tst_QTreeView::taskQTBUG_8376()
|
|||||||
|
|
||||||
void tst_QTreeView::taskQTBUG_61476()
|
void tst_QTreeView::taskQTBUG_61476()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
// This checks that if a user clicks on an item to collapse it that it
|
// This checks that if a user clicks on an item to collapse it that it
|
||||||
// does not edit (in this case change the check state) the item that is
|
// does not edit (in this case change the check state) the item that is
|
||||||
// now over the mouse just because it got a release event
|
// now over the mouse just because it got a release event
|
||||||
|
@ -457,6 +457,9 @@ void tst_QTreeWidget::editItem_data()
|
|||||||
|
|
||||||
void tst_QTreeWidget::editItem()
|
void tst_QTreeWidget::editItem()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QFETCH(TreeItemList, topLevelItems);
|
QFETCH(TreeItemList, topLevelItems);
|
||||||
|
|
||||||
QTreeWidget tree;
|
QTreeWidget tree;
|
||||||
@ -3035,6 +3038,9 @@ void tst_QTreeWidget::defaultRowSizes()
|
|||||||
|
|
||||||
void tst_QTreeWidget::task191552_rtl()
|
void tst_QTreeWidget::task191552_rtl()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
Qt::LayoutDirection oldDir = QGuiApplication::layoutDirection();
|
Qt::LayoutDirection oldDir = QGuiApplication::layoutDirection();
|
||||||
QGuiApplication::setLayoutDirection(Qt::RightToLeft);
|
QGuiApplication::setLayoutDirection(Qt::RightToLeft);
|
||||||
|
|
||||||
@ -3148,6 +3154,9 @@ void tst_QTreeWidget::task245280_sortChildren()
|
|||||||
|
|
||||||
void tst_QTreeWidget::task253109_itemHeight()
|
void tst_QTreeWidget::task253109_itemHeight()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QTreeWidget treeWidget;
|
QTreeWidget treeWidget;
|
||||||
treeWidget.setColumnCount(1);
|
treeWidget.setColumnCount(1);
|
||||||
treeWidget.show();
|
treeWidget.show();
|
||||||
@ -3375,6 +3384,9 @@ void tst_QTreeWidget::setTextUpdate()
|
|||||||
|
|
||||||
void tst_QTreeWidget::taskQTBUG2844_visualItemRect()
|
void tst_QTreeWidget::taskQTBUG2844_visualItemRect()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
PublicTreeWidget tree;
|
PublicTreeWidget tree;
|
||||||
tree.resize(150, 100);
|
tree.resize(150, 100);
|
||||||
tree.setColumnCount(3);
|
tree.setColumnCount(3);
|
||||||
@ -3514,6 +3526,9 @@ void tst_QTreeWidget::getMimeDataWithInvalidItem()
|
|||||||
// (-> logical index != visual index). see QTBUG-28733
|
// (-> logical index != visual index). see QTBUG-28733
|
||||||
void tst_QTreeWidget::testVisualItemRect()
|
void tst_QTreeWidget::testVisualItemRect()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QTreeWidget tw;
|
QTreeWidget tw;
|
||||||
tw.setColumnCount(2);
|
tw.setColumnCount(2);
|
||||||
QTreeWidgetItem *item = new QTreeWidgetItem(&tw);
|
QTreeWidgetItem *item = new QTreeWidgetItem(&tw);
|
||||||
|
@ -35,6 +35,7 @@
|
|||||||
#include <qaction.h>
|
#include <qaction.h>
|
||||||
#include <qmenu.h>
|
#include <qmenu.h>
|
||||||
#include <qpa/qplatformtheme.h>
|
#include <qpa/qplatformtheme.h>
|
||||||
|
#include <qpa/qplatformintegration.h>
|
||||||
#include <private/qguiapplication_p.h>
|
#include <private/qguiapplication_p.h>
|
||||||
|
|
||||||
class tst_QAction : public QObject
|
class tst_QAction : public QObject
|
||||||
@ -409,6 +410,9 @@ void tst_QAction::task229128TriggeredSignalWhenInActiongroup()
|
|||||||
|
|
||||||
void tst_QAction::repeat()
|
void tst_QAction::repeat()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
MyWidget testWidget(this);
|
MyWidget testWidget(this);
|
||||||
testWidget.show();
|
testWidget.show();
|
||||||
QApplication::setActiveWindow(&testWidget);
|
QApplication::setActiveWindow(&testWidget);
|
||||||
@ -484,6 +488,9 @@ void tst_QAction::disableShortcutsWithBlockedWidgets_data()
|
|||||||
|
|
||||||
void tst_QAction::disableShortcutsWithBlockedWidgets()
|
void tst_QAction::disableShortcutsWithBlockedWidgets()
|
||||||
{
|
{
|
||||||
|
if (!QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::WindowActivation))
|
||||||
|
QSKIP("Window activation is not supported");
|
||||||
|
|
||||||
QMainWindow window;
|
QMainWindow window;
|
||||||
|
|
||||||
QFETCH(Qt::ShortcutContext, shortcutContext);
|
QFETCH(Qt::ShortcutContext, shortcutContext);
|
||||||
@ -528,6 +535,9 @@ protected:
|
|||||||
// ShortcutOverride event first before passing it on as a normal KeyEvent.
|
// ShortcutOverride event first before passing it on as a normal KeyEvent.
|
||||||
void tst_QAction::shortcutFromKeyEvent()
|
void tst_QAction::shortcutFromKeyEvent()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
ShortcutOverrideWidget testWidget;
|
ShortcutOverrideWidget testWidget;
|
||||||
QAction action;
|
QAction action;
|
||||||
action.setShortcut(Qt::Key_1);
|
action.setShortcut(Qt::Key_1);
|
||||||
|
@ -1704,6 +1704,9 @@ void tst_QApplication::focusMouseClick()
|
|||||||
int argc = 1;
|
int argc = 1;
|
||||||
QApplication app(argc, &argv0);
|
QApplication app(argc, &argv0);
|
||||||
|
|
||||||
|
if (!QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::WindowActivation))
|
||||||
|
QSKIP("Window activation is not supported");
|
||||||
|
|
||||||
QWidget w;
|
QWidget w;
|
||||||
w.setWindowTitle(QLatin1String(QTest::currentTestFunction()));
|
w.setWindowTitle(QLatin1String(QTest::currentTestFunction()));
|
||||||
w.setFocusPolicy(Qt::StrongFocus);
|
w.setFocusPolicy(Qt::StrongFocus);
|
||||||
|
@ -612,6 +612,9 @@ ButtonWidget::ButtonWidget()
|
|||||||
// ------------------------------------------------------------------
|
// ------------------------------------------------------------------
|
||||||
void tst_QShortcut::disabledItems()
|
void tst_QShortcut::disabledItems()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
ButtonWidget mainW;
|
ButtonWidget mainW;
|
||||||
mainW.setWindowTitle(QTest::currentTestFunction());
|
mainW.setWindowTitle(QTest::currentTestFunction());
|
||||||
mainW.show();
|
mainW.show();
|
||||||
@ -692,6 +695,9 @@ void tst_QShortcut::disabledItems()
|
|||||||
// ------------------------------------------------------------------
|
// ------------------------------------------------------------------
|
||||||
void tst_QShortcut::ambiguousRotation()
|
void tst_QShortcut::ambiguousRotation()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
MainWindow mainW;
|
MainWindow mainW;
|
||||||
const QString name = QLatin1String(QTest::currentTestFunction());
|
const QString name = QLatin1String(QTest::currentTestFunction());
|
||||||
mainW.setWindowTitle(name);
|
mainW.setWindowTitle(name);
|
||||||
@ -834,6 +840,9 @@ void tst_QShortcut::ambiguousRotation()
|
|||||||
|
|
||||||
void tst_QShortcut::ambiguousItems()
|
void tst_QShortcut::ambiguousItems()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
ButtonWidget mainW;
|
ButtonWidget mainW;
|
||||||
mainW.setWindowTitle(QTest::currentTestFunction());
|
mainW.setWindowTitle(QTest::currentTestFunction());
|
||||||
mainW.show();
|
mainW.show();
|
||||||
@ -874,6 +883,9 @@ void tst_QShortcut::ambiguousItems()
|
|||||||
// ------------------------------------------------------------------
|
// ------------------------------------------------------------------
|
||||||
void tst_QShortcut::unicodeCompare()
|
void tst_QShortcut::unicodeCompare()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
ButtonWidget mainW;
|
ButtonWidget mainW;
|
||||||
mainW.setWindowTitle(QTest::currentTestFunction());
|
mainW.setWindowTitle(QTest::currentTestFunction());
|
||||||
mainW.show();
|
mainW.show();
|
||||||
@ -906,6 +918,9 @@ void tst_QShortcut::unicodeCompare()
|
|||||||
// ------------------------------------------------------------------
|
// ------------------------------------------------------------------
|
||||||
void tst_QShortcut::keypressConsumption()
|
void tst_QShortcut::keypressConsumption()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
MainWindow mainW;
|
MainWindow mainW;
|
||||||
mainW.setWindowTitle(QTest::currentTestFunction());
|
mainW.setWindowTitle(QTest::currentTestFunction());
|
||||||
mainW.show();
|
mainW.show();
|
||||||
@ -1099,6 +1114,9 @@ public:
|
|||||||
|
|
||||||
void tst_QShortcut::duplicatedShortcutOverride()
|
void tst_QShortcut::duplicatedShortcutOverride()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
OverrideCountingWidget w;
|
OverrideCountingWidget w;
|
||||||
w.setWindowTitle(Q_FUNC_INFO);
|
w.setWindowTitle(Q_FUNC_INFO);
|
||||||
w.resize(200, 200);
|
w.resize(200, 200);
|
||||||
@ -1199,6 +1217,9 @@ void tst_QShortcut::sendKeyEvents(QWidget *w, int k1, QChar c1, int k2, QChar c2
|
|||||||
|
|
||||||
void tst_QShortcut::testElement()
|
void tst_QShortcut::testElement()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
static QScopedPointer<MainWindow> mainW;
|
static QScopedPointer<MainWindow> mainW;
|
||||||
|
|
||||||
currentResult = NoResult;
|
currentResult = NoResult;
|
||||||
@ -1243,6 +1264,9 @@ void tst_QShortcut::testElement()
|
|||||||
|
|
||||||
void tst_QShortcut::shortcutToFocusProxy()
|
void tst_QShortcut::shortcutToFocusProxy()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QLineEdit le;
|
QLineEdit le;
|
||||||
QCompleter completer;
|
QCompleter completer;
|
||||||
QStringListModel *slm = new QStringListModel(QStringList() << "a0" << "a1" << "a2", &completer);
|
QStringListModel *slm = new QStringListModel(QStringList() << "a0" << "a1" << "a2", &completer);
|
||||||
|
@ -92,6 +92,9 @@ tst_QStackedLayout::tst_QStackedLayout()
|
|||||||
|
|
||||||
void tst_QStackedLayout::init()
|
void tst_QStackedLayout::init()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
if (testWidget) {
|
if (testWidget) {
|
||||||
delete testWidget;
|
delete testWidget;
|
||||||
testWidget = 0;
|
testWidget = 0;
|
||||||
|
@ -96,6 +96,9 @@ void tst_QToolTip::task183679_data()
|
|||||||
|
|
||||||
void tst_QToolTip::task183679()
|
void tst_QToolTip::task183679()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QFETCH(Qt::Key, key);
|
QFETCH(Qt::Key, key);
|
||||||
QFETCH(bool, visible);
|
QFETCH(bool, visible);
|
||||||
|
|
||||||
@ -200,6 +203,9 @@ static QByteArray msgSizeTooSmall(const QSize &actual, const QSize &expected)
|
|||||||
// Set a large font size and verify that the tool tip is big enough.
|
// Set a large font size and verify that the tool tip is big enough.
|
||||||
void tst_QToolTip::qtbug64550_stylesheet()
|
void tst_QToolTip::qtbug64550_stylesheet()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
Widget_task183679 widget;
|
Widget_task183679 widget;
|
||||||
widget.setStyleSheet(QStringLiteral("* { font-size: 48pt; }\n"));
|
widget.setStyleSheet(QStringLiteral("* { font-size: 48pt; }\n"));
|
||||||
widget.show();
|
widget.show();
|
||||||
|
@ -858,6 +858,9 @@ void tst_QWidget::palettePropagation()
|
|||||||
|
|
||||||
void tst_QWidget::palettePropagation2()
|
void tst_QWidget::palettePropagation2()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
// ! Note, the code below is executed in tst_QWidget's constructor.
|
// ! Note, the code below is executed in tst_QWidget's constructor.
|
||||||
// QPalette palette;
|
// QPalette palette;
|
||||||
// font.setColor(QPalette::ToolTipBase, QColor(12, 13, 14));
|
// font.setColor(QPalette::ToolTipBase, QColor(12, 13, 14));
|
||||||
@ -1018,6 +1021,9 @@ void tst_QWidget::ignoreKeyEventsWhenDisabled_QTBUG27417()
|
|||||||
|
|
||||||
void tst_QWidget::properTabHandlingWhenDisabled_QTBUG27417()
|
void tst_QWidget::properTabHandlingWhenDisabled_QTBUG27417()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QWidget widget;
|
QWidget widget;
|
||||||
widget.setWindowTitle(__FUNCTION__);
|
widget.setWindowTitle(__FUNCTION__);
|
||||||
widget.setMinimumWidth(m_testWidgetSize.width());
|
widget.setMinimumWidth(m_testWidgetSize.width());
|
||||||
@ -1679,6 +1685,9 @@ public:
|
|||||||
|
|
||||||
void tst_QWidget::defaultTabOrder()
|
void tst_QWidget::defaultTabOrder()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
const int compositeCount = 2;
|
const int compositeCount = 2;
|
||||||
Container container;
|
Container container;
|
||||||
Composite *composite[compositeCount];
|
Composite *composite[compositeCount];
|
||||||
@ -1733,6 +1742,9 @@ void tst_QWidget::defaultTabOrder()
|
|||||||
|
|
||||||
void tst_QWidget::reverseTabOrder()
|
void tst_QWidget::reverseTabOrder()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
const int compositeCount = 2;
|
const int compositeCount = 2;
|
||||||
Container container;
|
Container container;
|
||||||
container.setWindowTitle(QLatin1String(QTest::currentTestFunction()));
|
container.setWindowTitle(QLatin1String(QTest::currentTestFunction()));
|
||||||
@ -1792,6 +1804,9 @@ void tst_QWidget::reverseTabOrder()
|
|||||||
|
|
||||||
void tst_QWidget::tabOrderWithProxy()
|
void tst_QWidget::tabOrderWithProxy()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
const int compositeCount = 2;
|
const int compositeCount = 2;
|
||||||
Container container;
|
Container container;
|
||||||
container.setWindowTitle(QLatin1String(QTest::currentTestFunction()));
|
container.setWindowTitle(QLatin1String(QTest::currentTestFunction()));
|
||||||
@ -1850,6 +1865,9 @@ void tst_QWidget::tabOrderWithProxy()
|
|||||||
|
|
||||||
void tst_QWidget::tabOrderWithCompoundWidgets()
|
void tst_QWidget::tabOrderWithCompoundWidgets()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
const int compositeCount = 4;
|
const int compositeCount = 4;
|
||||||
Container container;
|
Container container;
|
||||||
container.setWindowTitle(QLatin1String(QTest::currentTestFunction()));
|
container.setWindowTitle(QLatin1String(QTest::currentTestFunction()));
|
||||||
@ -2038,6 +2056,9 @@ void tst_QWidget::tabOrderNoChange2()
|
|||||||
|
|
||||||
void tst_QWidget::appFocusWidgetWithFocusProxyLater()
|
void tst_QWidget::appFocusWidgetWithFocusProxyLater()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
// Given a lineedit without a focus proxy
|
// Given a lineedit without a focus proxy
|
||||||
QWidget window;
|
QWidget window;
|
||||||
window.setWindowTitle(QTest::currentTestFunction());
|
window.setWindowTitle(QTest::currentTestFunction());
|
||||||
@ -2062,6 +2083,9 @@ void tst_QWidget::appFocusWidgetWithFocusProxyLater()
|
|||||||
|
|
||||||
void tst_QWidget::appFocusWidgetWhenLosingFocusProxy()
|
void tst_QWidget::appFocusWidgetWhenLosingFocusProxy()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
// Given a lineedit with a focus proxy
|
// Given a lineedit with a focus proxy
|
||||||
QWidget window;
|
QWidget window;
|
||||||
window.setWindowTitle(QTest::currentTestFunction());
|
window.setWindowTitle(QTest::currentTestFunction());
|
||||||
@ -3974,6 +3998,9 @@ void tst_QWidget::optimizedResizeMove()
|
|||||||
|
|
||||||
void tst_QWidget::optimizedResize_topLevel()
|
void tst_QWidget::optimizedResize_topLevel()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
if (QHighDpiScaling::isActive())
|
if (QHighDpiScaling::isActive())
|
||||||
QSKIP("Skip due to rounding errors in the regions.");
|
QSKIP("Skip due to rounding errors in the regions.");
|
||||||
StaticWidget topLevel;
|
StaticWidget topLevel;
|
||||||
@ -4089,6 +4116,9 @@ void tst_QWidget::setMaximumSize()
|
|||||||
|
|
||||||
void tst_QWidget::setFixedSize()
|
void tst_QWidget::setFixedSize()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QWidget w;
|
QWidget w;
|
||||||
QSize defaultSize = w.size();
|
QSize defaultSize = w.size();
|
||||||
|
|
||||||
@ -5638,6 +5668,9 @@ public:
|
|||||||
|
|
||||||
void tst_QWidget::setFocus()
|
void tst_QWidget::setFocus()
|
||||||
{
|
{
|
||||||
|
if (!QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::WindowActivation))
|
||||||
|
QSKIP("Window activation is not supported");
|
||||||
|
|
||||||
QScopedPointer<QWidget> testWidget(new QWidget);
|
QScopedPointer<QWidget> testWidget(new QWidget);
|
||||||
testWidget->resize(m_testWidgetSize);
|
testWidget->resize(m_testWidgetSize);
|
||||||
testWidget->setWindowTitle(__FUNCTION__);
|
testWidget->setWindowTitle(__FUNCTION__);
|
||||||
@ -8885,6 +8918,9 @@ public:
|
|||||||
|
|
||||||
void tst_QWidget::translucentWidget()
|
void tst_QWidget::translucentWidget()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QPixmap pm(16,16);
|
QPixmap pm(16,16);
|
||||||
pm.fill(Qt::red);
|
pm.fill(Qt::red);
|
||||||
ColorRedWidget label;
|
ColorRedWidget label;
|
||||||
@ -8954,6 +8990,9 @@ public slots:
|
|||||||
|
|
||||||
void tst_QWidget::setClearAndResizeMask()
|
void tst_QWidget::setClearAndResizeMask()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
UpdateWidget topLevel;
|
UpdateWidget topLevel;
|
||||||
topLevel.setWindowTitle(QLatin1String(QTest::currentTestFunction()));
|
topLevel.setWindowTitle(QLatin1String(QTest::currentTestFunction()));
|
||||||
topLevel.resize(160, 160);
|
topLevel.resize(160, 160);
|
||||||
@ -9522,6 +9561,9 @@ void tst_QWidget::updateOnDestroyedSignal()
|
|||||||
|
|
||||||
void tst_QWidget::toplevelLineEditFocus()
|
void tst_QWidget::toplevelLineEditFocus()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QLineEdit w;
|
QLineEdit w;
|
||||||
w.setWindowTitle(QLatin1String(QTest::currentTestFunction()));
|
w.setWindowTitle(QLatin1String(QTest::currentTestFunction()));
|
||||||
w.setMinimumWidth(m_testWidgetSize.width());
|
w.setMinimumWidth(m_testWidgetSize.width());
|
||||||
@ -9974,6 +10016,9 @@ void tst_QWidget::taskQTBUG_17333_ResizeInfiniteRecursion()
|
|||||||
|
|
||||||
void tst_QWidget::nativeChildFocus()
|
void tst_QWidget::nativeChildFocus()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QWidget w;
|
QWidget w;
|
||||||
w.setWindowTitle(QLatin1String(QTest::currentTestFunction()));
|
w.setWindowTitle(QLatin1String(QTest::currentTestFunction()));
|
||||||
w.setMinimumWidth(m_testWidgetSize.width());
|
w.setMinimumWidth(m_testWidgetSize.width());
|
||||||
@ -10112,6 +10157,9 @@ private:
|
|||||||
|
|
||||||
void tst_QWidget::grabMouse()
|
void tst_QWidget::grabMouse()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QStringList log;
|
QStringList log;
|
||||||
GrabLoggerWidget w(&log);
|
GrabLoggerWidget w(&log);
|
||||||
w.setWindowTitle(QLatin1String(QTest::currentTestFunction()));
|
w.setWindowTitle(QLatin1String(QTest::currentTestFunction()));
|
||||||
@ -10147,6 +10195,9 @@ void tst_QWidget::grabMouse()
|
|||||||
|
|
||||||
void tst_QWidget::grabKeyboard()
|
void tst_QWidget::grabKeyboard()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QWidget w;
|
QWidget w;
|
||||||
w.setWindowTitle(QLatin1String(QTest::currentTestFunction()));
|
w.setWindowTitle(QLatin1String(QTest::currentTestFunction()));
|
||||||
w.setObjectName(QLatin1String("tst_qwidget_grabKeyboard"));
|
w.setObjectName(QLatin1String("tst_qwidget_grabKeyboard"));
|
||||||
|
@ -411,6 +411,9 @@ void tst_QWidget_window::tst_paintEventOnSecondShow()
|
|||||||
|
|
||||||
void tst_QWidget_window::tst_exposeObscuredMapped_QTBUG39220()
|
void tst_QWidget_window::tst_exposeObscuredMapped_QTBUG39220()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
const auto integration = QGuiApplicationPrivate::platformIntegration();
|
const auto integration = QGuiApplicationPrivate::platformIntegration();
|
||||||
if (!integration->hasCapability(QPlatformIntegration::MultipleWindows)
|
if (!integration->hasCapability(QPlatformIntegration::MultipleWindows)
|
||||||
|| !integration->hasCapability(QPlatformIntegration::NonFullScreenWindows)
|
|| !integration->hasCapability(QPlatformIntegration::NonFullScreenWindows)
|
||||||
@ -438,6 +441,9 @@ void tst_QWidget_window::tst_exposeObscuredMapped_QTBUG39220()
|
|||||||
|
|
||||||
void tst_QWidget_window::tst_paintEventOnResize_QTBUG50796()
|
void tst_QWidget_window::tst_paintEventOnResize_QTBUG50796()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
const QRect availableGeo = QGuiApplication::primaryScreen()->availableGeometry();
|
const QRect availableGeo = QGuiApplication::primaryScreen()->availableGeometry();
|
||||||
|
|
||||||
QWidget root;
|
QWidget root;
|
||||||
@ -582,6 +588,9 @@ static QString msgEventAccepted(const QDropEvent &e)
|
|||||||
|
|
||||||
void tst_QWidget_window::tst_dnd()
|
void tst_QWidget_window::tst_dnd()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QStringList log;
|
QStringList log;
|
||||||
DnDEventLoggerWidget dndTestWidget(&log);
|
DnDEventLoggerWidget dndTestWidget(&log);
|
||||||
|
|
||||||
@ -819,6 +828,9 @@ public:
|
|||||||
|
|
||||||
void tst_QWidget_window::tst_dnd_propagation()
|
void tst_QWidget_window::tst_dnd_propagation()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QMimeData mimeData;
|
QMimeData mimeData;
|
||||||
mimeData.setText(QLatin1String("testmimetext"));
|
mimeData.setText(QLatin1String("testmimetext"));
|
||||||
|
|
||||||
@ -1066,6 +1078,9 @@ protected:
|
|||||||
|
|
||||||
void tst_QWidget_window::tst_eventfilter_on_toplevel()
|
void tst_QWidget_window::tst_eventfilter_on_toplevel()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QWidget w;
|
QWidget w;
|
||||||
EventFilter filter;
|
EventFilter filter;
|
||||||
w.installEventFilter(&filter);
|
w.installEventFilter(&filter);
|
||||||
@ -1124,6 +1139,9 @@ void tst_QWidget_window::QTBUG_50561_QCocoaBackingStore_paintDevice_crash()
|
|||||||
|
|
||||||
void tst_QWidget_window::setWindowState_data()
|
void tst_QWidget_window::setWindowState_data()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QString platformName = QGuiApplication::platformName().toLower();
|
QString platformName = QGuiApplication::platformName().toLower();
|
||||||
|
|
||||||
QTest::addColumn<Qt::WindowStates>("state");
|
QTest::addColumn<Qt::WindowStates>("state");
|
||||||
|
@ -93,6 +93,9 @@ void tst_QWindowContainer::cleanup()
|
|||||||
|
|
||||||
void tst_QWindowContainer::testShow()
|
void tst_QWindowContainer::testShow()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QWidget root;
|
QWidget root;
|
||||||
root.setWindowTitle(QTest::currentTestFunction());
|
root.setWindowTitle(QTest::currentTestFunction());
|
||||||
root.setGeometry(m_availableGeometry.x() + 100, m_availableGeometry.y() + 100, 400, 400);
|
root.setGeometry(m_availableGeometry.x() + 100, m_availableGeometry.y() + 100, 400, 400);
|
||||||
@ -135,6 +138,9 @@ void tst_QWindowContainer::testPositionAndSize()
|
|||||||
|
|
||||||
void tst_QWindowContainer::testExposeObscure()
|
void tst_QWindowContainer::testExposeObscure()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
Window *window = new Window();
|
Window *window = new Window();
|
||||||
|
|
||||||
QScopedPointer<QWidget> container(QWidget::createWindowContainer(window));
|
QScopedPointer<QWidget> container(QWidget::createWindowContainer(window));
|
||||||
@ -187,6 +193,9 @@ void tst_QWindowContainer::testBehindTheScenesDeletion()
|
|||||||
|
|
||||||
void tst_QWindowContainer::testActivation()
|
void tst_QWindowContainer::testActivation()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QWidget root;
|
QWidget root;
|
||||||
root.setWindowTitle(QTest::currentTestFunction());
|
root.setWindowTitle(QTest::currentTestFunction());
|
||||||
|
|
||||||
@ -244,6 +253,9 @@ void tst_QWindowContainer::testUnparenting()
|
|||||||
|
|
||||||
void tst_QWindowContainer::testUnparentReparent()
|
void tst_QWindowContainer::testUnparentReparent()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QWidget root;
|
QWidget root;
|
||||||
|
|
||||||
QWindow *window = new QWindow();
|
QWindow *window = new QWindow();
|
||||||
@ -357,6 +369,9 @@ void tst_QWindowContainer::testDockWidget()
|
|||||||
|
|
||||||
void tst_QWindowContainer::testNativeContainerParent()
|
void tst_QWindowContainer::testNativeContainerParent()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QWidget root;
|
QWidget root;
|
||||||
root.setWindowTitle(QTest::currentTestFunction());
|
root.setWindowTitle(QTest::currentTestFunction());
|
||||||
root.setGeometry(m_availableGeometry.x() + 50, m_availableGeometry.y() + 50, 200, 200);
|
root.setGeometry(m_availableGeometry.x() + 50, m_availableGeometry.y() + 50, 200, 200);
|
||||||
|
@ -958,6 +958,9 @@ void tst_QStyleSheetStyle::focusColors()
|
|||||||
"That doesn't mean that the feature doesn't work in practice.");
|
"That doesn't mean that the feature doesn't work in practice.");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
TestDialog frame(QStringLiteral("*:focus { border:none; background: #e8ff66; color: #ff0084 }"));
|
TestDialog frame(QStringLiteral("*:focus { border:none; background: #e8ff66; color: #ff0084 }"));
|
||||||
frame.setWindowTitle(QTest::currentTestFunction());
|
frame.setWindowTitle(QTest::currentTestFunction());
|
||||||
|
|
||||||
@ -995,6 +998,9 @@ void tst_QStyleSheetStyle::hoverColors()
|
|||||||
#ifdef Q_OS_OSX
|
#ifdef Q_OS_OSX
|
||||||
QSKIP("This test is fragile on Mac, most likely due to QTBUG-33959.");
|
QSKIP("This test is fragile on Mac, most likely due to QTBUG-33959.");
|
||||||
#endif
|
#endif
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
TestDialog frame(QStringLiteral("*:hover { border:none; background: #e8ff66; color: #ff0084 }"));
|
TestDialog frame(QStringLiteral("*:hover { border:none; background: #e8ff66; color: #ff0084 }"));
|
||||||
frame.setWindowTitle(QTest::currentTestFunction());
|
frame.setWindowTitle(QTest::currentTestFunction());
|
||||||
|
|
||||||
@ -1202,6 +1208,9 @@ void tst_QStyleSheetStyle::attributesList()
|
|||||||
|
|
||||||
void tst_QStyleSheetStyle::minmaxSizes()
|
void tst_QStyleSheetStyle::minmaxSizes()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QTabWidget tabWidget;
|
QTabWidget tabWidget;
|
||||||
tabWidget.resize(m_testSize);
|
tabWidget.resize(m_testSize);
|
||||||
tabWidget.setWindowTitle(QTest::currentTestFunction());
|
tabWidget.setWindowTitle(QTest::currentTestFunction());
|
||||||
@ -1242,6 +1251,9 @@ void tst_QStyleSheetStyle::minmaxSizes()
|
|||||||
|
|
||||||
void tst_QStyleSheetStyle::task206238_twice()
|
void tst_QStyleSheetStyle::task206238_twice()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
const QColor red(Qt::red);
|
const QColor red(Qt::red);
|
||||||
QMainWindow w;
|
QMainWindow w;
|
||||||
w.resize(m_testSize);
|
w.resize(m_testSize);
|
||||||
@ -1416,6 +1428,9 @@ void ProxyStyle::drawControl(ControlElement ce, const QStyleOption *opt,
|
|||||||
|
|
||||||
void tst_QStyleSheetStyle::proxyStyle()
|
void tst_QStyleSheetStyle::proxyStyle()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
//Should not crash; task 158984
|
//Should not crash; task 158984
|
||||||
|
|
||||||
ProxyStyle *proxy = new ProxyStyle(QApplication::style());
|
ProxyStyle *proxy = new ProxyStyle(QApplication::style());
|
||||||
@ -1539,6 +1554,9 @@ private:
|
|||||||
|
|
||||||
void tst_QStyleSheetStyle::toolTip()
|
void tst_QStyleSheetStyle::toolTip()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
qApp->setStyleSheet(QString());
|
qApp->setStyleSheet(QString());
|
||||||
QWidget w;
|
QWidget w;
|
||||||
w.resize(m_testSize);
|
w.resize(m_testSize);
|
||||||
@ -1618,6 +1636,9 @@ void tst_QStyleSheetStyle::toolTip()
|
|||||||
|
|
||||||
void tst_QStyleSheetStyle::embeddedFonts()
|
void tst_QStyleSheetStyle::embeddedFonts()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
//task 235622 and 210551
|
//task 235622 and 210551
|
||||||
QSpinBox spin;
|
QSpinBox spin;
|
||||||
spin.setWindowTitle(QTest::currentTestFunction());
|
spin.setWindowTitle(QTest::currentTestFunction());
|
||||||
@ -1691,6 +1712,9 @@ void tst_QStyleSheetStyle::opaquePaintEvent()
|
|||||||
|
|
||||||
void tst_QStyleSheetStyle::complexWidgetFocus()
|
void tst_QStyleSheetStyle::complexWidgetFocus()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
// This test is a simplified version of the focusColors() test above.
|
// This test is a simplified version of the focusColors() test above.
|
||||||
|
|
||||||
// Tests if colors can be changed by altering the focus of the widget.
|
// Tests if colors can be changed by altering the focus of the widget.
|
||||||
@ -1737,6 +1761,9 @@ void tst_QStyleSheetStyle::complexWidgetFocus()
|
|||||||
|
|
||||||
void tst_QStyleSheetStyle::task188195_baseBackground()
|
void tst_QStyleSheetStyle::task188195_baseBackground()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QTreeView tree;
|
QTreeView tree;
|
||||||
tree.setWindowTitle(QTest::currentTestFunction());
|
tree.setWindowTitle(QTest::currentTestFunction());
|
||||||
tree.setStyleSheet( "QTreeView:disabled { background-color:#ab1251; }" );
|
tree.setStyleSheet( "QTreeView:disabled { background-color:#ab1251; }" );
|
||||||
@ -1772,6 +1799,9 @@ void tst_QStyleSheetStyle::task188195_baseBackground()
|
|||||||
|
|
||||||
void tst_QStyleSheetStyle::task232085_spinBoxLineEditBg()
|
void tst_QStyleSheetStyle::task232085_spinBoxLineEditBg()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
// This test is a simplified version of the focusColors() test above.
|
// This test is a simplified version of the focusColors() test above.
|
||||||
|
|
||||||
// Tests if colors can be changed by altering the focus of the widget.
|
// Tests if colors can be changed by altering the focus of the widget.
|
||||||
@ -1905,6 +1935,9 @@ void tst_QStyleSheetStyle::QTBUG15910_crashNullWidget()
|
|||||||
|
|
||||||
void tst_QStyleSheetStyle::QTBUG36933_brokenPseudoClassLookup()
|
void tst_QStyleSheetStyle::QTBUG36933_brokenPseudoClassLookup()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
const int rowCount = 10;
|
const int rowCount = 10;
|
||||||
const int columnCount = 10;
|
const int columnCount = 10;
|
||||||
|
|
||||||
|
@ -1103,6 +1103,9 @@ void tst_QCompleter::modelDeletion()
|
|||||||
|
|
||||||
void tst_QCompleter::multipleWidgets()
|
void tst_QCompleter::multipleWidgets()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QStringList list;
|
QStringList list;
|
||||||
list << "item1" << "item2" << "item2";
|
list << "item1" << "item2" << "item2";
|
||||||
QCompleter completer(list);
|
QCompleter completer(list);
|
||||||
@ -1149,6 +1152,9 @@ void tst_QCompleter::multipleWidgets()
|
|||||||
|
|
||||||
void tst_QCompleter::focusIn()
|
void tst_QCompleter::focusIn()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QCompleter completer({"item1", "item2", "item2"});
|
QCompleter completer({"item1", "item2", "item2"});
|
||||||
|
|
||||||
QWidget window;
|
QWidget window;
|
||||||
@ -1236,6 +1242,9 @@ void tst_QCompleter::disabledItems()
|
|||||||
|
|
||||||
void tst_QCompleter::task178797_activatedOnReturn()
|
void tst_QCompleter::task178797_activatedOnReturn()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QLineEdit ledit;
|
QLineEdit ledit;
|
||||||
setFrameless(&ledit);
|
setFrameless(&ledit);
|
||||||
auto completer = new QCompleter({"foobar1", "foobar2"}, &ledit);
|
auto completer = new QCompleter({"foobar1", "foobar2"}, &ledit);
|
||||||
@ -1317,6 +1326,9 @@ private slots:
|
|||||||
|
|
||||||
void tst_QCompleter::task246056_setCompletionPrefix()
|
void tst_QCompleter::task246056_setCompletionPrefix()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
task246056_ComboBox comboBox;
|
task246056_ComboBox comboBox;
|
||||||
setFrameless(&comboBox);
|
setFrameless(&comboBox);
|
||||||
QVERIFY(comboBox.completer());
|
QVERIFY(comboBox.completer());
|
||||||
@ -1385,6 +1397,9 @@ private:
|
|||||||
|
|
||||||
void tst_QCompleter::task250064_lostFocus()
|
void tst_QCompleter::task250064_lostFocus()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
task250064_Widget widget;
|
task250064_Widget widget;
|
||||||
widget.setWindowTitle(QLatin1String(QTest::currentTestFunction()));
|
widget.setWindowTitle(QLatin1String(QTest::currentTestFunction()));
|
||||||
widget.show();
|
widget.show();
|
||||||
@ -1414,6 +1429,9 @@ void tst_QCompleter::task253125_lineEditCompletion_data()
|
|||||||
|
|
||||||
void tst_QCompleter::task253125_lineEditCompletion()
|
void tst_QCompleter::task253125_lineEditCompletion()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QFETCH(QStringList, list);
|
QFETCH(QStringList, list);
|
||||||
QFETCH(QCompleter::CompletionMode, completionMode);
|
QFETCH(QCompleter::CompletionMode, completionMode);
|
||||||
|
|
||||||
@ -1572,6 +1590,9 @@ void tst_QCompleter::task253125_lineEditCompletion()
|
|||||||
|
|
||||||
void tst_QCompleter::task247560_keyboardNavigation()
|
void tst_QCompleter::task247560_keyboardNavigation()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QStandardItemModel model;
|
QStandardItemModel model;
|
||||||
|
|
||||||
for (int i = 0; i < 5; i++) {
|
for (int i = 0; i < 5; i++) {
|
||||||
@ -1682,6 +1703,9 @@ static inline bool testFileSystemReady(const QAbstractItemModel &model)
|
|||||||
|
|
||||||
void tst_QCompleter::QTBUG_14292_filesystem()
|
void tst_QCompleter::QTBUG_14292_filesystem()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
// This test tests whether the creation of subdirectories
|
// This test tests whether the creation of subdirectories
|
||||||
// does not cause completers based on file system models
|
// does not cause completers based on file system models
|
||||||
// to pop up the completion list due to file changed signals.
|
// to pop up the completion list due to file changed signals.
|
||||||
@ -1756,6 +1780,9 @@ void tst_QCompleter::QTBUG_14292_filesystem()
|
|||||||
|
|
||||||
void tst_QCompleter::QTBUG_52028_tabAutoCompletes()
|
void tst_QCompleter::QTBUG_52028_tabAutoCompletes()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QWidget w;
|
QWidget w;
|
||||||
w.setWindowTitle(QLatin1String(QTest::currentTestFunction()));
|
w.setWindowTitle(QLatin1String(QTest::currentTestFunction()));
|
||||||
w.setLayout(new QVBoxLayout);
|
w.setLayout(new QVBoxLayout);
|
||||||
@ -1798,6 +1825,9 @@ void tst_QCompleter::QTBUG_52028_tabAutoCompletes()
|
|||||||
|
|
||||||
void tst_QCompleter::QTBUG_51889_activatedSentTwice()
|
void tst_QCompleter::QTBUG_51889_activatedSentTwice()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QWidget w;
|
QWidget w;
|
||||||
w.setWindowTitle(QLatin1String(QTest::currentTestFunction()));
|
w.setWindowTitle(QLatin1String(QTest::currentTestFunction()));
|
||||||
w.setLayout(new QVBoxLayout);
|
w.setLayout(new QVBoxLayout);
|
||||||
|
@ -106,6 +106,9 @@ void tst_QSystemTrayIcon::getSetCheck()
|
|||||||
|
|
||||||
void tst_QSystemTrayIcon::supportsMessages()
|
void tst_QSystemTrayIcon::supportsMessages()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
// ### fixme: Check platforms.
|
// ### fixme: Check platforms.
|
||||||
const QString platform = QGuiApplication::platformName();
|
const QString platform = QGuiApplication::platformName();
|
||||||
if (platform.compare(QStringLiteral("xcb"), Qt::CaseInsensitive)
|
if (platform.compare(QStringLiteral("xcb"), Qt::CaseInsensitive)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
CONFIG += testcase
|
CONFIG += testcase
|
||||||
TARGET = tst_qabstractbutton
|
TARGET = tst_qabstractbutton
|
||||||
QT += widgets testlib
|
QT += widgets testlib gui-private
|
||||||
SOURCES += tst_qabstractbutton.cpp
|
SOURCES += tst_qabstractbutton.cpp
|
||||||
|
|
||||||
|
|
||||||
|
@ -39,6 +39,9 @@
|
|||||||
#include <qgridlayout.h>
|
#include <qgridlayout.h>
|
||||||
#include <qabstractbutton.h>
|
#include <qabstractbutton.h>
|
||||||
|
|
||||||
|
#include <private/qguiapplication_p.h>
|
||||||
|
#include <qpa/qplatformintegration.h>
|
||||||
|
|
||||||
class tst_QAbstractButton : public QObject
|
class tst_QAbstractButton : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
@ -470,6 +473,9 @@ void tst_QAbstractButton::toggled()
|
|||||||
|
|
||||||
void tst_QAbstractButton::setShortcut()
|
void tst_QAbstractButton::setShortcut()
|
||||||
{
|
{
|
||||||
|
if (!QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::WindowActivation))
|
||||||
|
QSKIP("Window activation is not supported");
|
||||||
|
|
||||||
QKeySequence seq( Qt::Key_A );
|
QKeySequence seq( Qt::Key_A );
|
||||||
testWidget->setShortcut( seq );
|
testWidget->setShortcut( seq );
|
||||||
QApplication::setActiveWindow(testWidget);
|
QApplication::setActiveWindow(testWidget);
|
||||||
|
@ -168,6 +168,9 @@ void tst_QAbstractSpinBox::task228728_cssselector()
|
|||||||
|
|
||||||
void tst_QAbstractSpinBox::inputMethodUpdate()
|
void tst_QAbstractSpinBox::inputMethodUpdate()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QSpinBox box;
|
QSpinBox box;
|
||||||
|
|
||||||
QSpinBox *testWidget = &box;
|
QSpinBox *testWidget = &box;
|
||||||
|
@ -89,6 +89,9 @@ void tst_QButtonGroup::arrowKeyNavigation()
|
|||||||
if (!qt_tab_all_widgets())
|
if (!qt_tab_all_widgets())
|
||||||
QSKIP("This test requires full keyboard control to be enabled.");
|
QSKIP("This test requires full keyboard control to be enabled.");
|
||||||
|
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QDialog dlg(0);
|
QDialog dlg(0);
|
||||||
QHBoxLayout layout(&dlg);
|
QHBoxLayout layout(&dlg);
|
||||||
QGroupBox g1("1", &dlg);
|
QGroupBox g1("1", &dlg);
|
||||||
|
@ -156,6 +156,9 @@ void tst_QCalendarWidget::buttonClickCheck()
|
|||||||
#ifdef Q_OS_WINRT
|
#ifdef Q_OS_WINRT
|
||||||
QSKIP("Fails on WinRT - QTBUG-68297");
|
QSKIP("Fails on WinRT - QTBUG-68297");
|
||||||
#endif
|
#endif
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QCalendarWidget object;
|
QCalendarWidget object;
|
||||||
QSize size = object.sizeHint();
|
QSize size = object.sizeHint();
|
||||||
object.setGeometry(0,0,size.width(), size.height());
|
object.setGeometry(0,0,size.width(), size.height());
|
||||||
|
@ -78,6 +78,9 @@ private:
|
|||||||
|
|
||||||
void tst_QCheckBox::initTestCase()
|
void tst_QCheckBox::initTestCase()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
// Create the test class
|
// Create the test class
|
||||||
testWidget = new QCheckBox(0);
|
testWidget = new QCheckBox(0);
|
||||||
testWidget->setObjectName("testObject");
|
testWidget->setObjectName("testObject");
|
||||||
|
@ -840,6 +840,9 @@ void tst_QComboBox::virtualAutocompletion()
|
|||||||
|
|
||||||
void tst_QComboBox::autoCompletionCaseSensitivity()
|
void tst_QComboBox::autoCompletionCaseSensitivity()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
//we have put the focus because the completer
|
//we have put the focus because the completer
|
||||||
//is only used when the widget actually has the focus
|
//is only used when the widget actually has the focus
|
||||||
TestWidget topLevel;
|
TestWidget topLevel;
|
||||||
@ -1995,6 +1998,9 @@ void tst_QComboBox::flaggedItems_data()
|
|||||||
|
|
||||||
void tst_QComboBox::flaggedItems()
|
void tst_QComboBox::flaggedItems()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QFETCH(QStringList, itemList);
|
QFETCH(QStringList, itemList);
|
||||||
QFETCH(IntList, deselectFlagList);
|
QFETCH(IntList, deselectFlagList);
|
||||||
QFETCH(IntList, disableFlagList);
|
QFETCH(IntList, disableFlagList);
|
||||||
@ -2465,6 +2471,9 @@ void tst_QComboBox::task247863_keyBoardSelection()
|
|||||||
|
|
||||||
void tst_QComboBox::task220195_keyBoardSelection2()
|
void tst_QComboBox::task220195_keyBoardSelection2()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QComboBox combo;
|
QComboBox combo;
|
||||||
setFrameless(&combo);
|
setFrameless(&combo);
|
||||||
combo.move(200, 200);
|
combo.move(200, 200);
|
||||||
@ -2751,6 +2760,9 @@ void tst_QComboBox::resetModel()
|
|||||||
|
|
||||||
void tst_QComboBox::keyBoardNavigationWithMouse()
|
void tst_QComboBox::keyBoardNavigationWithMouse()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QComboBox combo;
|
QComboBox combo;
|
||||||
combo.setEditable(false);
|
combo.setEditable(false);
|
||||||
setFrameless(&combo);
|
setFrameless(&combo);
|
||||||
@ -2798,6 +2810,9 @@ void tst_QComboBox::keyBoardNavigationWithMouse()
|
|||||||
|
|
||||||
void tst_QComboBox::task_QTBUG_1071_changingFocusEmitsActivated()
|
void tst_QComboBox::task_QTBUG_1071_changingFocusEmitsActivated()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QWidget w;
|
QWidget w;
|
||||||
w.move(200, 200);
|
w.move(200, 200);
|
||||||
QVBoxLayout layout(&w);
|
QVBoxLayout layout(&w);
|
||||||
@ -3065,6 +3080,9 @@ void tst_QComboBox::itemData()
|
|||||||
|
|
||||||
void tst_QComboBox::task_QTBUG_31146_popupCompletion()
|
void tst_QComboBox::task_QTBUG_31146_popupCompletion()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QComboBox comboBox;
|
QComboBox comboBox;
|
||||||
comboBox.setEditable(true);
|
comboBox.setEditable(true);
|
||||||
#if QT_DEPRECATED_SINCE(5, 13)
|
#if QT_DEPRECATED_SINCE(5, 13)
|
||||||
@ -3101,6 +3119,9 @@ void tst_QComboBox::task_QTBUG_31146_popupCompletion()
|
|||||||
|
|
||||||
void tst_QComboBox::task_QTBUG_41288_completerChangesCurrentIndex()
|
void tst_QComboBox::task_QTBUG_41288_completerChangesCurrentIndex()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QComboBox comboBox;
|
QComboBox comboBox;
|
||||||
comboBox.setEditable(true);
|
comboBox.setEditable(true);
|
||||||
|
|
||||||
@ -3352,6 +3373,9 @@ void tst_QComboBox::task_QTBUG_56693_itemFontFromModel()
|
|||||||
|
|
||||||
void tst_QComboBox::inputMethodUpdate()
|
void tst_QComboBox::inputMethodUpdate()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
TestWidget topLevel;
|
TestWidget topLevel;
|
||||||
topLevel.show();
|
topLevel.show();
|
||||||
QVERIFY(QTest::qWaitForWindowExposed(&topLevel));
|
QVERIFY(QTest::qWaitForWindowExposed(&topLevel));
|
||||||
@ -3406,6 +3430,9 @@ void tst_QComboBox::inputMethodUpdate()
|
|||||||
|
|
||||||
void tst_QComboBox::task_QTBUG_52027_mapCompleterIndex()
|
void tst_QComboBox::task_QTBUG_52027_mapCompleterIndex()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QStringList words;
|
QStringList words;
|
||||||
words << "" << "foobar1" << "foobar2";
|
words << "" << "foobar1" << "foobar2";
|
||||||
|
|
||||||
|
@ -110,6 +110,8 @@ void tst_QCommandLinkButton::initTestCase()
|
|||||||
testWidget->setObjectName("testWidget");
|
testWidget->setObjectName("testWidget");
|
||||||
testWidget->resize( 200, 200 );
|
testWidget->resize( 200, 200 );
|
||||||
testWidget->show();
|
testWidget->show();
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
QVERIFY(QTest::qWaitForWindowActive(testWidget));
|
QVERIFY(QTest::qWaitForWindowActive(testWidget));
|
||||||
|
|
||||||
connect( testWidget, SIGNAL(clicked()), this, SLOT(onClicked()) );
|
connect( testWidget, SIGNAL(clicked()), this, SLOT(onClicked()) );
|
||||||
|
@ -4097,6 +4097,9 @@ void tst_QDateTimeEdit::stepModifierKeys_data()
|
|||||||
|
|
||||||
void tst_QDateTimeEdit::stepModifierKeys()
|
void tst_QDateTimeEdit::stepModifierKeys()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QFETCH(QDate, startDate);
|
QFETCH(QDate, startDate);
|
||||||
QFETCH(int, stepModifier);
|
QFETCH(int, stepModifier);
|
||||||
QFETCH(QDateTimeEdit::Section, section);
|
QFETCH(QDateTimeEdit::Section, section);
|
||||||
@ -4198,6 +4201,9 @@ void tst_QDateTimeEdit::stepModifierButtons_data()
|
|||||||
|
|
||||||
void tst_QDateTimeEdit::stepModifierButtons()
|
void tst_QDateTimeEdit::stepModifierButtons()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QFETCH(QStyle::SubControl, subControl);
|
QFETCH(QStyle::SubControl, subControl);
|
||||||
QFETCH(int, stepModifier);
|
QFETCH(int, stepModifier);
|
||||||
QFETCH(Qt::KeyboardModifiers, modifiers);
|
QFETCH(Qt::KeyboardModifiers, modifiers);
|
||||||
@ -4285,6 +4291,9 @@ void tst_QDateTimeEdit::stepModifierPressAndHold_data()
|
|||||||
|
|
||||||
void tst_QDateTimeEdit::stepModifierPressAndHold()
|
void tst_QDateTimeEdit::stepModifierPressAndHold()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QFETCH(QStyle::SubControl, subControl);
|
QFETCH(QStyle::SubControl, subControl);
|
||||||
QFETCH(int, stepModifier);
|
QFETCH(int, stepModifier);
|
||||||
QFETCH(Qt::KeyboardModifiers, modifiers);
|
QFETCH(Qt::KeyboardModifiers, modifiers);
|
||||||
|
@ -828,6 +828,9 @@ void tst_QDialogButtonBox::testDefaultButton()
|
|||||||
|
|
||||||
void tst_QDialogButtonBox::task191642_default()
|
void tst_QDialogButtonBox::task191642_default()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QDialog dlg;
|
QDialog dlg;
|
||||||
QPushButton *def = new QPushButton(&dlg);
|
QPushButton *def = new QPushButton(&dlg);
|
||||||
QSignalSpy clicked(def, SIGNAL(clicked(bool)));
|
QSignalSpy clicked(def, SIGNAL(clicked(bool)));
|
||||||
|
@ -946,6 +946,9 @@ void tst_QDockWidget::task248604_infiniteResize()
|
|||||||
|
|
||||||
void tst_QDockWidget::task258459_visibilityChanged()
|
void tst_QDockWidget::task258459_visibilityChanged()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QMainWindow win;
|
QMainWindow win;
|
||||||
QDockWidget dock1, dock2;
|
QDockWidget dock1, dock2;
|
||||||
win.addDockWidget(Qt::RightDockWidgetArea, &dock1);
|
win.addDockWidget(Qt::RightDockWidgetArea, &dock1);
|
||||||
|
@ -256,6 +256,10 @@ void tst_QDoubleSpinBox::initTestCase()
|
|||||||
testFocusWidget = new QWidget(0);
|
testFocusWidget = new QWidget(0);
|
||||||
testFocusWidget->resize(200, 100);
|
testFocusWidget->resize(200, 100);
|
||||||
testFocusWidget->show();
|
testFocusWidget->show();
|
||||||
|
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QVERIFY(QTest::qWaitForWindowActive(testFocusWidget));
|
QVERIFY(QTest::qWaitForWindowActive(testFocusWidget));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,6 +35,8 @@ class tst_QFontComboBox : public QObject
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
void initTestCase();
|
||||||
|
|
||||||
void qfontcombobox_data();
|
void qfontcombobox_data();
|
||||||
void qfontcombobox();
|
void qfontcombobox();
|
||||||
void currentFont_data();
|
void currentFont_data();
|
||||||
@ -58,6 +60,12 @@ public:
|
|||||||
{ return SubQFontComboBox::event(e); }
|
{ return SubQFontComboBox::event(e); }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
void tst_QFontComboBox::initTestCase()
|
||||||
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This freezes. Figure out why.");
|
||||||
|
}
|
||||||
|
|
||||||
void tst_QFontComboBox::qfontcombobox_data()
|
void tst_QFontComboBox::qfontcombobox_data()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -159,6 +159,9 @@ void tst_QFrame::testPainting_data()
|
|||||||
|
|
||||||
void tst_QFrame::testPainting()
|
void tst_QFrame::testPainting()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QFETCH(QString, basename);
|
QFETCH(QString, basename);
|
||||||
QFETCH(int, lineWidth);
|
QFETCH(int, lineWidth);
|
||||||
QFETCH(int, midLineWidth);
|
QFETCH(int, midLineWidth);
|
||||||
|
@ -474,6 +474,9 @@ void tst_QGroupBox::childrenAreDisabled()
|
|||||||
|
|
||||||
void tst_QGroupBox::propagateFocus()
|
void tst_QGroupBox::propagateFocus()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QGroupBox box;
|
QGroupBox box;
|
||||||
QLineEdit lineEdit(&box);
|
QLineEdit lineEdit(&box);
|
||||||
box.show();
|
box.show();
|
||||||
|
@ -1490,6 +1490,9 @@ void tst_QLineEdit::undo_keypressevents()
|
|||||||
#ifndef QT_NO_CLIPBOARD
|
#ifndef QT_NO_CLIPBOARD
|
||||||
void tst_QLineEdit::QTBUG5786_undoPaste()
|
void tst_QLineEdit::QTBUG5786_undoPaste()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
if (!PlatformClipboard::isAvailable())
|
if (!PlatformClipboard::isAvailable())
|
||||||
QSKIP("this machine doesn't support the clipboard");
|
QSKIP("this machine doesn't support the clipboard");
|
||||||
QString initial("initial");
|
QString initial("initial");
|
||||||
@ -1700,6 +1703,9 @@ void tst_QLineEdit::displayText()
|
|||||||
|
|
||||||
void tst_QLineEdit::passwordEchoOnEdit()
|
void tst_QLineEdit::passwordEchoOnEdit()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QStyleOptionFrame opt;
|
QStyleOptionFrame opt;
|
||||||
QLineEdit *testWidget = ensureTestWidget();
|
QLineEdit *testWidget = ensureTestWidget();
|
||||||
QChar fillChar = testWidget->style()->styleHint(QStyle::SH_LineEdit_PasswordCharacter, &opt, testWidget);
|
QChar fillChar = testWidget->style()->styleHint(QStyle::SH_LineEdit_PasswordCharacter, &opt, testWidget);
|
||||||
@ -1734,6 +1740,9 @@ void tst_QLineEdit::passwordEchoOnEdit()
|
|||||||
|
|
||||||
void tst_QLineEdit::passwordEchoDelay()
|
void tst_QLineEdit::passwordEchoDelay()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QLineEdit *testWidget = ensureTestWidget();
|
QLineEdit *testWidget = ensureTestWidget();
|
||||||
int delay = qGuiApp->styleHints()->passwordMaskDelay();
|
int delay = qGuiApp->styleHints()->passwordMaskDelay();
|
||||||
#if defined QT_BUILD_INTERNAL
|
#if defined QT_BUILD_INTERNAL
|
||||||
@ -1917,6 +1926,9 @@ public:
|
|||||||
|
|
||||||
void tst_QLineEdit::noCursorBlinkWhenReadOnly()
|
void tst_QLineEdit::noCursorBlinkWhenReadOnly()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
int cursorFlashTime = QApplication::cursorFlashTime();
|
int cursorFlashTime = QApplication::cursorFlashTime();
|
||||||
if (cursorFlashTime == 0)
|
if (cursorFlashTime == 0)
|
||||||
return;
|
return;
|
||||||
@ -3014,6 +3026,9 @@ void tst_QLineEdit::setSelection()
|
|||||||
#ifndef QT_NO_CLIPBOARD
|
#ifndef QT_NO_CLIPBOARD
|
||||||
void tst_QLineEdit::cut()
|
void tst_QLineEdit::cut()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
if (!PlatformClipboard::isAvailable())
|
if (!PlatformClipboard::isAvailable())
|
||||||
QSKIP("Autotests run from cron and pasteboard don't get along quite ATM");
|
QSKIP("Autotests run from cron and pasteboard don't get along quite ATM");
|
||||||
|
|
||||||
@ -3079,6 +3094,9 @@ void tst_QLineEdit::cut()
|
|||||||
|
|
||||||
void tst_QLineEdit::cutWithoutSelection()
|
void tst_QLineEdit::cutWithoutSelection()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
enum { selectionLength = 1 };
|
enum { selectionLength = 1 };
|
||||||
|
|
||||||
if (QKeySequence(QKeySequence::Cut).toString() != QLatin1String("Ctrl+X"))
|
if (QKeySequence(QKeySequence::Cut).toString() != QLatin1String("Ctrl+X"))
|
||||||
@ -3265,6 +3283,9 @@ void tst_QLineEdit::readOnlyStyleOption()
|
|||||||
|
|
||||||
void tst_QLineEdit::validateOnFocusOut()
|
void tst_QLineEdit::validateOnFocusOut()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QLineEdit *testWidget = ensureTestWidget();
|
QLineEdit *testWidget = ensureTestWidget();
|
||||||
QSignalSpy editingFinishedSpy(testWidget, SIGNAL(editingFinished()));
|
QSignalSpy editingFinishedSpy(testWidget, SIGNAL(editingFinished()));
|
||||||
testWidget->setValidator(new QIntValidator(100, 999, 0));
|
testWidget->setValidator(new QIntValidator(100, 999, 0));
|
||||||
@ -3369,6 +3390,9 @@ void tst_QLineEdit::leftKeyOnSelectedText()
|
|||||||
|
|
||||||
void tst_QLineEdit::inlineCompletion()
|
void tst_QLineEdit::inlineCompletion()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QLineEdit *testWidget = ensureTestWidget();
|
QLineEdit *testWidget = ensureTestWidget();
|
||||||
testWidget->clear();
|
testWidget->clear();
|
||||||
QStandardItemModel *model = new QStandardItemModel;
|
QStandardItemModel *model = new QStandardItemModel;
|
||||||
@ -3583,6 +3607,9 @@ public:
|
|||||||
|
|
||||||
void tst_QLineEdit::task180999_focus()
|
void tst_QLineEdit::task180999_focus()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
task180999_Widget widget;
|
task180999_Widget widget;
|
||||||
|
|
||||||
widget.lineEdit1.setFocus();
|
widget.lineEdit1.setFocus();
|
||||||
@ -3602,6 +3629,9 @@ void tst_QLineEdit::task180999_focus()
|
|||||||
|
|
||||||
void tst_QLineEdit::task174640_editingFinished()
|
void tst_QLineEdit::task174640_editingFinished()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QWidget mw;
|
QWidget mw;
|
||||||
QVBoxLayout *layout = new QVBoxLayout(&mw);
|
QVBoxLayout *layout = new QVBoxLayout(&mw);
|
||||||
QLineEdit *le1 = new QLineEdit(&mw);
|
QLineEdit *le1 = new QLineEdit(&mw);
|
||||||
@ -3703,6 +3733,9 @@ void tst_QLineEdit::task198789_currentCompletion()
|
|||||||
|
|
||||||
void tst_QLineEdit::task210502_caseInsensitiveInlineCompletion()
|
void tst_QLineEdit::task210502_caseInsensitiveInlineCompletion()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QString completion("ABCD");
|
QString completion("ABCD");
|
||||||
QStringList completions;
|
QStringList completions;
|
||||||
completions << completion;
|
completions << completion;
|
||||||
@ -3800,6 +3833,9 @@ void tst_QLineEdit::task233101_cursorPosAfterInputMethod()
|
|||||||
|
|
||||||
void tst_QLineEdit::task241436_passwordEchoOnEditRestoreEchoMode()
|
void tst_QLineEdit::task241436_passwordEchoOnEditRestoreEchoMode()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QStyleOptionFrame opt;
|
QStyleOptionFrame opt;
|
||||||
QLineEdit *testWidget = ensureTestWidget();
|
QLineEdit *testWidget = ensureTestWidget();
|
||||||
QChar fillChar = testWidget->style()->styleHint(QStyle::SH_LineEdit_PasswordCharacter, &opt, testWidget);
|
QChar fillChar = testWidget->style()->styleHint(QStyle::SH_LineEdit_PasswordCharacter, &opt, testWidget);
|
||||||
@ -3847,6 +3883,9 @@ void tst_QLineEdit::task248948_redoRemovedSelection()
|
|||||||
|
|
||||||
void tst_QLineEdit::taskQTBUG_4401_enterKeyClearsPassword()
|
void tst_QLineEdit::taskQTBUG_4401_enterKeyClearsPassword()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QString password("Wanna guess?");
|
QString password("Wanna guess?");
|
||||||
|
|
||||||
QLineEdit *testWidget = ensureTestWidget();
|
QLineEdit *testWidget = ensureTestWidget();
|
||||||
@ -3922,6 +3961,9 @@ void tst_QLineEdit::taskQTBUG_7902_contextMenuCrash()
|
|||||||
|
|
||||||
void tst_QLineEdit::taskQTBUG_7395_readOnlyShortcut()
|
void tst_QLineEdit::taskQTBUG_7395_readOnlyShortcut()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
//ReadOnly QLineEdit should not intercept shortcut.
|
//ReadOnly QLineEdit should not intercept shortcut.
|
||||||
QLineEdit le;
|
QLineEdit le;
|
||||||
le.setReadOnly(true);
|
le.setReadOnly(true);
|
||||||
@ -3944,6 +3986,9 @@ void tst_QLineEdit::taskQTBUG_7395_readOnlyShortcut()
|
|||||||
|
|
||||||
void tst_QLineEdit::QTBUG697_paletteCurrentColorGroup()
|
void tst_QLineEdit::QTBUG697_paletteCurrentColorGroup()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QLineEdit le;
|
QLineEdit le;
|
||||||
le.setText(" ");
|
le.setText(" ");
|
||||||
QPalette p = le.palette();
|
QPalette p = le.palette();
|
||||||
@ -3999,6 +4044,9 @@ protected:
|
|||||||
|
|
||||||
void tst_QLineEdit::QTBUG7174_inputMaskCursorBlink()
|
void tst_QLineEdit::QTBUG7174_inputMaskCursorBlink()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
UpdateRegionLineEdit edit;
|
UpdateRegionLineEdit edit;
|
||||||
edit.setInputMask(QLatin1String("AAAA"));
|
edit.setInputMask(QLatin1String("AAAA"));
|
||||||
edit.setFocus();
|
edit.setFocus();
|
||||||
@ -4169,6 +4217,9 @@ void tst_QLineEdit::selectAndCursorPosition()
|
|||||||
|
|
||||||
void tst_QLineEdit::inputMethod()
|
void tst_QLineEdit::inputMethod()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QLineEdit *testWidget = ensureTestWidget();
|
QLineEdit *testWidget = ensureTestWidget();
|
||||||
centerOnScreen(testWidget);
|
centerOnScreen(testWidget);
|
||||||
testWidget->show();
|
testWidget->show();
|
||||||
@ -4275,6 +4326,9 @@ void tst_QLineEdit::inputMethodQueryImHints()
|
|||||||
|
|
||||||
void tst_QLineEdit::inputMethodUpdate()
|
void tst_QLineEdit::inputMethodUpdate()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QLineEdit *testWidget = ensureTestWidget();
|
QLineEdit *testWidget = ensureTestWidget();
|
||||||
|
|
||||||
centerOnScreen(testWidget);
|
centerOnScreen(testWidget);
|
||||||
@ -4389,6 +4443,9 @@ void tst_QLineEdit::undoRedoAndEchoModes()
|
|||||||
|
|
||||||
void tst_QLineEdit::clearButton()
|
void tst_QLineEdit::clearButton()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
// Construct a listview with a stringlist model and filter model.
|
// Construct a listview with a stringlist model and filter model.
|
||||||
QWidget testWidget;
|
QWidget testWidget;
|
||||||
QVBoxLayout *l = new QVBoxLayout(&testWidget);
|
QVBoxLayout *l = new QVBoxLayout(&testWidget);
|
||||||
@ -4443,6 +4500,9 @@ void tst_QLineEdit::clearButtonVisibleAfterSettingText_QTBUG_45518()
|
|||||||
#ifndef QT_BUILD_INTERNAL
|
#ifndef QT_BUILD_INTERNAL
|
||||||
QSKIP("This test requires a developer build");
|
QSKIP("This test requires a developer build");
|
||||||
#else
|
#else
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QLineEdit edit;
|
QLineEdit edit;
|
||||||
edit.setMinimumWidth(200);
|
edit.setMinimumWidth(200);
|
||||||
centerOnScreen(&edit);
|
centerOnScreen(&edit);
|
||||||
@ -4671,6 +4731,9 @@ void tst_QLineEdit::shortcutOverrideOnReadonlyLineEdit_data()
|
|||||||
|
|
||||||
void tst_QLineEdit::shortcutOverrideOnReadonlyLineEdit()
|
void tst_QLineEdit::shortcutOverrideOnReadonlyLineEdit()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QFETCH(QKeySequence, keySequence);
|
QFETCH(QKeySequence, keySequence);
|
||||||
QFETCH(bool, shouldBeHandledByQLineEdit);
|
QFETCH(bool, shouldBeHandledByQLineEdit);
|
||||||
|
|
||||||
@ -4844,6 +4907,9 @@ void tst_QLineEdit::testQuickSelectionWithMouse()
|
|||||||
|
|
||||||
void tst_QLineEdit::inputRejected()
|
void tst_QLineEdit::inputRejected()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QLineEdit *testWidget = ensureTestWidget();
|
QLineEdit *testWidget = ensureTestWidget();
|
||||||
QSignalSpy spyInputRejected(testWidget, SIGNAL(inputRejected()));
|
QSignalSpy spyInputRejected(testWidget, SIGNAL(inputRejected()));
|
||||||
|
|
||||||
|
@ -1741,6 +1741,9 @@ class MainWindow : public QMainWindow {
|
|||||||
#ifndef QT_NO_CURSOR
|
#ifndef QT_NO_CURSOR
|
||||||
void tst_QMainWindow::setCursor()
|
void tst_QMainWindow::setCursor()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
MainWindow mw;
|
MainWindow mw;
|
||||||
QCursor cur = Qt::WaitCursor;
|
QCursor cur = Qt::WaitCursor;
|
||||||
mw.setCursor(cur);
|
mw.setCursor(cur);
|
||||||
@ -1839,6 +1842,9 @@ void tst_QMainWindow::fixedSizeCentralWidget()
|
|||||||
|
|
||||||
void tst_QMainWindow::dockWidgetSize()
|
void tst_QMainWindow::dockWidgetSize()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QMainWindow mainWindow;
|
QMainWindow mainWindow;
|
||||||
mainWindow.menuBar()->addMenu("menu");
|
mainWindow.menuBar()->addMenu("menu");
|
||||||
|
|
||||||
@ -2055,6 +2061,9 @@ void tst_QMainWindow::resizeDocks()
|
|||||||
#if QT_CONFIG(dockwidget) && QT_CONFIG(tabbar)
|
#if QT_CONFIG(dockwidget) && QT_CONFIG(tabbar)
|
||||||
void tst_QMainWindow::QTBUG52175_tabifiedDockWidgetActivated()
|
void tst_QMainWindow::QTBUG52175_tabifiedDockWidgetActivated()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QMainWindow w;
|
QMainWindow w;
|
||||||
|
|
||||||
QDockWidget *dwFirst = new QDockWidget(&w);
|
QDockWidget *dwFirst = new QDockWidget(&w);
|
||||||
|
@ -448,6 +448,9 @@ bool macHasAccessToWindowsServer()
|
|||||||
|
|
||||||
void tst_QMdiArea::subWindowActivated2()
|
void tst_QMdiArea::subWindowActivated2()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QMdiArea mdiArea;
|
QMdiArea mdiArea;
|
||||||
QSignalSpy spy(&mdiArea, SIGNAL(subWindowActivated(QMdiSubWindow*)));
|
QSignalSpy spy(&mdiArea, SIGNAL(subWindowActivated(QMdiSubWindow*)));
|
||||||
for (int i = 0; i < 5; ++i)
|
for (int i = 0; i < 5; ++i)
|
||||||
@ -966,6 +969,9 @@ void tst_QMdiArea::setActiveSubWindow()
|
|||||||
|
|
||||||
void tst_QMdiArea::activeSubWindow()
|
void tst_QMdiArea::activeSubWindow()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QMainWindow mainWindow;
|
QMainWindow mainWindow;
|
||||||
|
|
||||||
QMdiArea *mdiArea = new QMdiArea;
|
QMdiArea *mdiArea = new QMdiArea;
|
||||||
@ -1398,6 +1404,9 @@ void tst_QMdiArea::subWindowList_data()
|
|||||||
}
|
}
|
||||||
void tst_QMdiArea::subWindowList()
|
void tst_QMdiArea::subWindowList()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QFETCH(QMdiArea::WindowOrder, windowOrder);
|
QFETCH(QMdiArea::WindowOrder, windowOrder);
|
||||||
QFETCH(int, windowCount);
|
QFETCH(int, windowCount);
|
||||||
QFETCH(int, activeSubWindow);
|
QFETCH(int, activeSubWindow);
|
||||||
@ -1569,6 +1578,9 @@ void tst_QMdiArea::setViewport()
|
|||||||
|
|
||||||
void tst_QMdiArea::tileSubWindows()
|
void tst_QMdiArea::tileSubWindows()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QMdiArea workspace;
|
QMdiArea workspace;
|
||||||
workspace.resize(600,480);
|
workspace.resize(600,480);
|
||||||
workspace.show();
|
workspace.show();
|
||||||
@ -2073,6 +2085,9 @@ private:
|
|||||||
|
|
||||||
void tst_QMdiArea::resizeTimer()
|
void tst_QMdiArea::resizeTimer()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QMdiArea mdiArea;
|
QMdiArea mdiArea;
|
||||||
QMdiSubWindow *subWindow = mdiArea.addSubWindow(new QWidget);
|
QMdiSubWindow *subWindow = mdiArea.addSubWindow(new QWidget);
|
||||||
mdiArea.show();
|
mdiArea.show();
|
||||||
|
@ -211,6 +211,9 @@ private slots:
|
|||||||
|
|
||||||
void tst_QMdiSubWindow::initTestCase()
|
void tst_QMdiSubWindow::initTestCase()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: Almost all of these fail. Figure out why.");
|
||||||
|
|
||||||
qRegisterMetaType<Qt::WindowStates>("Qt::WindowStates");
|
qRegisterMetaType<Qt::WindowStates>("Qt::WindowStates");
|
||||||
// Avoid unnecessary waits for empty top level widget lists when
|
// Avoid unnecessary waits for empty top level widget lists when
|
||||||
// testing menus.
|
// testing menus.
|
||||||
|
@ -338,6 +338,9 @@ inline TestMenu tst_QMenuBar::initWindowWithComplexMenuBar(QMainWindow &w)
|
|||||||
#if !defined(Q_OS_DARWIN)
|
#if !defined(Q_OS_DARWIN)
|
||||||
void tst_QMenuBar::accel()
|
void tst_QMenuBar::accel()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
// create a popup menu with menu items set the accelerators later...
|
// create a popup menu with menu items set the accelerators later...
|
||||||
QMainWindow w;
|
QMainWindow w;
|
||||||
const TestMenu menu = initWindowWithSimpleMenuBar(w);
|
const TestMenu menu = initWindowWithSimpleMenuBar(w);
|
||||||
@ -356,6 +359,9 @@ void tst_QMenuBar::accel()
|
|||||||
#if !defined(Q_OS_DARWIN)
|
#if !defined(Q_OS_DARWIN)
|
||||||
void tst_QMenuBar::activatedCount()
|
void tst_QMenuBar::activatedCount()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
// create a popup menu with menu items set the accelerators later...
|
// create a popup menu with menu items set the accelerators later...
|
||||||
QMainWindow w;
|
QMainWindow w;
|
||||||
QFETCH( bool, forceNonNative );
|
QFETCH( bool, forceNonNative );
|
||||||
@ -555,6 +561,9 @@ void tst_QMenuBar::insertItem_QString_QObject()
|
|||||||
#if !defined(Q_OS_DARWIN)
|
#if !defined(Q_OS_DARWIN)
|
||||||
void tst_QMenuBar::check_accelKeys()
|
void tst_QMenuBar::check_accelKeys()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QMainWindow w;
|
QMainWindow w;
|
||||||
initWindowWithComplexMenuBar(w);
|
initWindowWithComplexMenuBar(w);
|
||||||
w.show();
|
w.show();
|
||||||
@ -631,6 +640,9 @@ void tst_QMenuBar::check_cursorKeys1()
|
|||||||
if (qgetenv("XDG_CURRENT_DESKTOP") == "Unity")
|
if (qgetenv("XDG_CURRENT_DESKTOP") == "Unity")
|
||||||
QSKIP("This test is flaky on Ubuntu/Unity due to regression introduced by QTBUG-39362");
|
QSKIP("This test is flaky on Ubuntu/Unity due to regression introduced by QTBUG-39362");
|
||||||
|
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QMainWindow w;
|
QMainWindow w;
|
||||||
initWindowWithComplexMenuBar(w);
|
initWindowWithComplexMenuBar(w);
|
||||||
w.show();
|
w.show();
|
||||||
@ -668,6 +680,9 @@ void tst_QMenuBar::check_cursorKeys2()
|
|||||||
if (qgetenv("XDG_CURRENT_DESKTOP") == "Unity")
|
if (qgetenv("XDG_CURRENT_DESKTOP") == "Unity")
|
||||||
QSKIP("This test is flaky on Ubuntu/Unity due to regression introduced by QTBUG-39362");
|
QSKIP("This test is flaky on Ubuntu/Unity due to regression introduced by QTBUG-39362");
|
||||||
|
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QMainWindow w;
|
QMainWindow w;
|
||||||
initWindowWithComplexMenuBar(w);
|
initWindowWithComplexMenuBar(w);
|
||||||
w.show();
|
w.show();
|
||||||
@ -704,6 +719,9 @@ void tst_QMenuBar::check_cursorKeys3()
|
|||||||
if (qgetenv("XDG_CURRENT_DESKTOP") == "Unity")
|
if (qgetenv("XDG_CURRENT_DESKTOP") == "Unity")
|
||||||
QSKIP("This test is flaky on Ubuntu/Unity due to regression introduced by QTBUG-39362");
|
QSKIP("This test is flaky on Ubuntu/Unity due to regression introduced by QTBUG-39362");
|
||||||
|
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QMainWindow w;
|
QMainWindow w;
|
||||||
initWindowWithComplexMenuBar(w);
|
initWindowWithComplexMenuBar(w);
|
||||||
w.show();
|
w.show();
|
||||||
@ -733,6 +751,9 @@ void tst_QMenuBar::taskQTBUG56860_focus()
|
|||||||
#if defined(Q_OS_DARWIN)
|
#if defined(Q_OS_DARWIN)
|
||||||
QSKIP("Native key events are needed to test menu action activation on macOS.");
|
QSKIP("Native key events are needed to test menu action activation on macOS.");
|
||||||
#endif
|
#endif
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QMainWindow w;
|
QMainWindow w;
|
||||||
QMenuBar *mb = w.menuBar();
|
QMenuBar *mb = w.menuBar();
|
||||||
mb->setNativeMenuBar(false);
|
mb->setNativeMenuBar(false);
|
||||||
@ -861,6 +882,9 @@ void tst_QMenuBar::check_endKey()
|
|||||||
#if !defined(Q_OS_DARWIN)
|
#if !defined(Q_OS_DARWIN)
|
||||||
void tst_QMenuBar::check_escKey()
|
void tst_QMenuBar::check_escKey()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QMainWindow w;
|
QMainWindow w;
|
||||||
const TestMenu menu = initWindowWithComplexMenuBar(w);
|
const TestMenu menu = initWindowWithComplexMenuBar(w);
|
||||||
w.show();
|
w.show();
|
||||||
@ -1051,6 +1075,9 @@ void tst_QMenuBar::allowActiveAndDisabled()
|
|||||||
|
|
||||||
void tst_QMenuBar::check_altPress()
|
void tst_QMenuBar::check_altPress()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
if ( !qApp->style()->styleHint(QStyle::SH_MenuBar_AltKeyNavigation) ) {
|
if ( !qApp->style()->styleHint(QStyle::SH_MenuBar_AltKeyNavigation) ) {
|
||||||
QSKIP(QString( "this is not supposed to work in the %1 style. Skipping." ).
|
QSKIP(QString( "this is not supposed to work in the %1 style. Skipping." ).
|
||||||
arg(qApp->style()->objectName()).toLatin1());
|
arg(qApp->style()->objectName()).toLatin1());
|
||||||
@ -1071,6 +1098,9 @@ void tst_QMenuBar::check_altPress()
|
|||||||
// should close it and QMenuBar::activeAction() should be 0.
|
// should close it and QMenuBar::activeAction() should be 0.
|
||||||
void tst_QMenuBar::check_altClosePress()
|
void tst_QMenuBar::check_altClosePress()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
const QStyle *style = QApplication::style();
|
const QStyle *style = QApplication::style();
|
||||||
if (!style->styleHint(QStyle::SH_MenuBar_AltKeyNavigation) ) {
|
if (!style->styleHint(QStyle::SH_MenuBar_AltKeyNavigation) ) {
|
||||||
QSKIP(("This test is not supposed to work in the " + style->objectName().toLatin1()
|
QSKIP(("This test is not supposed to work in the " + style->objectName().toLatin1()
|
||||||
@ -1101,6 +1131,9 @@ void tst_QMenuBar::check_altClosePress()
|
|||||||
#if !defined(Q_OS_DARWIN)
|
#if !defined(Q_OS_DARWIN)
|
||||||
void tst_QMenuBar::check_shortcutPress()
|
void tst_QMenuBar::check_shortcutPress()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QMainWindow w;
|
QMainWindow w;
|
||||||
const TestMenu menu = initWindowWithComplexMenuBar(w);
|
const TestMenu menu = initWindowWithComplexMenuBar(w);
|
||||||
w.show();
|
w.show();
|
||||||
@ -1144,6 +1177,9 @@ private:
|
|||||||
#if !defined(Q_OS_DARWIN)
|
#if !defined(Q_OS_DARWIN)
|
||||||
void tst_QMenuBar::check_menuPosition()
|
void tst_QMenuBar::check_menuPosition()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QMainWindow w;
|
QMainWindow w;
|
||||||
|
|
||||||
Menu menu;
|
Menu menu;
|
||||||
@ -1266,6 +1302,9 @@ void tst_QMenuBar::task256322_highlight()
|
|||||||
if (!QGuiApplication::platformName().compare(QLatin1String("minimal"), Qt::CaseInsensitive))
|
if (!QGuiApplication::platformName().compare(QLatin1String("minimal"), Qt::CaseInsensitive))
|
||||||
QSKIP("Highlighting does not work correctly for minimal platform");
|
QSKIP("Highlighting does not work correctly for minimal platform");
|
||||||
|
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QMainWindow win;
|
QMainWindow win;
|
||||||
win.menuBar()->setNativeMenuBar(false); //we can't check the geometry of native menubars
|
win.menuBar()->setNativeMenuBar(false); //we can't check the geometry of native menubars
|
||||||
QMenu menu;
|
QMenu menu;
|
||||||
@ -1406,6 +1445,9 @@ void tst_QMenuBar::taskQTBUG4965_escapeEaten()
|
|||||||
|
|
||||||
void tst_QMenuBar::taskQTBUG11823_crashwithInvisibleActions()
|
void tst_QMenuBar::taskQTBUG11823_crashwithInvisibleActions()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QMenuBar menubar;
|
QMenuBar menubar;
|
||||||
menubar.setNativeMenuBar(false); //we can't check the geometry of native menubars
|
menubar.setNativeMenuBar(false); //we can't check the geometry of native menubars
|
||||||
|
|
||||||
@ -1434,6 +1476,9 @@ void tst_QMenuBar::taskQTBUG11823_crashwithInvisibleActions()
|
|||||||
|
|
||||||
void tst_QMenuBar::closeOnSecondClickAndOpenOnThirdClick() // QTBUG-32807, menu should close on 2nd click.
|
void tst_QMenuBar::closeOnSecondClickAndOpenOnThirdClick() // QTBUG-32807, menu should close on 2nd click.
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QMainWindow mainWindow;
|
QMainWindow mainWindow;
|
||||||
mainWindow.resize(300, 200);
|
mainWindow.resize(300, 200);
|
||||||
centerOnScreen(&mainWindow);
|
centerOnScreen(&mainWindow);
|
||||||
@ -1689,6 +1734,9 @@ void tst_QMenuBar::slotForTaskQTBUG53205()
|
|||||||
#if !defined(Q_OS_DARWIN)
|
#if !defined(Q_OS_DARWIN)
|
||||||
void tst_QMenuBar::taskQTBUG46812_doNotLeaveMenubarHighlighted()
|
void tst_QMenuBar::taskQTBUG46812_doNotLeaveMenubarHighlighted()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QMainWindow mainWindow;
|
QMainWindow mainWindow;
|
||||||
QWidget *centralWidget = new QWidget;
|
QWidget *centralWidget = new QWidget;
|
||||||
centralWidget->setFocusPolicy(Qt::StrongFocus);
|
centralWidget->setFocusPolicy(Qt::StrongFocus);
|
||||||
@ -1769,6 +1817,9 @@ void tst_QMenuBar::QTBUG_57404_existingMenuItemException()
|
|||||||
|
|
||||||
void tst_QMenuBar::taskQTBUG55966_subMenuRemoved()
|
void tst_QMenuBar::taskQTBUG55966_subMenuRemoved()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QMainWindow window;
|
QMainWindow window;
|
||||||
QMenuBar *menubar = window.menuBar();
|
QMenuBar *menubar = window.menuBar();
|
||||||
QMenu *parentMenu = menubar->addMenu("Parent menu");
|
QMenu *parentMenu = menubar->addMenu("Parent menu");
|
||||||
|
@ -388,6 +388,9 @@ public:
|
|||||||
|
|
||||||
void tst_QOpenGLWidget::requestUpdate()
|
void tst_QOpenGLWidget::requestUpdate()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
PaintCountWidget w;
|
PaintCountWidget w;
|
||||||
w.resize(640, 480);
|
w.resize(640, 480);
|
||||||
w.show();
|
w.show();
|
||||||
@ -580,6 +583,9 @@ void tst_QOpenGLWidget::stackWidgetOpaqueChildIsVisible()
|
|||||||
QSKIP("QScreen::grabWindow() doesn't work properly on OSX HighDPI screen: QTBUG-46803");
|
QSKIP("QScreen::grabWindow() doesn't work properly on OSX HighDPI screen: QTBUG-46803");
|
||||||
return;
|
return;
|
||||||
#endif
|
#endif
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
|
|
||||||
QStackedWidget stack;
|
QStackedWidget stack;
|
||||||
|
|
||||||
|
@ -284,6 +284,10 @@ void tst_QPlainTextEdit::clearMustNotChangeClipboard()
|
|||||||
{
|
{
|
||||||
if (!PlatformClipboard::isAvailable())
|
if (!PlatformClipboard::isAvailable())
|
||||||
QSKIP("Clipboard not working with cron-started unit tests");
|
QSKIP("Clipboard not working with cron-started unit tests");
|
||||||
|
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
ed->textCursor().insertText("Hello World");
|
ed->textCursor().insertText("Hello World");
|
||||||
QString txt("This is different text");
|
QString txt("This is different text");
|
||||||
QApplication::clipboard()->setText(txt);
|
QApplication::clipboard()->setText(txt);
|
||||||
@ -462,6 +466,9 @@ void tst_QPlainTextEdit::undoAvailableAfterPaste()
|
|||||||
if (!PlatformClipboard::isAvailable())
|
if (!PlatformClipboard::isAvailable())
|
||||||
QSKIP("Clipboard not working with cron-started unit tests");
|
QSKIP("Clipboard not working with cron-started unit tests");
|
||||||
|
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QSignalSpy spy(ed->document(), SIGNAL(undoAvailable(bool)));
|
QSignalSpy spy(ed->document(), SIGNAL(undoAvailable(bool)));
|
||||||
|
|
||||||
const QString txt("Test");
|
const QString txt("Test");
|
||||||
@ -655,6 +662,9 @@ void tst_QPlainTextEdit::copyAndSelectAllInReadonly()
|
|||||||
if (!PlatformClipboard::isAvailable())
|
if (!PlatformClipboard::isAvailable())
|
||||||
QSKIP("Clipboard not working with cron-started unit tests");
|
QSKIP("Clipboard not working with cron-started unit tests");
|
||||||
|
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
ed->setReadOnly(true);
|
ed->setReadOnly(true);
|
||||||
ed->setPlainText("Hello World");
|
ed->setPlainText("Hello World");
|
||||||
|
|
||||||
@ -1203,6 +1213,9 @@ void tst_QPlainTextEdit::canPaste()
|
|||||||
if (!PlatformClipboard::isAvailable())
|
if (!PlatformClipboard::isAvailable())
|
||||||
QSKIP("Clipboard not working with cron-started unit tests");
|
QSKIP("Clipboard not working with cron-started unit tests");
|
||||||
|
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QApplication::clipboard()->setText(QString());
|
QApplication::clipboard()->setText(QString());
|
||||||
QVERIFY(!ed->canPaste());
|
QVERIFY(!ed->canPaste());
|
||||||
QApplication::clipboard()->setText("Test");
|
QApplication::clipboard()->setText("Test");
|
||||||
|
@ -239,6 +239,9 @@ void tst_QProgressBar::setValueRepaint()
|
|||||||
#ifndef Q_OS_MAC
|
#ifndef Q_OS_MAC
|
||||||
void tst_QProgressBar::setMinMaxRepaint()
|
void tst_QProgressBar::setMinMaxRepaint()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
ProgressBar pbar;
|
ProgressBar pbar;
|
||||||
pbar.setMinimum(0);
|
pbar.setMinimum(0);
|
||||||
pbar.setMaximum(10);
|
pbar.setMaximum(10);
|
||||||
|
@ -325,6 +325,9 @@ void tst_QPushButton::toggled()
|
|||||||
|
|
||||||
void tst_QPushButton::setAccel()
|
void tst_QPushButton::setAccel()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
testWidget->setText("&AccelTest");
|
testWidget->setText("&AccelTest");
|
||||||
QKeySequence seq( Qt::ALT + Qt::Key_A );
|
QKeySequence seq( Qt::ALT + Qt::Key_A );
|
||||||
testWidget->setShortcut( seq );
|
testWidget->setShortcut( seq );
|
||||||
|
@ -52,6 +52,9 @@ private:
|
|||||||
|
|
||||||
void tst_QRadioButton::task190739_focus()
|
void tst_QRadioButton::task190739_focus()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QWidget widget;
|
QWidget widget;
|
||||||
QPushButton button1(&widget);
|
QPushButton button1(&widget);
|
||||||
button1.setText("button1");
|
button1.setText("button1");
|
||||||
|
@ -906,6 +906,9 @@ void tst_QSpinBox::locale()
|
|||||||
|
|
||||||
void tst_QSpinBox::editingFinished()
|
void tst_QSpinBox::editingFinished()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QWidget testFocusWidget;
|
QWidget testFocusWidget;
|
||||||
testFocusWidget.setObjectName(QLatin1String("tst_qspinbox"));
|
testFocusWidget.setObjectName(QLatin1String("tst_qspinbox"));
|
||||||
testFocusWidget.setWindowTitle(objectName());
|
testFocusWidget.setWindowTitle(objectName());
|
||||||
@ -1075,6 +1078,9 @@ void tst_QSpinBox::undoRedo()
|
|||||||
|
|
||||||
void tst_QSpinBox::specialValue()
|
void tst_QSpinBox::specialValue()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QString specialText="foo";
|
QString specialText="foo";
|
||||||
|
|
||||||
QWidget topWidget;
|
QWidget topWidget;
|
||||||
@ -1167,6 +1173,9 @@ void tst_QSpinBox::sizeHint()
|
|||||||
|
|
||||||
void tst_QSpinBox::taskQTBUG_5008_textFromValueAndValidate()
|
void tst_QSpinBox::taskQTBUG_5008_textFromValueAndValidate()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
class DecoratedSpinBox : public QSpinBox
|
class DecoratedSpinBox : public QSpinBox
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -1245,6 +1254,9 @@ void tst_QSpinBox::lineEditReturnPressed()
|
|||||||
|
|
||||||
void tst_QSpinBox::positiveSign()
|
void tst_QSpinBox::positiveSign()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QSpinBox spinBox;
|
QSpinBox spinBox;
|
||||||
spinBox.setRange(-20, 20);
|
spinBox.setRange(-20, 20);
|
||||||
spinBox.setValue(-20);
|
spinBox.setValue(-20);
|
||||||
@ -1260,6 +1272,9 @@ void tst_QSpinBox::positiveSign()
|
|||||||
|
|
||||||
void tst_QSpinBox::interpretOnLosingFocus()
|
void tst_QSpinBox::interpretOnLosingFocus()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
// QTBUG-55249: When typing an invalid value after QSpinBox::clear(),
|
// QTBUG-55249: When typing an invalid value after QSpinBox::clear(),
|
||||||
// it should be fixed up on losing focus.
|
// it should be fixed up on losing focus.
|
||||||
|
|
||||||
@ -1614,6 +1629,9 @@ void tst_QSpinBox::stepModifierKeys_data()
|
|||||||
|
|
||||||
void tst_QSpinBox::stepModifierKeys()
|
void tst_QSpinBox::stepModifierKeys()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QFETCH(int, startValue);
|
QFETCH(int, startValue);
|
||||||
QFETCH(int, stepModifier);
|
QFETCH(int, stepModifier);
|
||||||
QFETCH(QTestEventList, keys);
|
QFETCH(QTestEventList, keys);
|
||||||
@ -1697,6 +1715,9 @@ void tst_QSpinBox::stepModifierButtons_data()
|
|||||||
|
|
||||||
void tst_QSpinBox::stepModifierButtons()
|
void tst_QSpinBox::stepModifierButtons()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QFETCH(QStyle::SubControl, subControl);
|
QFETCH(QStyle::SubControl, subControl);
|
||||||
QFETCH(int, stepModifier);
|
QFETCH(int, stepModifier);
|
||||||
QFETCH(Qt::KeyboardModifiers, modifiers);
|
QFETCH(Qt::KeyboardModifiers, modifiers);
|
||||||
@ -1782,6 +1803,9 @@ void tst_QSpinBox::stepModifierPressAndHold_data()
|
|||||||
|
|
||||||
void tst_QSpinBox::stepModifierPressAndHold()
|
void tst_QSpinBox::stepModifierPressAndHold()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QFETCH(QStyle::SubControl, subControl);
|
QFETCH(QStyle::SubControl, subControl);
|
||||||
QFETCH(int, stepModifier);
|
QFETCH(int, stepModifier);
|
||||||
QFETCH(Qt::KeyboardModifiers, modifiers);
|
QFETCH(Qt::KeyboardModifiers, modifiers);
|
||||||
|
@ -278,6 +278,9 @@ void tst_QSplitter::saveAndRestoreState()
|
|||||||
|
|
||||||
void tst_QSplitter::saveAndRestoreStateOfNotYetShownSplitter()
|
void tst_QSplitter::saveAndRestoreStateOfNotYetShownSplitter()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QSplitter *spl = new QSplitter;
|
QSplitter *spl = new QSplitter;
|
||||||
QLabel *l1 = new QLabel;
|
QLabel *l1 = new QLabel;
|
||||||
QLabel *l2 = new QLabel;
|
QLabel *l2 = new QLabel;
|
||||||
@ -590,6 +593,9 @@ void tst_QSplitter::testShowHide_data()
|
|||||||
|
|
||||||
void tst_QSplitter::testShowHide()
|
void tst_QSplitter::testShowHide()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QFETCH(bool, hideWidget1);
|
QFETCH(bool, hideWidget1);
|
||||||
QFETCH(bool, hideWidget2);
|
QFETCH(bool, hideWidget2);
|
||||||
|
|
||||||
@ -716,6 +722,9 @@ void tst_QSplitter::replaceWidget_data()
|
|||||||
|
|
||||||
void tst_QSplitter::replaceWidget()
|
void tst_QSplitter::replaceWidget()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QFETCH(int, index);
|
QFETCH(int, index);
|
||||||
QFETCH(bool, visible);
|
QFETCH(bool, visible);
|
||||||
QFETCH(bool, collapsed);
|
QFETCH(bool, collapsed);
|
||||||
@ -962,6 +971,9 @@ class MyTextEdit : public QTextEdit
|
|||||||
|
|
||||||
void tst_QSplitter::task169702_sizes()
|
void tst_QSplitter::task169702_sizes()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QWidget topLevel;
|
QWidget topLevel;
|
||||||
// Create two nested (non-collapsible) splitters
|
// Create two nested (non-collapsible) splitters
|
||||||
QSplitter* outerSplitter = new QSplitter(Qt::Vertical, &topLevel);
|
QSplitter* outerSplitter = new QSplitter(Qt::Vertical, &topLevel);
|
||||||
|
@ -163,6 +163,9 @@ private:
|
|||||||
|
|
||||||
void tst_QStackedWidget::dynamicPages()
|
void tst_QStackedWidget::dynamicPages()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QStackedWidget stackedWidget;
|
QStackedWidget stackedWidget;
|
||||||
QStackedWidget *sw = &stackedWidget;
|
QStackedWidget *sw = &stackedWidget;
|
||||||
|
|
||||||
|
@ -132,6 +132,9 @@ void tst_QStatusBar::insertPermanentWidget()
|
|||||||
|
|
||||||
void tst_QStatusBar::setSizeGripEnabled()
|
void tst_QStatusBar::setSizeGripEnabled()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QMainWindow mainWindow;
|
QMainWindow mainWindow;
|
||||||
QPointer<QStatusBar> statusBar = mainWindow.statusBar();
|
QPointer<QStatusBar> statusBar = mainWindow.statusBar();
|
||||||
QVERIFY(statusBar);
|
QVERIFY(statusBar);
|
||||||
@ -223,6 +226,9 @@ void tst_QStatusBar::task194017_hiddenWidget()
|
|||||||
|
|
||||||
void tst_QStatusBar::QTBUG4334_hiddenOnMaximizedWindow()
|
void tst_QStatusBar::QTBUG4334_hiddenOnMaximizedWindow()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QMainWindow main;
|
QMainWindow main;
|
||||||
QStatusBar statusbar;
|
QStatusBar statusbar;
|
||||||
statusbar.setSizeGripEnabled(true);
|
statusbar.setSizeGripEnabled(true);
|
||||||
|
@ -536,6 +536,9 @@ protected:
|
|||||||
|
|
||||||
void tst_QTabWidget::paintEventCount()
|
void tst_QTabWidget::paintEventCount()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
Q_CHECK_PAINTEVENTS
|
Q_CHECK_PAINTEVENTS
|
||||||
|
|
||||||
PaintCounter *tab1 = new PaintCounter;
|
PaintCounter *tab1 = new PaintCounter;
|
||||||
|
@ -70,6 +70,7 @@ class tst_QTextBrowser : public QObject
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
void initTestCase();
|
||||||
void init();
|
void init();
|
||||||
void cleanup();
|
void cleanup();
|
||||||
|
|
||||||
@ -101,6 +102,12 @@ private:
|
|||||||
TestBrowser *browser;
|
TestBrowser *browser;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
void tst_QTextBrowser::initTestCase()
|
||||||
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
}
|
||||||
|
|
||||||
void tst_QTextBrowser::init()
|
void tst_QTextBrowser::init()
|
||||||
{
|
{
|
||||||
QString prefix = QFileInfo(QFINDTESTDATA("subdir")).absolutePath();
|
QString prefix = QFileInfo(QFINDTESTDATA("subdir")).absolutePath();
|
||||||
|
@ -500,6 +500,10 @@ void tst_QTextEdit::clearMustNotChangeClipboard()
|
|||||||
{
|
{
|
||||||
if (!PlatformClipboard::isAvailable())
|
if (!PlatformClipboard::isAvailable())
|
||||||
QSKIP("Clipboard not working with cron-started unit tests");
|
QSKIP("Clipboard not working with cron-started unit tests");
|
||||||
|
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
ed->textCursor().insertText("Hello World");
|
ed->textCursor().insertText("Hello World");
|
||||||
QString txt("This is different text");
|
QString txt("This is different text");
|
||||||
QApplication::clipboard()->setText(txt);
|
QApplication::clipboard()->setText(txt);
|
||||||
@ -790,6 +794,9 @@ void tst_QTextEdit::undoAvailableAfterPaste()
|
|||||||
if (!PlatformClipboard::isAvailable())
|
if (!PlatformClipboard::isAvailable())
|
||||||
QSKIP("Clipboard not working with cron-started unit tests");
|
QSKIP("Clipboard not working with cron-started unit tests");
|
||||||
|
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QSignalSpy spy(ed->document(), SIGNAL(undoAvailable(bool)));
|
QSignalSpy spy(ed->document(), SIGNAL(undoAvailable(bool)));
|
||||||
|
|
||||||
const QString txt("Test");
|
const QString txt("Test");
|
||||||
@ -1012,6 +1019,9 @@ void tst_QTextEdit::copyAndSelectAllInReadonly()
|
|||||||
if (!PlatformClipboard::isAvailable())
|
if (!PlatformClipboard::isAvailable())
|
||||||
QSKIP("Clipboard not working with cron-started unit tests");
|
QSKIP("Clipboard not working with cron-started unit tests");
|
||||||
|
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
ed->setReadOnly(true);
|
ed->setReadOnly(true);
|
||||||
ed->setPlainText("Hello World");
|
ed->setPlainText("Hello World");
|
||||||
|
|
||||||
@ -1559,6 +1569,9 @@ void tst_QTextEdit::canPaste()
|
|||||||
if (!PlatformClipboard::isAvailable())
|
if (!PlatformClipboard::isAvailable())
|
||||||
QSKIP("Clipboard not working with cron-started unit tests");
|
QSKIP("Clipboard not working with cron-started unit tests");
|
||||||
|
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QApplication::clipboard()->setText(QString());
|
QApplication::clipboard()->setText(QString());
|
||||||
QVERIFY(!ed->canPaste());
|
QVERIFY(!ed->canPaste());
|
||||||
QApplication::clipboard()->setText("Test");
|
QApplication::clipboard()->setText("Test");
|
||||||
@ -1864,6 +1877,9 @@ void tst_QTextEdit::copyPasteBackgroundImage()
|
|||||||
if (!PlatformClipboard::isAvailable())
|
if (!PlatformClipboard::isAvailable())
|
||||||
QSKIP("Native clipboard not working in this setup");
|
QSKIP("Native clipboard not working in this setup");
|
||||||
|
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QImage foo(16, 16, QImage::Format_ARGB32_Premultiplied);
|
QImage foo(16, 16, QImage::Format_ARGB32_Premultiplied);
|
||||||
foo.save("foo.png");
|
foo.save("foo.png");
|
||||||
ed->setHtml("<body><table><tr><td background=\"foo.png\">Foo</td></tr></table></body>");
|
ed->setHtml("<body><table><tr><td background=\"foo.png\">Foo</td></tr></table></body>");
|
||||||
@ -2440,6 +2456,9 @@ void tst_QTextEdit::bidiLogicalMovement()
|
|||||||
|
|
||||||
void tst_QTextEdit::inputMethodEvent()
|
void tst_QTextEdit::inputMethodEvent()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
ed->show();
|
ed->show();
|
||||||
|
|
||||||
// test that text change with an input method event triggers change signal
|
// test that text change with an input method event triggers change signal
|
||||||
@ -2543,6 +2562,9 @@ void tst_QTextEdit::inputMethodCursorRect()
|
|||||||
|
|
||||||
void tst_QTextEdit::highlightLongLine()
|
void tst_QTextEdit::highlightLongLine()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QTextEdit edit;
|
QTextEdit edit;
|
||||||
edit.setAcceptRichText(false);
|
edit.setAcceptRichText(false);
|
||||||
edit.setWordWrapMode(QTextOption::NoWrap);
|
edit.setWordWrapMode(QTextOption::NoWrap);
|
||||||
|
@ -1029,6 +1029,9 @@ QT_END_NAMESPACE
|
|||||||
|
|
||||||
void tst_QToolBar::accel()
|
void tst_QToolBar::accel()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
#ifdef Q_OS_MAC
|
#ifdef Q_OS_MAC
|
||||||
qt_set_sequence_auto_mnemonic(true);
|
qt_set_sequence_auto_mnemonic(true);
|
||||||
#endif
|
#endif
|
||||||
@ -1071,6 +1074,9 @@ void tst_QToolBar::task191727_layout()
|
|||||||
|
|
||||||
void tst_QToolBar::task197996_visibility()
|
void tst_QToolBar::task197996_visibility()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QMainWindow mw;
|
QMainWindow mw;
|
||||||
QToolBar *toolBar = new QToolBar(&mw);
|
QToolBar *toolBar = new QToolBar(&mw);
|
||||||
|
|
||||||
@ -1129,6 +1135,9 @@ private:
|
|||||||
|
|
||||||
void tst_QToolBar::extraCpuConsumption()
|
void tst_QToolBar::extraCpuConsumption()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QMainWindow mainWindow;
|
QMainWindow mainWindow;
|
||||||
|
|
||||||
auto tb = new QToolBar(&mainWindow);
|
auto tb = new QToolBar(&mainWindow);
|
||||||
|
@ -110,6 +110,9 @@ void tst_QToolButton::getSetCheck()
|
|||||||
|
|
||||||
void tst_QToolButton::triggered()
|
void tst_QToolButton::triggered()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
qRegisterMetaType<QAction *>("QAction *");
|
qRegisterMetaType<QAction *>("QAction *");
|
||||||
QWidget mainWidget;
|
QWidget mainWidget;
|
||||||
mainWidget.setWindowTitle(QStringLiteral("triggered"));
|
mainWidget.setWindowTitle(QStringLiteral("triggered"));
|
||||||
@ -193,6 +196,9 @@ void tst_QToolButton::task230994_iconSize()
|
|||||||
|
|
||||||
void tst_QToolButton::task176137_autoRepeatOfAction()
|
void tst_QToolButton::task176137_autoRepeatOfAction()
|
||||||
{
|
{
|
||||||
|
if (QGuiApplication::platformName().startsWith(QLatin1String("wayland"), Qt::CaseInsensitive))
|
||||||
|
QSKIP("Wayland: This fails. Figure out why.");
|
||||||
|
|
||||||
QAction action(0);
|
QAction action(0);
|
||||||
QWidget mainWidget;
|
QWidget mainWidget;
|
||||||
mainWidget.setWindowTitle(QStringLiteral("task176137_autoRepeatOfAction"));
|
mainWidget.setWindowTitle(QStringLiteral("task176137_autoRepeatOfAction"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user