mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2025-01-04 09:15:05 +00:00
A fix for compilation with Qt < 4.2.0.
This commit is contained in:
parent
f83d319946
commit
5f42409744
@ -242,8 +242,13 @@ rightclick_tree_widget::mousePressEvent(QMouseEvent *event) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
QTreeWidgetItem *item = itemAt(event->pos());
|
QTreeWidgetItem *item = itemAt(event->pos());
|
||||||
if (NULL != item)
|
if (NULL != item) {
|
||||||
|
#if QT_VERSION >= 0x040200
|
||||||
gui->expand_all_elements(item, !item->isExpanded());
|
gui->expand_all_elements(item, !item->isExpanded());
|
||||||
|
#else // QT_VERSION >= 0x040200
|
||||||
|
gui->expand_all_elements(item, !item->treeWidget()->isItemExpanded(item));
|
||||||
|
#endif // QT_VERSION >= 0x040200
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user