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
d50fb9a1
Commit
d50fb9a1
authored
May 25, 2012
by
Claudio Valerio
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'Sankore-1.40' of github.com:Sankore/Sankore-3.1 into Sankore-1.40
parents
8028185f
1f9ac968
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
12 deletions
+6
-12
UBBoardController.cpp
src/board/UBBoardController.cpp
+1
-2
UBLibraryController.cpp
src/board/UBLibraryController.cpp
+1
-1
UBGraphicsAudioItem.cpp
src/domain/UBGraphicsAudioItem.cpp
+1
-0
UBGraphicsVideoItem.cpp
src/domain/UBGraphicsVideoItem.cpp
+2
-0
UBLibraryWidget.cpp
src/gui/UBLibraryWidget.cpp
+1
-9
No files found.
src/board/UBBoardController.cpp
View file @
d50fb9a1
...
@@ -1823,8 +1823,7 @@ UBGraphicsWidgetItem *UBBoardController::addW3cWidget(const QUrl &pUrl, const QP
...
@@ -1823,8 +1823,7 @@ UBGraphicsWidgetItem *UBBoardController::addW3cWidget(const QUrl &pUrl, const QP
tmpItem
->
widgetWebView
()
->
takeSnapshot
().
save
(
snapshotPath
,
"PNG"
);
tmpItem
->
widgetWebView
()
->
takeSnapshot
().
save
(
snapshotPath
,
"PNG"
);
}
}
return
w3cWidgetItem
;
return
0
;
}
}
void
UBBoardController
::
cut
()
void
UBBoardController
::
cut
()
...
...
src/board/UBLibraryController.cpp
View file @
d50fb9a1
...
@@ -155,7 +155,7 @@ void UBLibraryController::routeItem(QString& pItem, QString pMiddleDirectory)
...
@@ -155,7 +155,7 @@ void UBLibraryController::routeItem(QString& pItem, QString pMiddleDirectory)
}
}
destination
=
UBFileSystemUtils
::
normalizeFilePath
(
destination
+
"/"
+
itemToRoute
.
fileName
());
destination
=
UBFileSystemUtils
::
normalizeFilePath
(
destination
+
"/"
+
itemToRoute
.
fileName
());
QFile
::
copy
(
pItem
,
destination
);
UBFileSystemUtils
::
copyFile
(
QUrl
(
pItem
).
toLocalFile
(),
destination
,
false
);
}
}
}
}
...
...
src/domain/UBGraphicsAudioItem.cpp
View file @
d50fb9a1
...
@@ -93,6 +93,7 @@ UBItem* UBGraphicsAudioItem::deepCopy() const
...
@@ -93,6 +93,7 @@ UBItem* UBGraphicsAudioItem::deepCopy() const
QUrl
audioUrl
=
this
->
mediaFileUrl
();
QUrl
audioUrl
=
this
->
mediaFileUrl
();
UBGraphicsAudioItem
*
copy
=
new
UBGraphicsAudioItem
(
audioUrl
,
parentItem
());
UBGraphicsAudioItem
*
copy
=
new
UBGraphicsAudioItem
(
audioUrl
,
parentItem
());
connect
(
UBApplication
::
boardController
,
SIGNAL
(
activeSceneChanged
()),
copy
,
SLOT
(
activeSceneChanged
()));
copy
->
setPos
(
this
->
pos
());
copy
->
setPos
(
this
->
pos
());
// copy->setZValue(this->zValue());
// copy->setZValue(this->zValue());
...
...
src/domain/UBGraphicsVideoItem.cpp
View file @
d50fb9a1
...
@@ -67,6 +67,8 @@ UBItem* UBGraphicsVideoItem::deepCopy() const
...
@@ -67,6 +67,8 @@ UBItem* UBGraphicsVideoItem::deepCopy() const
UBGraphicsVideoItem
*
copy
=
new
UBGraphicsVideoItem
(
videoUrl
,
parentItem
());
UBGraphicsVideoItem
*
copy
=
new
UBGraphicsVideoItem
(
videoUrl
,
parentItem
());
connect
(
UBApplication
::
boardController
,
SIGNAL
(
activeSceneChanged
()),
copy
,
SLOT
(
activeSceneChanged
()));
copy
->
setPos
(
this
->
pos
());
copy
->
setPos
(
this
->
pos
());
// copy->setZValue(this->zValue());
// copy->setZValue(this->zValue());
UBGraphicsItem
::
assignZValue
(
copy
,
this
->
zValue
());
UBGraphicsItem
::
assignZValue
(
copy
,
this
->
zValue
());
...
...
src/gui/UBLibraryWidget.cpp
View file @
d50fb9a1
...
@@ -362,16 +362,8 @@ void UBLibraryWidget::dropEvent(QDropEvent *event)
...
@@ -362,16 +362,8 @@ void UBLibraryWidget::dropEvent(QDropEvent *event)
if
(
pMimeData
->
hasUrls
()){
if
(
pMimeData
->
hasUrls
()){
QList
<
QUrl
>
urlList
=
pMimeData
->
urls
();
QList
<
QUrl
>
urlList
=
pMimeData
->
urls
();
for
(
int
i
=
0
;
i
<
urlList
.
size
()
&&
i
<
32
;
++
i
){
for
(
int
i
=
0
;
i
<
urlList
.
size
()
&&
i
<
32
;
++
i
){
QString
filePath
;
QString
crntPath
=
urlList
.
at
(
i
).
toString
();
QString
crntPath
=
urlList
.
at
(
i
).
toString
();
mLibraryController
->
importItemOnLibrary
(
crntPath
);
if
(
crntPath
.
startsWith
(
"file:"
)
||
crntPath
.
startsWith
(
"/"
)){
filePath
=
QUrl
(
crntPath
).
toLocalFile
();
}
else
{
filePath
=
crntPath
;
}
mLibraryController
->
importItemOnLibrary
(
filePath
);
bDropAccepted
=
true
;
bDropAccepted
=
true
;
}
}
}
}
...
...
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