From 57357d21c3633ff7dbb120e231b8b9eaf9821fb6 Mon Sep 17 00:00:00 2001 From: Arno Date: Tue, 7 Mar 2017 10:22:01 +0100 Subject: 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... --- helper.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'helper.h') diff --git a/helper.h b/helper.h index 70d2836..0169491 100644 --- a/helper.h +++ b/helper.h @@ -3,13 +3,17 @@ #include #include +#include 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 -- cgit v1.2.3-70-g09d2