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 -8
View File
@@ -2,12 +2,6 @@
#include "xlsxdocument.h"
#include "xlsxformat.h"
#ifdef Q_OS_MAC
# define DATA_PATH "../../../"
#else
# define DATA_PATH "./"
#endif
int main()
{
QXlsx::Document xlsx;
@@ -45,9 +39,10 @@ int main()
xlsx.write("A5", QDate(2013, 8, 29));
QXlsx::Format *format6 = xlsx.createFormat();
format6->setPatternBackgroundColor(QColor(Qt::gray));
format6->setPatternBackgroundColor(QColor(Qt::green));
xlsx.write("A6", "Background color: green", format6);
xlsx.saveAs(DATA_PATH"TestStyle.xlsx");
xlsx.saveAs("book1.xlsx");
return 0;
}