Looks like having animated QTreeViews lead to problems with rendering nested trees.
This affects both the NickView and BufferView. Maybe it's something in our code,
but looks like simply disabling animations for Qt >= 4.8 does the trick as well...
hideColumn(1);
hideColumn(2);
setIndentation(10);
+
expandAll();
header()->hide(); // nobody seems to use this anyway
- setAnimated(true);
+ // breaks with Qt 4.8
+ if(QString("4.8.0") > qVersion()) // FIXME breaks with Qt versions >= 4.10!
+ setAnimated(true);
// FIXME This is to workaround bug #663
setUniformRowHeights(true);
: QTreeView(parent)
{
setIndentation(10);
- setAnimated(true);
header()->hide();
setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
setSortingEnabled(true);
setContextMenuPolicy(Qt::CustomContextMenu);
setSelectionMode(QAbstractItemView::ExtendedSelection);
+ // breaks with Qt 4.8
+ if(QString("4.8.0") > qVersion()) // FIXME breaks with Qt versions >= 4.10!
+ setAnimated(true);
+
connect(this, SIGNAL(customContextMenuRequested(const QPoint&)), SLOT(showContextMenu(const QPoint&)));
#if defined Q_WS_QWS || defined Q_WS_X11