summaryrefslogtreecommitdiffstats
path: root/helper.h
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2017-03-07 10:22:01 +0100
committerArno <arno@disconnect.de>2017-03-07 10:22:01 +0100
commit57357d21c3633ff7dbb120e231b8b9eaf9821fb6 (patch)
tree9378471bc18825b678e65b93313259335d8531c1 /helper.h
parentfad486922aa8ac8a4e55bd154bd8817f759d7ebd (diff)
downloadBeetPlayer-57357d21c3633ff7dbb120e231b8b9eaf9821fb6.tar.gz
BeetPlayer-57357d21c3633ff7dbb120e231b8b9eaf9821fb6.tar.bz2
BeetPlayer-57357d21c3633ff7dbb120e231b8b9eaf9821fb6.zip
Implement color choosing dialog for QTreeViews
Hmm, this shouldn't be so hard. Quite a lot of code for such an easy thing, but maybe it's just me and I'm over-complicating things...
Diffstat (limited to 'helper.h')
-rw-r--r--helper.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/helper.h b/helper.h
index 70d2836..0169491 100644
--- a/helper.h
+++ b/helper.h
@@ -3,13 +3,17 @@
#include <QIcon>
#include <QChar>
+#include <QColor>
class QAction;
+class QLabel;
namespace Helper {
QIcon iconFromQChar(const QChar &c, int pixelSize);
QAction* createSeparator(QObject *parent);
quint64 lengthInSeconds(const QString &file);
+ QColor colorFromLabel(QLabel *l);
+ void fillLabel(QLabel *l, QColor c);
}
#endif // HELPER_H