diff --git a/src/core/UBSettings.cpp b/src/core/UBSettings.cpp index 5bc973a3..53ed2437 100644 --- a/src/core/UBSettings.cpp +++ b/src/core/UBSettings.cpp @@ -88,7 +88,7 @@ const int UBSettings::defaultWidgetIconWidth = 110; const int UBSettings::defaultVideoWidth = 80; const int UBSettings::thumbnailSpacing = 20; -const int UBSettings::longClickInterval = 2000; +const int UBSettings::longClickInterval = 1200; const qreal UBSettings::minScreenRatio = 1.33; // 800/600 or 1024/768 diff --git a/src/domain/UBGraphicsItemDelegate.cpp b/src/domain/UBGraphicsItemDelegate.cpp index 8c09e838..69b24e1a 100644 --- a/src/domain/UBGraphicsItemDelegate.cpp +++ b/src/domain/UBGraphicsItemDelegate.cpp @@ -101,10 +101,8 @@ void DelegateButton::mouseReleaseEvent(QGraphicsSceneMouseEvent *event) if (timeto < UBSettings::longClickInterval) { emit clicked(); - qDebug() << "clicked"; } else { emit longClicked(); - qDebug() << "longClicked"; } event->setAccepted(!mIsTransparentToMouseEvent); diff --git a/src/domain/UBGraphicsScene.cpp b/src/domain/UBGraphicsScene.cpp index ca953a76..064d9b28 100644 --- a/src/domain/UBGraphicsScene.cpp +++ b/src/domain/UBGraphicsScene.cpp @@ -195,7 +195,7 @@ qreal UBZLayerController::changeZLevelTo(QGraphicsItem *item, moveDestination de qreal nextZ = iCurElement.next().value()->data(UBGraphicsItemData::ItemOwnZValue).toReal(); ItemLayerTypeData curItemLayerTypeData = scopeMap.value(curItemLayerType); -// + //if we have some free space between lowest graphics item and layer's bottom bound, //insert element close to first element in layer if (nextZ > curItemLayerTypeData.bottomLimit + curItemLayerTypeData.incStep) { @@ -299,7 +299,7 @@ UBGraphicsScene::UBGraphicsScene(UBDocumentProxy* parent, bool enableUndoRedoSta } // Just for debug. Do not delete please - connect(this, SIGNAL(selectionChanged()), this, SLOT(selectionChangedProcessing())); +// connect(this, SIGNAL(selectionChanged()), this, SLOT(selectionChangedProcessing())); connect(this, SIGNAL(selectionChanged()), this, SLOT(updateGroupButtonState())); }