diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2021-01-01 12:29:49 +0100 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2021-01-02 15:38:18 +0100 |
| commit | 73490b3fdd8998a7c116d5c99d2ead4582dfc834 (patch) | |
| tree | b9f5eff7e5a2072e82b57569d5d0d03f5a000d88 | |
| parent | e02ba3b26d30ffb5010394992c69e94b287eacd7 (diff) | |
Remove unused stuff from MainWindow.
| -rw-r--r-- | src/mainwindow.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 2068b476..f583f72b 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -30,7 +30,6 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. #include "isavegameinfowidget.h" #include "nexusinterface.h" #include "organizercore.h" -#include "pluginlistsortproxy.h" #include "previewgenerator.h" #include "serverinfo.h" #include "savegameinfo.h" @@ -39,8 +38,6 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. #include "instancemanager.h" #include "report.h" #include "modlist.h" -#include "modlistsortproxy.h" -#include "qtgroupingproxy.h" #include "profile.h" #include "pluginlist.h" #include "profilesdialog.h" @@ -82,7 +79,6 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. #include "listdialog.h" #include "envshortcut.h" #include "browserdialog.h" -#include "modlistbypriorityproxy.h" #include "modlistviewactions.h" #include "modlistcontextmenu.h" @@ -92,7 +88,6 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. #include "shared/filesorigin.h" #include <QAbstractItemDelegate> -#include <QAbstractProxyModel> #include <QAction> #include <QApplication> #include <QButtonGroup> @@ -664,24 +659,6 @@ void MainWindow::resizeEvent(QResizeEvent *event) QMainWindow::resizeEvent(event); } -static QModelIndex mapToModel(const QAbstractItemModel *targetModel, QModelIndex idx) -{ - QModelIndex result = idx; - const QAbstractItemModel *model = idx.model(); - while (model != targetModel) { - if (model == nullptr) { - return QModelIndex(); - } - const QAbstractProxyModel *proxyModel = qobject_cast<const QAbstractProxyModel*>(model); - if (proxyModel == nullptr) { - return QModelIndex(); - } - result = proxyModel->mapToSource(result); - model = proxyModel->sourceModel(); - } - return result; -} - void MainWindow::setupToolbar() { setupActionMenu(ui->actionModPage); |
