Make sure that all examples are console applications
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -3,4 +3,7 @@ TARGET = style
|
||||
#include(../../../src/xlsx/qtxlsx.pri)
|
||||
QT += xlsx
|
||||
|
||||
CONFIG += console
|
||||
CONFIG -= app_bundle
|
||||
|
||||
SOURCES += main.cpp
|
||||
|
||||
Reference in New Issue
Block a user