equal
deleted
inserted
replaced
37 ** |
37 ** |
38 ** $QT_END_LICENSE$ |
38 ** $QT_END_LICENSE$ |
39 ** |
39 ** |
40 ****************************************************************************/ |
40 ****************************************************************************/ |
41 |
41 |
|
42 #include <QApplication> |
42 #include <QtGui> |
43 #include <QtGui> |
43 |
44 #include <QtTest> |
44 #include "database.h" |
45 #include "database.h" |
45 #include "mainwindow.h" |
46 #include "mainwindow.h" |
|
47 #include "autotest.h" |
46 |
48 |
47 int main(int argc, char *argv[]) |
|
48 { |
|
49 Q_INIT_RESOURCE(qtp_masterdetail); |
|
50 |
49 |
51 QApplication app(argc, argv); |
50 QTEST_MAIN(autoTest) |
52 |
|
53 if (!createConnection()) |
|
54 return 1; |
|
55 |
|
56 QFile *albumDetails = new QFile("albumdetails.xml"); |
|
57 MainWindow window("artists", "albums", albumDetails); |
|
58 window.show(); |
|
59 return app.exec(); |
|
60 } |
|