-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUtils.h
More file actions
29 lines (21 loc) · 691 Bytes
/
Copy pathUtils.h
File metadata and controls
29 lines (21 loc) · 691 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef UTILS_H
#define UTILS_H
#include <QDir>
#include <QMessageBox>
#include <QProcess>
#include <QString>
#include <QStringList>
#include <QWidget>
namespace Utils
{
bool isMovie(QString path);
bool isMovieDiscDirectory(QString name);
bool isWatched(float progress, float duration);
QString formatDuration(int duration);
QStringList listSubdirectories(QDir directory);
bool setStyleSheetFromFile(QWidget* widget, QString fileName);
void resizeMessageBox(QMessageBox* box, int width = 1280);
void x11KeyEventForChildren(WId win, bool press, quint32 keysum, quint32 modifiers);
double determineDuration(const QString& path);
}
#endif // UTILS_H