A fix for compilation with Qt < 4.2.0.

This commit is contained in:
Moritz Bunkus 2006-12-08 16:29:26 +00:00
parent f83d319946
commit 5f42409744

View File

@ -242,8 +242,13 @@ rightclick_tree_widget::mousePressEvent(QMouseEvent *event) {
}
QTreeWidgetItem *item = itemAt(event->pos());
if (NULL != item)
if (NULL != item) {
#if QT_VERSION >= 0x040200
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