Make use of clang-format

Change-Id: I71bbf133223931eddb0c7e568cc0b99ecf807fa1
This commit is contained in:
Debao Zhang
2020-03-19 01:33:41 +08:00
parent d013edc9cf
commit 534490e9b2
88 changed files with 2527 additions and 2040 deletions
+7 -7
View File
@@ -7,13 +7,13 @@ int main()
QXlsx::Document xlsx;
xlsx.write(1, 2, "Row:0, Col:2 ==> (C1)");
//Set the height of the first row to 50.0(points)
// Set the height of the first row to 50.0(points)
xlsx.setRowHeight(1, 50.0);
//Set the width of the third column to 40.0(chars)
// Set the width of the third column to 40.0(chars)
xlsx.setColumnWidth(3, 3, 40.0);
//Set style for the row 11th.
// Set style for the row 11th.
QXlsx::Format format1;
format1.setFontBold(true);
format1.setFontColor(QColor(Qt::blue));
@@ -23,13 +23,13 @@ int main()
xlsx.setRowFormat(11, format1);
xlsx.setRowHeight(11, 41);
//Set style for the col [9th, 16th)
// Set style for the col [9th, 16th)
QXlsx::Format format2;
format2.setFontBold(true);
format2.setFontColor(QColor(Qt::magenta));
for (int row=12; row<=30; row++)
for (int col=9; col<=15; col++)
xlsx.write(row, col, row+col);
for (int row = 12; row <= 30; row++)
for (int col = 9; col <= 15; col++)
xlsx.write(row, col, row + col);
xlsx.setColumnWidth(9, 16, 5.0);
xlsx.setColumnFormat(9, 16, format2);