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
dc272ce3
Commit
dc272ce3
authored
Oct 08, 2012
by
Claudio Valerio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed issue 1131 and 1161
parent
3607318f
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
87 additions
and
113 deletions
+87
-113
UBBoardView.cpp
src/board/UBBoardView.cpp
+48
-49
UBGraphicsScene.cpp
src/domain/UBGraphicsScene.cpp
+9
-11
UBGraphicsWidgetItem.cpp
src/domain/UBGraphicsWidgetItem.cpp
+14
-34
UBGraphicsWidgetItem.h
src/domain/UBGraphicsWidgetItem.h
+16
-19
No files found.
src/board/UBBoardView.cpp
View file @
dc272ce3
...
@@ -781,7 +781,6 @@ void UBBoardView::handleItemMouseMove(QMouseEvent *event)
...
@@ -781,7 +781,6 @@ void UBBoardView::handleItemMouseMove(QMouseEvent *event)
// at simple - in google map widget - mouse move events doesn't comes to web page from rectangle of wearch bar on bottom right corner of widget.
// at simple - in google map widget - mouse move events doesn't comes to web page from rectangle of wearch bar on bottom right corner of widget.
if
(
mWidgetMoved
&&
UBGraphicsW3CWidgetItem
::
Type
==
movingItem
->
type
())
if
(
mWidgetMoved
&&
UBGraphicsW3CWidgetItem
::
Type
==
movingItem
->
type
())
movingItem
->
setPos
(
posBeforeMove
);
movingItem
->
setPos
(
posBeforeMove
);
}
}
}
}
...
...
src/domain/UBGraphicsScene.cpp
View file @
dc272ce3
...
@@ -303,9 +303,7 @@ UBGraphicsScene::UBGraphicsScene(UBDocumentProxy* parent, bool enableUndoRedoSta
...
@@ -303,9 +303,7 @@ UBGraphicsScene::UBGraphicsScene(UBDocumentProxy* parent, bool enableUndoRedoSta
UBGraphicsScene
::~
UBGraphicsScene
()
UBGraphicsScene
::~
UBGraphicsScene
()
{
{
if
(
mCurrentStroke
)
if
(
mCurrentStroke
&&
mCurrentStroke
->
polygons
().
empty
()){
if
(
mCurrentStroke
->
polygons
().
empty
())
{
delete
mCurrentStroke
;
delete
mCurrentStroke
;
mCurrentStroke
=
NULL
;
mCurrentStroke
=
NULL
;
}
}
...
...
src/domain/UBGraphicsWidgetItem.cpp
View file @
dc272ce3
...
@@ -119,7 +119,8 @@ void UBGraphicsWidgetItem::initialize()
...
@@ -119,7 +119,8 @@ void UBGraphicsWidgetItem::initialize()
void
UBGraphicsWidgetItem
::
onLinkClicked
(
const
QUrl
&
url
)
void
UBGraphicsWidgetItem
::
onLinkClicked
(
const
QUrl
&
url
)
{
{
UBApplication
::
webController
->
loadUrl
(
url
);
//UBApplication::webController->loadUrl(url);
load
(
url
);
}
}
void
UBGraphicsWidgetItem
::
initialLayoutCompleted
()
void
UBGraphicsWidgetItem
::
initialLayoutCompleted
()
...
@@ -147,24 +148,6 @@ QString UBGraphicsWidgetItem::mainHtmlFileName()
...
@@ -147,24 +148,6 @@ QString UBGraphicsWidgetItem::mainHtmlFileName()
return
mMainHtmlFileName
;
return
mMainHtmlFileName
;
}
}
bool
UBGraphicsWidgetItem
::
hasEmbededObjects
()
{
if
(
page
()
->
mainFrame
())
{
QList
<
UBWebKitUtils
::
HtmlObject
>
htmlObjects
=
UBWebKitUtils
::
objectsInFrame
(
page
()
->
mainFrame
());
return
htmlObjects
.
length
()
>
0
;
}
return
false
;
}
bool
UBGraphicsWidgetItem
::
hasEmbededFlash
()
{
if
(
hasEmbededObjects
())
return
page
()
->
mainFrame
()
->
toHtml
().
contains
(
"application/x-shockwave-flash"
);
else
return
false
;
}
bool
UBGraphicsWidgetItem
::
canBeContent
()
bool
UBGraphicsWidgetItem
::
canBeContent
()
{
{
// if we under MAC OS
// if we under MAC OS
...
@@ -886,9 +869,6 @@ UBGraphicsW3CWidgetItem::UBGraphicsW3CWidgetItem(const QUrl& pWidgetUrl, QGraphi
...
@@ -886,9 +869,6 @@ UBGraphicsW3CWidgetItem::UBGraphicsW3CWidgetItem(const QUrl& pWidgetUrl, QGraphi
/* is it a valid local file ? */
/* is it a valid local file ? */
QFile
f
(
mMainHtmlUrl
.
toLocalFile
());
QFile
f
(
mMainHtmlUrl
.
toLocalFile
());
qDebug
()
<<
mMainHtmlFileName
;
qDebug
()
<<
mMainHtmlUrl
.
toLocalFile
();
if
(
!
f
.
exists
())
if
(
!
f
.
exists
())
mMainHtmlUrl
=
QUrl
(
mMainHtmlFileName
);
mMainHtmlUrl
=
QUrl
(
mMainHtmlFileName
);
...
...
src/domain/UBGraphicsWidgetItem.h
View file @
dc272ce3
...
@@ -62,9 +62,6 @@ class UBGraphicsWidgetItem : public QGraphicsWebView, public UBItem, public UBRe
...
@@ -62,9 +62,6 @@ class UBGraphicsWidgetItem : public QGraphicsWebView, public UBItem, public UBRe
QUrl
widgetUrl
();
QUrl
widgetUrl
();
QString
mainHtmlFileName
();
QString
mainHtmlFileName
();
bool
hasEmbededObjects
();
bool
hasEmbededFlash
();
bool
canBeContent
();
bool
canBeContent
();
bool
canBeTool
();
bool
canBeTool
();
...
...
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