summaryrefslogtreecommitdiff
path: root/src/modlist.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2020-02-09 04:14:46 -0500
committerisanae <14251494+isanae@users.noreply.github.com>2020-02-18 17:23:48 -0500
commit3db95eb4043b8da20e99dd7476bc82468a4609fb (patch)
tree257af3a4acd74b09713420cf184dffa77f6ab68d /src/modlist.cpp
parent0c62a26e09fc293d7ab3a6ac8527c067d85f7773 (diff)
customizable columns for mod and plugin lists
Diffstat (limited to 'src/modlist.cpp')
-rw-r--r--src/modlist.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/modlist.cpp b/src/modlist.cpp
index 31eb8387..afc1b65f 100644
--- a/src/modlist.cpp
+++ b/src/modlist.cpp
@@ -1434,15 +1434,7 @@ bool ModList::toggleSelection(QAbstractItemView *itemView)
bool ModList::eventFilter(QObject *obj, QEvent *event)
{
- if (event->type() == QEvent::ContextMenu) {
- QContextMenuEvent *contextEvent = static_cast<QContextMenuEvent*>(event);
- QWidget *object = qobject_cast<QWidget*>(obj);
- if ((object != nullptr) && (contextEvent->reason() == QContextMenuEvent::Mouse)) {
- emit requestColumnSelect(object->mapToGlobal(contextEvent->pos()));
-
- return true;
- }
- } else if ((event->type() == QEvent::KeyPress) && (m_Profile != nullptr)) {
+ if ((event->type() == QEvent::KeyPress) && (m_Profile != nullptr)) {
QAbstractItemView *itemView = qobject_cast<QAbstractItemView*>(obj);
QKeyEvent *keyEvent = static_cast<QKeyEvent*>(event);