Commit 864800c0 authored by Ilia Ryabokon's avatar Ilia Ryabokon

Cosmetics and longclickInterval

parent c1e26367
......@@ -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
......
......@@ -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);
......
......@@ -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()));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment