summaryrefslogtreecommitdiffstats
path: root/helper.h
blob: ced3e593cf0007c8d365e007d5bac084d317ba77 (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);
    int lengthInSeconds(const QString &file);
    QColor colorFromLabel(QLabel *l);
    void fillLabel(QLabel *l, QColor c);
}

#endif // HELPER_H