Cosmetics and longclickInterval

preferencesAboutTextFull
Ilia Ryabokon 12 years ago
parent c1e2636719
commit 864800c03e
  1. 2
      src/core/UBSettings.cpp
  2. 2
      src/domain/UBGraphicsItemDelegate.cpp
  3. 4
      src/domain/UBGraphicsScene.cpp

@ -88,7 +88,7 @@ const int UBSettings::defaultWidgetIconWidth = 110;
const int UBSettings::defaultVideoWidth = 80; const int UBSettings::defaultVideoWidth = 80;
const int UBSettings::thumbnailSpacing = 20; 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 const qreal UBSettings::minScreenRatio = 1.33; // 800/600 or 1024/768

@ -101,10 +101,8 @@ void DelegateButton::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
if (timeto < UBSettings::longClickInterval) { if (timeto < UBSettings::longClickInterval) {
emit clicked(); emit clicked();
qDebug() << "clicked";
} else { } else {
emit longClicked(); emit longClicked();
qDebug() << "longClicked";
} }
event->setAccepted(!mIsTransparentToMouseEvent); event->setAccepted(!mIsTransparentToMouseEvent);

@ -195,7 +195,7 @@ qreal UBZLayerController::changeZLevelTo(QGraphicsItem *item, moveDestination de
qreal nextZ = iCurElement.next().value()->data(UBGraphicsItemData::ItemOwnZValue).toReal(); qreal nextZ = iCurElement.next().value()->data(UBGraphicsItemData::ItemOwnZValue).toReal();
ItemLayerTypeData curItemLayerTypeData = scopeMap.value(curItemLayerType); ItemLayerTypeData curItemLayerTypeData = scopeMap.value(curItemLayerType);
//
//if we have some free space between lowest graphics item and layer's bottom bound, //if we have some free space between lowest graphics item and layer's bottom bound,
//insert element close to first element in layer //insert element close to first element in layer
if (nextZ > curItemLayerTypeData.bottomLimit + curItemLayerTypeData.incStep) { if (nextZ > curItemLayerTypeData.bottomLimit + curItemLayerTypeData.incStep) {
@ -299,7 +299,7 @@ UBGraphicsScene::UBGraphicsScene(UBDocumentProxy* parent, bool enableUndoRedoSta
} }
// Just for debug. Do not delete please // 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())); connect(this, SIGNAL(selectionChanged()), this, SLOT(updateGroupButtonState()));
} }

Loading…
Cancel
Save