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
d5fc130e
Commit
d5fc130e
authored
Feb 03, 2014
by
-f
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of github.com:OpenEducationFoundation/OpenBoard into develop
parents
9d25985d
f7d12ac4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
UBGraphicsTextItem.cpp
src/domain/UBGraphicsTextItem.cpp
+9
-3
No files found.
src/domain/UBGraphicsTextItem.cpp
View file @
d5fc130e
...
...
@@ -41,8 +41,8 @@
#include "core/memcheck.h"
QColor
UBGraphicsTextItem
::
lastUsedTextColor
;
UBGraphicsTextItem
::
UBGraphicsTextItem
(
QGraphicsItem
*
parent
)
:
QGraphicsTextItem
(
parent
)
UBGraphicsTextItem
::
UBGraphicsTextItem
(
QGraphicsItem
*
parent
)
:
QGraphicsTextItem
(
parent
)
,
UBGraphicsItem
()
,
mMultiClickState
(
0
)
,
mLastMousePressTime
(
QTime
::
currentTime
())
...
...
@@ -344,9 +344,15 @@ UBGraphicsScene* UBGraphicsTextItem::scene()
void
UBGraphicsTextItem
::
resize
(
qreal
w
,
qreal
h
)
{
#ifdef Q_WS_MACX
// Claudio Mac os x >= 10.8.
// on text widget creation sometimes the computed height is completely wrong (more than 10^10)
setTextWidth
(
w
>
10000
?
250
:
w
);
setTextHeight
(
h
>
10000
?
80
:
h
);
#else
setTextWidth
(
w
);
setTextHeight
(
h
);
#endif
if
(
Delegate
())
Delegate
()
->
positionHandles
();
}
...
...
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