/***************************************************************************
- * Copyright (C) 2005-2016 by the Quassel Project *
+ * Copyright (C) 2005-2018 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
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 &)));
void NickView::setModel(QAbstractItemModel *model_)
{
if (model())
- disconnect(model(), 0, this, 0);
+ disconnect(model(), nullptr, this, nullptr);
TreeViewTouch::setModel(model_);
init();