diff options
Diffstat (limited to 'helper.cpp')
-rw-r--r-- | helper.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -188,6 +188,12 @@ namespace Helper { return retval; } + const QString colorToHtml(const QColor &color){ + char colString[7]; + ::snprintf(colString, 7, "%0x%0x%0x", color.red(), color.green(), color.blue()); + return QString::fromAscii(colString); + } + bool SortFileInfoList::operator ()(const QFileInfo &lhs, const QFileInfo &rhs) const { return lhs.fileName().toLower() < rhs.fileName().toLower(); } |