Make sure that all examples are console applications

This commit is contained in:
Debao Zhang
2013-10-23 10:27:21 +08:00
parent a112f5d2e7
commit 6d3b3cf5d4
10 changed files with 23 additions and 40 deletions
+3
View File
@@ -3,4 +3,7 @@ TARGET = image
#include(../../../src/xlsx/qtxlsx.pri)
QT += xlsx
CONFIG += console
CONFIG -= app_bundle
SOURCES += main.cpp
+1 -7
View File
@@ -1,12 +1,6 @@
#include <QtGui>
#include "xlsxdocument.h"
#ifdef Q_OS_MAC
# define DATA_PATH "../../../"
#else
# define DATA_PATH "./"
#endif
int main(int argc, char** argv)
{
QGuiApplication(argc, argv);
@@ -17,7 +11,7 @@ int main(int argc, char** argv)
image.fill(Qt::green);
xlsx.insertImage(5, 5, image);
xlsx.saveAs(DATA_PATH"Test.xlsx");
xlsx.save();
return 0;
}