Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenBoard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lifo
Nicolas Ollinger
OpenBoard
Commits
864800c0
Commit
864800c0
authored
Oct 16, 2012
by
Ilia Ryabokon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetics and longclickInterval
parent
c1e26367
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
5 deletions
+3
-5
UBSettings.cpp
src/core/UBSettings.cpp
+1
-1
UBGraphicsItemDelegate.cpp
src/domain/UBGraphicsItemDelegate.cpp
+0
-2
UBGraphicsScene.cpp
src/domain/UBGraphicsScene.cpp
+2
-2
No files found.
src/core/UBSettings.cpp
View file @
864800c0
...
...
@@ -88,7 +88,7 @@ const int UBSettings::defaultWidgetIconWidth = 110;
const
int
UBSettings
::
defaultVideoWidth
=
80
;
const
int
UBSettings
::
thumbnailSpacing
=
20
;
const
int
UBSettings
::
longClickInterval
=
20
00
;
const
int
UBSettings
::
longClickInterval
=
12
00
;
const
qreal
UBSettings
::
minScreenRatio
=
1.33
;
// 800/600 or 1024/768
...
...
src/domain/UBGraphicsItemDelegate.cpp
View file @
864800c0
...
...
@@ -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
);
...
...
src/domain/UBGraphicsScene.cpp
View file @
864800c0
...
...
@@ -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
()));
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment