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
+2 -11
View File
@@ -1,16 +1,7 @@
#include <QtGui>
#include "xlsxdocument.h"
#ifdef Q_OS_MAC
# define DATA_PATH "../../../"
#else
# define DATA_PATH "./"
#endif
int main(int argc, char** argv)
int main()
{
QGuiApplication(argc, argv);
QXlsx::Document xlsx;
xlsx.write("B1", "Merge Cells");
@@ -19,7 +10,7 @@ int main(int argc, char** argv)
xlsx.write("E2", "Merge Cells 2");
xlsx.mergeCells("E2:G4");
xlsx.saveAs(DATA_PATH"Test.xlsx");
xlsx.save();
return 0;
}
+3
View File
@@ -3,4 +3,7 @@ TARGET = mergecells
#include(../../../src/xlsx/qtxlsx.pri)
QT += xlsx
CONFIG += console
CONFIG -= app_bundle
SOURCES += main.cpp