mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-11 15:56:17 -07:00
Move helper functions to Utils::Gui namespace
This commit is contained in:
parent
0f1fc7be9d
commit
adbd34c795
21 changed files with 187 additions and 190 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue