mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-18 07:41:31 +02:00
QR code feature beta and streamer mode
This commit is contained in:
@@ -42,6 +42,12 @@ QByteArray Utils::fileOpen(const QString &path) {
|
||||
return data;
|
||||
}
|
||||
|
||||
qint64 Utils::fileModifiedAge(const QString &path) {
|
||||
QFileInfo fileInfo;
|
||||
fileInfo.setFile(path);
|
||||
return (QDateTime::currentSecsSinceEpoch() - fileInfo.lastModified().toSecsSinceEpoch());
|
||||
}
|
||||
|
||||
QByteArray Utils::fileOpenQRC(const QString &path) {
|
||||
QFile file(path);
|
||||
if(!file.open(QIODevice::ReadOnly)) {
|
||||
|
||||
Reference in New Issue
Block a user