-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathutils.h
More file actions
23 lines (20 loc) · 771 Bytes
/
Copy pathutils.h
File metadata and controls
23 lines (20 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef UTILS_H
#define UTILS_H
#include <QString>
#include <windows.h>
#include <QIcon>
namespace Util {
bool isFolderWirtable(const QString& path);
bool setFolderIcon(const QString &folderPath, const QString &iconPath, int index = 0);
bool restoreFolderIcon(const QString &folderPath);
QStringList getExeFiles(const QString& dirPath);
QString getFolderIconPath(const QString& folderPath);
// 判断exe是否有自定义图标
bool hasCustomIcon(const QString& exePath);
bool isUsingDefaultIcon(const QString& exePath);
bool isDefaultExeIcon(const QIcon& icon);
Q_DECL_DEPRECATED_X("Use QFileIconProvider::icon() + QPixmapCache::clear() instead")
QIcon getFileIcon(QString filePath);
bool isInDir(const QString& filePath, const QString& dirPath);
}
#endif // UTILS_H