compatibility with Qt4.5

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3864 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2010-11-23 21:00:17 +00:00
parent b0eb329d31
commit ebef7e7141
2 changed files with 5 additions and 1 deletions

View File

@ -740,7 +740,9 @@ Qt::ItemFlags RemoteDirModel::flags( const QModelIndex & index ) const
#endif #endif
//modelAboutToBeReset(); //modelAboutToBeReset();
// reset(); // reset();
#if QT_VERSION >= 0x040600
beginResetModel(); beginResetModel();
#endif
layoutAboutToBeChanged(); layoutAboutToBeChanged();
} }
@ -753,7 +755,9 @@ Qt::ItemFlags RemoteDirModel::flags( const QModelIndex & index ) const
//modelReset(); //modelReset();
layoutChanged(); layoutChanged();
//reset(); //reset();
#if QT_VERSION >= 0x040600
endResetModel(); endResetModel();
#endif
} }

View File

@ -52,7 +52,7 @@ QT_BEGIN_NAMESPACE
class QGraphicsSceneMouseEvent; class QGraphicsSceneMouseEvent;
QT_END_NAMESPACE QT_END_NAMESPACE
class Node : public QGraphicsObject class Node : public QObject, public QGraphicsItem
{ {
Q_OBJECT Q_OBJECT