Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
tst_qmltc_examples.cpp File Reference

(361b601620073351013b516e9f7cf9f5173b9ce7)

#include <QtTest/qtest.h>
#include <QtCore/qstring.h>
#include <QtCore/qtimer.h>
#include <QtGui/qguiapplication.h>
#include <QtQuick/qquickwindow.h>
#include <QtQml/qqmlcomponent.h>
#include "myapp.h"
#include <algorithm>
#include "tst_qmltc_examples.moc"
+ Include dependency graph for tst_qmltc_examples.cpp:

Go to the source code of this file.

Classes

class  tst_qmltc_examples
 [qqmlcomponent-include] More...
 

Macros

#define CREATE_DUMMY_ARGC_ARGV()
 

Functions

template<typename Predicate >
void readFileContent (QStringList *content, const QString &url, Predicate filter)
 

Macro Definition Documentation

◆ CREATE_DUMMY_ARGC_ARGV

#define CREATE_DUMMY_ARGC_ARGV ( )
Value:
int argc = 1; \
char *argv[] = { const_cast<char *>("tst_qmltc_examples") };

Definition at line 41 of file tst_qmltc_examples.cpp.

Function Documentation

◆ readFileContent()

template<typename Predicate >
void readFileContent ( QStringList * content,
const QString & url,
Predicate filter )

Definition at line 119 of file tst_qmltc_examples.cpp.

References QFile::exists(), file, line, QFile::open(), QVERIFY, QIODeviceBase::ReadOnly, QIODeviceBase::Text, and url.

+ Here is the call graph for this function: