Can read .xlsx files with fill styles now

This commit is contained in:
Debao Zhang
2013-10-22 11:30:06 +08:00
parent b56d86aab4
commit 9abb26127c
8 changed files with 163 additions and 11 deletions
+11
View File
@@ -29,6 +29,7 @@
#include <QRegularExpression>
#include <QMap>
#include <QStringList>
#include <QColor>
namespace QXlsx {
@@ -51,6 +52,16 @@ QStringList splitPath(const QString &path)
return QStringList()<<path.left(idx)<<path.mid(idx+1);
}
QColor fromARGBString(const QString &c)
{
Q_ASSERT(c.length() == 8);
QColor color;
color.setRed(c.mid(2, 2).toInt(0, 16));
color.setGreen(c.mid(4, 2).toInt(0, 16));
color.setBlue(c.mid(6, 2).toInt(0, 16));
return color;
}
QPoint xl_cell_to_rowcol(const QString &cell_str)
{
if (cell_str.isEmpty())