@@ -1,7 +1,8 | |||
|
1 | 1 | !include( ../demos.pri ):error( "Couldn't find the demos.pri file!" ) |
|
2 | include(charts/charts.pri) | |
|
3 | 2 | |
|
4 | 3 | TARGET = demoLauncher |
|
5 | 4 | SOURCES += main.cpp\ |
|
6 | 5 | widget.cpp |
|
7 | 6 | HEADERS += widget.h |
|
7 | ||
|
8 | DEFINES += "BINPATH=$$join($$CHART_BUILD_BIN_DIR, ", ")" |
@@ -4,20 +4,22 | |||
|
4 | 4 | #include <QGridLayout> |
|
5 | 5 | #include <QApplication> |
|
6 | 6 | #include <QProcess> |
|
7 | #include <QTimer> | |
|
8 | 7 | |
|
9 | 8 | Widget::Widget(QWidget *parent) |
|
10 | 9 | : QWidget(parent), |
|
11 | 10 | m_demoApp(0) |
|
12 | 11 | { |
|
13 | 12 | QList<QFileInfo> appList; |
|
14 | ||
|
15 | QDir appFolder(QApplication::applicationDirPath()); | |
|
13 | QDir appFolder = QDir(BINPATH); | |
|
16 | 14 | appList = appFolder.entryInfoList(QDir::Files); |
|
17 | 15 | |
|
18 | 16 | for (int k = appList.count() - 1; k >= 0; k--) { |
|
19 | 17 | QString name = appList[k].fileName(); |
|
20 | if (name.endsWith("exp") || name.endsWith("dll") || name.endsWith("lib") || name.startsWith("tst_")) | |
|
18 | if (name.endsWith("exp") | |
|
19 | || name.endsWith("dll") | |
|
20 | || name.endsWith("lib") | |
|
21 | || name.startsWith("tst_") | |
|
22 | || name.startsWith("demoLauncher")) | |
|
21 | 23 | appList.removeAt(k); |
|
22 | 24 | } |
|
23 | 25 |
General Comments 0
You need to be logged in to leave comments.
Login now