projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
QTreeView::dataChanged() signature changed in Qt5
[quassel.git]
/
src
/
uisupport
/
bufferview.cpp
diff --git
a/src/uisupport/bufferview.cpp
b/src/uisupport/bufferview.cpp
index
4c09a46
..
167d6b9
100644
(file)
--- a/
src/uisupport/bufferview.cpp
+++ b/
src/uisupport/bufferview.cpp
@@
-392,10
+392,15
@@
void BufferView::setExpandedState(const QModelIndex &networkIdx)
storeExpandedState(networkIdx); // this call is needed to keep track of the isActive state
}
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);
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<int> &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
// 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