Skip to content

Commit

Permalink
testlib: add QAbstractItemModelTester::verify()
Browse files Browse the repository at this point in the history
This amends b3e4be2.

When building testlib with QtGui linked:(use "QT = core-private gui"
in src/testlib/testlib.pro)

    Undefined symbols for architecture x86_64:
      "QAbstractItemModelTester::verify(bool, char const*, char const*, char const*, int)", referenced from:
          QTestPrivate::testDataGuiRoles(QAbstractItemModelTester*) in qabstractitemmodeltester.o

Change-Id: Ideb10ddd6717fed8d9f91f75bbfc9d5a22104730
Reviewed-by: Giuseppe D'Angelo <[email protected]>
  • Loading branch information
liangqi committed Mar 30, 2020
1 parent 2e0c29a commit 22fe293
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/testlib/qabstractitemmodeltester.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,12 @@ QAbstractItemModelTester::FailureReportingMode QAbstractItemModelTester::failure
return d->failureReportingMode;
}

bool QAbstractItemModelTester::verify(bool statement, const char *statementStr, const char *description, const char *file, int line)
{
Q_D(QAbstractItemModelTester);
return d->verify(statement, statementStr, description, file, line);
}

QAbstractItemModelTesterPrivate::QAbstractItemModelTesterPrivate(QAbstractItemModel *model, QAbstractItemModelTester::FailureReportingMode failureReportingMode)
: model(model),
failureReportingMode(failureReportingMode),
Expand Down

0 comments on commit 22fe293

Please sign in to comment.