summaryrefslogtreecommitdiffstats
path: root/helper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'helper.cpp')
-rw-r--r--helper.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/helper.cpp b/helper.cpp
index 8a2e99a..247baca 100644
--- a/helper.cpp
+++ b/helper.cpp
@@ -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();
}