Fix examples compile error introduced by API change

This commit is contained in:
Debao Zhang
2014-03-17 23:55:55 +08:00
parent 9ce8b92b4f
commit 2301ab4b34
7 changed files with 31 additions and 33 deletions
+6 -4
View File
@@ -8,10 +8,10 @@ int main()
xlsx.write(1, 2, "Row:0, Col:2 ==> (C1)");
//Set the height of the first row to 50.0(points)
xlsx.setRow(1, 50.0);
xlsx.setRowHeight(1, 50.0);
//Set the width of the third column to 40.0(chars)
xlsx.setColumn(3, 3, 40.0);
xlsx.setColumnWidth(3, 3, 40.0);
//Set style for the row 11th.
QXlsx::Format format1;
@@ -20,7 +20,8 @@ int main()
format1.setFontSize(20);
xlsx.write(11, 1, "Hello Row Style");
xlsx.write(11, 6, "Blue Color");
xlsx.setRow(11, 41, format1);
xlsx.setRowFormat(11, format1);
xlsx.setRowHeight(11, 41);
//Set style for the col [9th, 16th)
QXlsx::Format format2;
@@ -29,7 +30,8 @@ int main()
for (int row=12; row<=30; row++)
for (int col=9; col<=15; col++)
xlsx.write(row, col, row+col);
xlsx.setColumn(9, 16, 5.0, format2);
xlsx.setColumnWidth(9, 16, 5.0);
xlsx.setColumnFormat(9, 16, format2);
xlsx.save();
return 0;