Changeset View
Changeset View
Standalone View
Standalone View
kcmkwin/kwincompositing/test/modeltest.cpp
Show All 34 Lines | |||||
35 | ** met: http://www.gnu.org/copyleft/gpl.html. | 35 | ** met: http://www.gnu.org/copyleft/gpl.html. | ||
36 | ** | 36 | ** | ||
37 | ** | 37 | ** | ||
38 | ** $QT_END_LICENSE$ | 38 | ** $QT_END_LICENSE$ | ||
39 | ** | 39 | ** | ||
40 | ****************************************************************************/ | 40 | ****************************************************************************/ | ||
41 | 41 | | |||
42 | 42 | | |||
43 | #include <QtGui/QtGui> | 43 | #include <QtGui> | ||
44 | 44 | | |||
45 | #include "modeltest.h" | 45 | #include "modeltest.h" | ||
46 | 46 | | |||
47 | #include <QtTest/QtTest> | 47 | #include <QtTest> | ||
48 | 48 | | |||
49 | /*! | 49 | /*! | ||
50 | Connect to all of the models signals. Whenever anything happens recheck everything. | 50 | Connect to all of the models signals. Whenever anything happens recheck everything. | ||
51 | */ | 51 | */ | ||
52 | ModelTest::ModelTest ( QAbstractItemModel *_model, QObject *parent ) : QObject ( parent ), model ( _model ), fetchingMore ( false ) | 52 | ModelTest::ModelTest ( QAbstractItemModel *_model, QObject *parent ) : QObject ( parent ), model ( _model ), fetchingMore ( false ) | ||
53 | { | 53 | { | ||
54 | if (!model) | 54 | if (!model) | ||
55 | qFatal("%s: model must not be null", Q_FUNC_INFO); | 55 | qFatal("%s: model must not be null", Q_FUNC_INFO); | ||
▲ Show 20 Lines • Show All 545 Lines • Show Last 20 Lines |