Lines 1-43
Link Here
|
1 |
commit 078477395aaec1edee90922037ebc8a36b072d90 |
|
|
2 |
Author: Armin K <krejzi@email.com> |
3 |
Date: Sat May 2 23:04:53 2015 +0200 |
4 |
|
5 |
Fix build with Qt-5.5 |
6 |
|
7 |
http://code.qt.io/cgit/qt/qtbase.git/commit/?id=ebef2ad1360c80ad62de5f4a1c4e7e4051725c1c |
8 |
|
9 |
--- src/client/treemodel.cpp |
10 |
+++ src/client/treemodel.cpp |
11 |
@@ -556,10 +556,9 @@ void TreeModel::endAppendChilds() |
12 |
ChildStatus cs = _childStatus; |
13 |
#ifndef QT_NO_DEBUG |
14 |
QModelIndex parent = indexByItem(parentItem); |
15 |
-#endif |
16 |
Q_ASSERT(cs.parent == parent); |
17 |
Q_ASSERT(rowCount(parent) == cs.childCount + cs.end - cs.start + 1); |
18 |
- |
19 |
+#endif |
20 |
_aboutToRemoveOrInsert = false; |
21 |
for (int i = cs.start; i <= cs.end; i++) { |
22 |
connectItem(parentItem->child(i)); |
23 |
@@ -605,9 +604,9 @@ void TreeModel::endRemoveChilds() |
24 |
#ifndef QT_NO_DEBUG |
25 |
ChildStatus cs = _childStatus; |
26 |
QModelIndex parent = indexByItem(parentItem); |
27 |
-#endif |
28 |
Q_ASSERT(cs.parent == parent); |
29 |
Q_ASSERT(rowCount(parent) == cs.childCount - cs.end + cs.start - 1); |
30 |
+#endif |
31 |
_aboutToRemoveOrInsert = false; |
32 |
|
33 |
endRemoveRows(); |
34 |
--- src/common/peer.h |
35 |
+++ src/common/peer.h |
36 |
@@ -22,6 +22,7 @@ |
37 |
#define PEER_H |
38 |
|
39 |
#include <QAbstractSocket> |
40 |
+#include <QDataStream> |
41 |
#include <QPointer> |
42 |
|
43 |
#include "authhandler.h" |