Make sure that all examples are console applications
This commit is contained in:
@@ -3,5 +3,8 @@ TARGET = ducumentproperty
|
||||
#include(../../../src/xlsx/qtxlsx.pri)
|
||||
QT+=xlsx
|
||||
|
||||
CONFIG += console
|
||||
CONFIG -= app_bundle
|
||||
|
||||
SOURCES += main.cpp
|
||||
|
||||
|
||||
@@ -1,12 +1,6 @@
|
||||
#include <QtCore>
|
||||
#include "xlsxdocument.h"
|
||||
|
||||
#ifdef Q_OS_MAC
|
||||
# define DATA_PATH "../../../"
|
||||
#else
|
||||
# define DATA_PATH "./"
|
||||
#endif
|
||||
|
||||
int main()
|
||||
{
|
||||
QXlsx::Document xlsx;
|
||||
@@ -21,6 +15,6 @@ int main()
|
||||
xlsx.setDocumentProperty("keywords", "Sample, Example, Properties");
|
||||
xlsx.setDocumentProperty("description", "Created with Qt Xlsx");
|
||||
|
||||
xlsx.saveAs(DATA_PATH"Test.xlsx");
|
||||
xlsx.saveAs("Test.xlsx");
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -3,4 +3,7 @@ TARGET = image
|
||||
#include(../../../src/xlsx/qtxlsx.pri)
|
||||
QT += xlsx
|
||||
|
||||
CONFIG += console
|
||||
CONFIG -= app_bundle
|
||||
|
||||
SOURCES += main.cpp
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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,4 +3,7 @@ TARGET = mergecells
|
||||
#include(../../../src/xlsx/qtxlsx.pri)
|
||||
QT += xlsx
|
||||
|
||||
CONFIG += console
|
||||
CONFIG -= app_bundle
|
||||
|
||||
SOURCES += main.cpp
|
||||
|
||||
@@ -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;
|
||||
@@ -37,6 +31,6 @@ int main()
|
||||
xlsx.write(row, col, row+col);
|
||||
xlsx.setColumn(8, 15, 5.0, format2);
|
||||
|
||||
xlsx.saveAs(DATA_PATH"Test.xlsx");
|
||||
xlsx.save();
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -3,4 +3,7 @@ TARGET = image
|
||||
#include(../../../src/xlsx/qtxlsx.pri)
|
||||
QT += xlsx
|
||||
|
||||
CONFIG += console
|
||||
CONFIG -= app_bundle
|
||||
|
||||
SOURCES += main.cpp
|
||||
|
||||
@@ -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