File indexing completed on 2024-05-12 04:20:15

0001 /**
0002  * SPDX-FileCopyrightText: 2001-2015 Klaralvdalens Datakonsult AB. All rights reserved.
0003  *
0004  * This file is part of the KD Chart library.
0005  *
0006  * SPDX-License-Identifier: GPL-2.0-or-later
0007  */
0008 
0009 #include "mainwindow.h"
0010 #include <QElapsedTimer>
0011 #include <QtTest/QtTest>
0012 
0013 class TestParamVsParam: public QObject {
0014     Q_OBJECT
0015 private Q_SLOTS:
0016 
0017   void testMainWindow()
0018   {
0019     QElapsedTimer t;
0020     t.start();
0021 
0022     MainWindow      mainWindow;
0023 
0024     qDebug("time constructor: %lld ms", t.elapsed());
0025 
0026     mainWindow.show();
0027     QTimer::singleShot(0, qApp, SLOT(quit()));
0028 
0029     qDebug("time show(): %lld ms", t.elapsed());
0030     // uncomment to see it blink:
0031     // QTest::qWait( 10000 );
0032 
0033   }
0034 };
0035 
0036 QTEST_MAIN(TestParamVsParam)
0037 
0038 #include "main.moc"