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
c5f6a9cf
Commit
c5f6a9cf
authored
Aug 22, 2011
by
Anatoly Mihalchenko
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:Sankore/Sankore-3.1
parents
8b65d002
f6c3ee89
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
5 deletions
+22
-5
UBDesktopAnnotationController.cpp
src/desktop/UBDesktopAnnotationController.cpp
+16
-0
UBDesktopAnnotationController.h
src/desktop/UBDesktopAnnotationController.h
+1
-0
UBGraphicsTriangle.cpp
src/tools/UBGraphicsTriangle.cpp
+5
-5
No files found.
src/desktop/UBDesktopAnnotationController.cpp
View file @
c5f6a9cf
...
...
@@ -95,8 +95,14 @@ UBDesktopAnnotationController::UBDesktopAnnotationController(QObject *parent)
if
(
UBPlatformUtils
::
hasVirtualKeyboard
())
{
#ifdef Q_WS_X11
mKeyboardPalette
=
UBKeyboardPalette
::
create
(
0
);
connect
(
mTransparentDrawingView
,
SIGNAL
(
hidden
()),
mKeyboardPalette
,
SLOT
(
hide
()));
connect
(
mTransparentDrawingView
,
SIGNAL
(
shown
()),
this
,
SLOT
(
showKeyboard
()));
#else
mKeyboardPalette
=
UBKeyboardPalette
::
create
(
mTransparentDrawingView
);
mKeyboardPalette
->
setParent
(
mTransparentDrawingView
);
#endif
connect
(
mKeyboardPalette
,
SIGNAL
(
keyboardActivated
(
bool
)),
mTransparentDrawingView
,
SLOT
(
virtualKeyboardActivated
(
bool
)));
connect
(
mKeyboardPalette
,
SIGNAL
(
moved
(
QPoint
)),
this
,
SLOT
(
refreshMask
()));
}
...
...
@@ -160,6 +166,11 @@ UBDesktopAnnotationController::UBDesktopAnnotationController(QObject *parent)
void
UBDesktopAnnotationController
::
showKeyboard
(
bool
show
)
{
#ifdef Q_WS_X11
if
(
!
mTransparentDrawingView
->
isVisible
())
return
;
#endif
if
(
mKeyboardPalette
)
{
if
(
show
)
...
...
@@ -170,6 +181,11 @@ void UBDesktopAnnotationController::showKeyboard(bool show)
}
}
void
UBDesktopAnnotationController
::
showKeyboard
()
{
if
(
UBApplication
::
mainWindow
->
actionVirtualKeyboard
->
isChecked
())
mKeyboardPalette
->
show
();
}
UBDesktopAnnotationController
::~
UBDesktopAnnotationController
()
{
...
...
src/desktop/UBDesktopAnnotationController.h
View file @
c5f6a9cf
...
...
@@ -71,6 +71,7 @@ class UBDesktopAnnotationController : public QObject
void
updateBackground
();
void
showKeyboard
(
bool
show
);
void
showKeyboard
();
//X11 virtual keyboard working only needed
signals
:
/**
...
...
src/tools/UBGraphicsTriangle.cpp
View file @
c5f6a9cf
...
...
@@ -802,6 +802,7 @@ void UBGraphicsTriangle::hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
mVFlipSvgItem
->
setVisible
(
false
);
mHFlipSvgItem
->
setVisible
(
false
);
mRotateSvgItem
->
setVisible
(
false
);
UBDrawingController
::
drawingController
()
->
mActiveRuler
=
NULL
;
event
->
accept
();
update
();
}
...
...
@@ -824,21 +825,20 @@ void UBGraphicsTriangle::hoverMoveEvent(QGraphicsSceneHoverEvent *event)
else
if
(
closeButtonRect
().
contains
(
event
->
pos
()))
setCursor
(
closeCursor
());
else
if
(
hFlipRect
().
contains
(
event
->
pos
())
||
vFlipRect
().
contains
(
event
->
pos
()))
setCursor
(
flipCursor
());
||
vFlipRect
().
contains
(
event
->
pos
()))
setCursor
(
flipCursor
());
else
if
(
rotateRect
().
contains
(
event
->
pos
()))
setCursor
(
rotateCursor
());
else
setCursor
(
moveCursor
());
event
->
accept
();
}
else
if
(
UBDrawingController
::
drawingController
()
->
isDrawingTool
())
{
event
->
accept
();
}
}
void
UBGraphicsTriangle
::
StartLine
(
const
QPointF
&
scenePos
,
qreal
width
)
{
qDebug
()
<<
"morientation"
<<
mOrientation
;
//qDebug() << "triangle rect()" << rect();
QPointF
itemPos
=
mapFromScene
(
scenePos
);
qreal
y
;
...
...
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