return left.index == right.index
&& left.count == right.count
&& left.to == right.to
- && ((left.moveId == -1 && right.moveId == -1) || left.moveId != -1 && right.moveId != -1);
+ && ((left.moveId == -1 && right.moveId == -1) || (left.moveId != -1 && right.moveId != -1));
}
class CompletionRegisteringType : public QObject, public QDeclarativeParserStatus
{
-Q_OBJECT
+ Q_OBJECT
+ Q_INTERFACES(QDeclarativeParserStatus)
public:
CompletionRegisteringType();
class CompletionCallbackType : public QObject, public QDeclarativeParserStatus
{
-Q_OBJECT
+ Q_OBJECT
+ Q_INTERFACES(QDeclarativeParserStatus)
public:
CompletionCallbackType();
QDeclarativeComponent *component;
MyIncubator *incubator;
QDeclarativeContext *ctxt;
- static void callback(CompletionCallbackType *o, void *data) {
+ static void callback(CompletionCallbackType *, void *data) {
CallbackData *d = (CallbackData *)data;
d->component->create(*d->incubator, 0, d->ctxt);
}
class MyParserStatus : public QObject, public QDeclarativeParserStatus
{
+ Q_INTERFACES(QDeclarativeParserStatus)
Q_OBJECT
public:
MyParserStatus() : m_cbc(0), m_ccc(0) {}
class BarPluginType : public QObject
{
Q_OBJECT
- Q_PROPERTY(int value READ value);
+ Q_PROPERTY(int value READ value)
public:
int value() const { return 16; }
void tst_QJSEngine::newRegExp()
{
- QSKIP("Test failing - QTBUG-22238", SkipAll);
+ QSKIP("Test failing - QTBUG-22238");
QJSEngine eng;
for (int x = 0; x < 2; ++x) {
QJSValue rexp;
void tst_QJSEngine::jsRegExp()
{
- QSKIP("Test failing - QTBUG-22238", SkipAll);
+ QSKIP("Test failing - QTBUG-22238");
// See ECMA-262 Section 15.10, "RegExp Objects".
// These should really be JS-only tests, as they test the implementation's
void tst_QJSEngine::globalObjectProperties()
{
- QSKIP("Test failing - QTBUG-22238", SkipAll);
+ QSKIP("Test failing - QTBUG-22238");
// See ECMA-262 Section 15.1, "The Global Object".
QJSEngine eng;
void tst_QJSEngine::globalObjectProperties_enumerate()
{
- QSKIP("Test failing - QTBUG-22238", SkipAll);
+ QSKIP("Test failing - QTBUG-22238");
QJSEngine eng;
QJSValue global = eng.globalObject();
public QStandardItem,
public QGraphicsItem
{
+ Q_INTERFACES(QGraphicsItem)
Q_OBJECT
public:
Klazz(QWidget *parent = 0) : QWidget(parent) { }
void tst_QJSEngine::qRegExpInport()
{
- QSKIP("Test failing - QTBUG-22238", SkipAll);
+ QSKIP("Test failing - QTBUG-22238");
QFETCH(QRegExp, rx);
QFETCH(QString, string);
event->accept();
}
- virtual void mousePressEvent(QMouseEvent *event) {
+ virtual void mousePressEvent(QMouseEvent *) {
mousePressId = ++mousePressNum;
}
p_e.setTransform(transform);
p_e.drawTiledPixmap(QRect(0, 0, width, height), srcPixmap);
break;
+ case QQuickImage::Pad:
+ break;
}
QImage img = expected.toImage();
}
template <class T>
-void tst_QQuickListView::removed(bool animated)
+void tst_QQuickListView::removed(bool /* animated */)
{
QQuickView *canvas = createView();
TestModel model;
- canvas->rootContext()->setContextProperty("setCurrentToZero", false);
+ canvas->rootContext()->setContextProperty("setCurrentToZero", QVariant(false));
canvas->setSource(QUrl::fromLocalFile(TESTDATA("fillModelOnComponentCompleted.qml")));
qApp->processEvents();
Q_OBJECT
public:
- SingleRoleModel(const QByteArray &role = "name", QObject *parent = 0) {
+ SingleRoleModel(const QByteArray &role = "name", QObject * /* parent */ = 0) {
QHash<int, QByteArray> roles;
roles.insert(Qt::DisplayRole , role);
setRoleNames(roles);
}
protected:
- int rowCount(const QModelIndex &parent = QModelIndex()) const {
+ int rowCount(const QModelIndex & /* parent */ = QModelIndex()) const {
return list.count();
}
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const {