mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-05 01:25:39 -05:00
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:
parent
b0eb329d31
commit
ebef7e7141
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user