summaryrefslogtreecommitdiffstats
path: root/helper.h
blob: 01694914b932c256dc6d9a9909627ffb970c6ee1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef HELPER_H
#define HELPER_H

#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