X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fbufferview.cpp;h=167d6b99e0b1911c61aedd37f345bb94afcc90cc;hp=d48d7c4285a3ad60d731b41f6effc81b719ef86e;hb=27e9a474a8c205829067a017f7d7fbde0891c42a;hpb=04315f46a16fc3627218377071e008b6b9744992 diff --git a/src/uisupport/bufferview.cpp b/src/uisupport/bufferview.cpp index d48d7c42..167d6b99 100644 --- a/src/uisupport/bufferview.cpp +++ b/src/uisupport/bufferview.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2013 by the Quassel Project * + * Copyright (C) 2005-2014 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -392,10 +392,15 @@ void BufferView::setExpandedState(const QModelIndex &networkIdx) storeExpandedState(networkIdx); // this call is needed to keep track of the isActive state } - +#if QT_VERSION < 0x050000 void BufferView::dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight) { QTreeView::dataChanged(topLeft, bottomRight); +#else +void BufferView::dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector &roles) +{ + QTreeView::dataChanged(topLeft, bottomRight, roles); +#endif // determine how many items have been changed and if any of them is a networkitem // which just swichted from active to inactive or vice versa