mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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:
parent
ddc4a37a93
commit
66c4a3d71b
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user