Fixed compile with Qt < 4.7

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6073 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2013-01-14 22:42:48 +00:00
parent ddc4a37a93
commit 66c4a3d71b

View File

@ -54,7 +54,11 @@ void RSTreeWidget::paintEvent(QPaintEvent *event)
void RSTreeWidget::mousePressEvent(QMouseEvent *event)
{
#if QT_VERSION < 0x040700
if (event->buttons() & Qt::MidButton) {
#else
if (event->buttons() & Qt::MiddleButton) {
#endif
if (receivers(SIGNAL(signalMouseMiddleButtonClicked(QTreeWidgetItem*))) > 0) {
QTreeWidgetItem *item = itemAt(event->pos());
if (item) {