Browse Source

Update documentation

master
Debao Zhang 11 years ago
parent
commit
e369d98275
  1. BIN
      examples/xlsx/demo/doc/images/xlsx_demo.png
  2. BIN
      examples/xlsx/demo/doc/images/xlsx_demo_fonts.png
  3. BIN
      examples/xlsx/demo/doc/images/xlsx_demo_formulas.png
  4. BIN
      examples/xlsx/demo/doc/images/xlsx_demo_grouping.png
  5. BIN
      examples/xlsx/demo/doc/images/xlsx_demo_merging.png
  6. 6
      examples/xlsx/demo/doc/src/demo.qdoc
  7. 4
      examples/xlsx/demo/main.cpp
  8. BIN
      examples/xlsx/documentproperty/doc/images/doc_property.png
  9. 8
      examples/xlsx/documentproperty/doc/src/documentproperty.qdoc
  10. 4
      examples/xlsx/extractdata/doc/src/extractdata.qdoc
  11. BIN
      examples/xlsx/hello/doc/images/hello.png
  12. 18
      examples/xlsx/hello/doc/src/hello.qdoc
  13. 4
      examples/xlsx/xlsx.pro
  14. 4
      src/xlsx/doc/src/qtxlsx-index.qdoc

BIN
examples/xlsx/demo/doc/images/xlsx_demo.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 39 KiB

BIN
examples/xlsx/demo/doc/images/xlsx_demo_fonts.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

BIN
examples/xlsx/demo/doc/images/xlsx_demo_formulas.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

BIN
examples/xlsx/demo/doc/images/xlsx_demo_grouping.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
examples/xlsx/demo/doc/images/xlsx_demo_merging.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

6
examples/xlsx/demo/doc/src/demo.qdoc

@ -1,8 +1,12 @@
/*! /*!
\example demo \example demo
\title Xlsx Demo \title Qt Xlsx Demo
\brief This is a demo which is used to show features of the library \brief This is a demo which is used to show features of the library
\ingroup qtxlsx-examples \ingroup qtxlsx-examples
\image xlsx_demo.png \image xlsx_demo.png
\image xlsx_demo_fonts.png
\image xlsx_demo_formulas.png
\image xlsx_demo_merging.png
\image xlsx_demo_grouping.png
*/ */

4
examples/xlsx/demo/main.cpp

@ -289,8 +289,8 @@ int main()
xlsx.saveAs("Book1.xlsx"); xlsx.saveAs("Book1.xlsx");
//Make sure that read/write works well. //Make sure that read/write works well.
Document xlsx2("Book1.xlsx"); Document xlsx2("demo.xlsx");
xlsx2.saveAs("Book2.xlsx"); xlsx2.saveAs("demo2.xlsx");
return 0; return 0;
} }

BIN
examples/xlsx/documentproperty/doc/images/doc_property.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

8
examples/xlsx/documentproperty/doc/src/documentproperty.qdoc

@ -1,11 +1,11 @@
/*! /*!
\title Qt Xlsx Examples - Document Properties
\example documentproperty \example documentproperty
\title Xlsx DocProperties Example \title Document Properties Example
\brief This is a simplest xlsx examples. \brief This is a simplest xlsx examples.
\image doc_property.png
\ingroup qtxlsx-examples \ingroup qtxlsx-examples
This example demonstrates how to generate a This example demonstrates how to set the document properties.
.xlsx file with Qt Xlsx Library.
*/ */

4
examples/xlsx/extractdata/doc/src/extractdata.qdoc

@ -9,8 +9,8 @@
This creates a new instance of the all important Document This creates a new instance of the all important Document
class which gives you access to the Excel workbook and worksheets. class which gives you access to the Excel workbook and worksheets.
\snippet hello/main.cpp 0 \snippet extractdata/main.cpp 0
Extracts data from current worksheet. Extracts data from current worksheet.
\snippet hello/main.cpp 1 \snippet extractdata/main.cpp 1
*/ */

BIN
examples/xlsx/hello/doc/images/hello.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 15 KiB

18
examples/xlsx/hello/doc/src/hello.qdoc

@ -1,20 +1,22 @@
/*! /*!
\example hello \example hello
\title Xlsx Hello Example \title Hello QtXlsx Example
\brief This is a simplest xlsx examples. \brief This is a simplest Qt Xlsx example.
\ingroup qtxlsx-examples \ingroup qtxlsx-examples
This example demonstrates how to generate a This example demonstrates how to create a new
simplest .xlsx file with Qt Xlsx Library. .xlsx file containing some basic data and calculations
with Qt Xlsx Library. So lets see how this is achieved.
\image hello.png \image hello.png
Create an object of the class QXlsx::Document. This creates a new instance of the all important Document
class which gives you access to the Excel workbook and worksheets.
\snippet hello/main.cpp 0 \snippet hello/main.cpp 0
Set the cells of worksheet. A default worksheet have been created by Document. Let's start
by adding some basic data.
\snippet hello/main.cpp 1 \snippet hello/main.cpp 1
Save it. Now save the file and all its components.
\snippet hello/main.cpp 2 \snippet hello/main.cpp 2
*/ */

4
examples/xlsx/xlsx.pro

@ -1,5 +1,7 @@
TEMPLATE = subdirs TEMPLATE = subdirs
SUBDIRS = hello style \ SUBDIRS = hello \
extractdata \
style \
documentproperty \ documentproperty \
image \ image \
mergecells \ mergecells \

4
src/xlsx/doc/src/qtxlsx-index.qdoc

@ -32,8 +32,8 @@
Microsoft Excel and can be used in any platform that Qt5 supported. The library can be used to Microsoft Excel and can be used in any platform that Qt5 supported. The library can be used to
\list \list
\li Generate a new .xlsx file from scratch \li \l{Hello QtXlsx Example}{Generate a new .xlsx file from scratch}
\li Extract data from an existing .xlsx file \li \l{Extract Data Example}{Extract data from an existing .xlsx file}
\li Edit an existing .xlsx file \li Edit an existing .xlsx file
\endlist \endlist

Loading…
Cancel
Save