Fix more of the merge fallout.
authorManuel Nickschas <sputnick@quassel-irc.org>
Thu, 20 Nov 2008 15:10:56 +0000 (16:10 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Thu, 20 Nov 2008 15:37:40 +0000 (16:37 +0100)
This also explains why clicks were handled twice...

src/qtui/chatscene.cpp

index 24394b9..f85e344 100644 (file)
@@ -110,10 +110,6 @@ ChatScene::ChatScene(QAbstractItemModel *model, const QString &idString, qreal w
   _clickTimer.setSingleShot(true);
   connect(&_clickTimer, SIGNAL(timeout()), SLOT(clickTimeout()));
 
   _clickTimer.setSingleShot(true);
   connect(&_clickTimer, SIGNAL(timeout()), SLOT(clickTimeout()));
 
-  _clickTimer.setInterval(QApplication::doubleClickInterval());
-  _clickTimer.setSingleShot(true);
-  connect(&_clickTimer, SIGNAL(timeout()), SLOT(clickTimeout()));
-
   setItemIndexMethod(QGraphicsScene::NoIndex);
 }
 
   setItemIndexMethod(QGraphicsScene::NoIndex);
 }
 
@@ -671,7 +667,7 @@ void ChatScene::mouseReleaseEvent(QGraphicsSceneMouseEvent *event) {
 }
 
 void ChatScene::clickTimeout() {
 }
 
 void ChatScene::clickTimeout() {
-  if(!_leftButtonPressed && _clickMode == SingleClick && !_clickHandled)
+  if(!_leftButtonPressed && _clickMode == SingleClick)
     handleClick(Qt::LeftButton, _clickPos);
 }
 
     handleClick(Qt::LeftButton, _clickPos);
 }