summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2015-07-07 20:54:18 +0200
committerTannin <devnull@localhost>2015-07-07 20:54:18 +0200
commit0a1f3efac5316676bd0a791acf6e5f231d1c177b (patch)
tree73ca11a20017ddf7a81a307569943f710bc6142e /src/mainwindow.cpp
parent1eea37e4e1d59210d721d25c3e10060622c991f8 (diff)
filter names in the filter pane now also show up as tooltips
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 466fb1c0..869b7d70 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -2027,6 +2027,7 @@ void MainWindow::fileMoved(const QString &filePath, const QString &oldOriginName
QTreeWidgetItem *MainWindow::addFilterItem(QTreeWidgetItem *root, const QString &name, int categoryID, ModListSortProxy::FilterType type)
{
QTreeWidgetItem *item = new QTreeWidgetItem(QStringList(name));
+ item->setData(0, Qt::ToolTipRole, name);
item->setData(0, Qt::UserRole, categoryID);
item->setData(0, Qt::UserRole + 1, type);
if (root != nullptr) {