Move helper functions to Utils::Gui namespace

This commit is contained in:
Chocobo1 2019-03-02 13:22:13 +08:00
parent 0f1fc7be9d
commit adbd34c795
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
21 changed files with 187 additions and 190 deletions

View file

@ -30,12 +30,14 @@
#include <QAction>
#include <QDebug>
#include <QDir>
#include <QHeaderView>
#include <QListWidgetItem>
#include <QMenu>
#include <QSplitter>
#include <QStackedWidget>
#include <QThread>
#include <QUrl>
#include "base/bittorrent/filepriority.h"
#include "base/bittorrent/session.h"
@ -527,7 +529,7 @@ void PropertiesWidget::openFile(const QModelIndex &index)
qDebug("Trying to open file at %s", qUtf8Printable(filePath));
// Flush data
m_torrent->flushCache();
Utils::Misc::openPath(filePath);
Utils::Gui::openPath(filePath);
}
void PropertiesWidget::openFolder(const QModelIndex &index, bool containingFolder)
@ -563,9 +565,9 @@ void PropertiesWidget::openFolder(const QModelIndex &index, bool containingFolde
MacUtils::openFiles(QSet<QString>{absolutePath});
#else
if (containingFolder)
Utils::Misc::openFolderSelect(absolutePath);
Utils::Gui::openFolderSelect(absolutePath);
else
Utils::Misc::openPath(absolutePath);
Utils::Gui::openPath(absolutePath);
#endif
}