forked from RobertKrajewski/Sync-my-L2P
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathutils.h
27 lines (19 loc) · 801 Bytes
/
utils.h
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
#ifndef UTILS_H
#define UTILS_H
#include <QObject>
#include "structureelement.h"
class Utils : public QObject
{
Q_OBJECT
public:
static QString getElementLocalPath(Structureelement* item, QString path, bool includeFilname = true, bool includePrefix = true);
static void copyTextToClipboard(QString text);
static void errorMessageBox(QString message, QString detailMessage);
static QList<Structureelement*> getAllCourseItems(QStandardItemModel* itemModel);
static Structureelement *getSemesterItem(QStandardItemModel *itemModel, QString semester);
static Structureelement *getDirectoryItem(Structureelement *courseItem, QStringList path);
static void centerWidgetOnDesktop(QWidget* widget);
private:
explicit Utils(QObject *parent = 0);
};
#endif // UTILS_H