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
ac1c9314
Commit
ac1c9314
authored
Aug 16, 2012
by
Aleksei Kanash
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed adding of found audio files to document.
Improved recognition of song's title. Some code removed from header.
parent
1ab1945f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
11 deletions
+14
-11
UBBoardController.cpp
src/board/UBBoardController.cpp
+1
-1
UBGraphicsMediaItem.cpp
src/domain/UBGraphicsMediaItem.cpp
+12
-0
UBGraphicsMediaItem.h
src/domain/UBGraphicsMediaItem.h
+1
-10
No files found.
src/board/UBBoardController.cpp
View file @
ac1c9314
...
...
@@ -1102,7 +1102,7 @@ UBItem *UBBoardController::downloadFinished(bool pSuccess, QUrl sourceUrl, QStri
QUuid
uuid
=
QUuid
::
createUuid
();
QUrl
url
=
QUrl
::
fromLocalFile
(
UBPersistenceManager
::
persistenceManager
()
->
add
Vide
oFileToDocument
(
selectedDocument
(),
sourceUrl
,
pData
,
uuid
));
->
add
Audi
oFileToDocument
(
selectedDocument
(),
sourceUrl
,
pData
,
uuid
));
audioMediaItem
=
mActiveScene
->
addMedia
(
url
,
false
,
pPos
);
...
...
src/domain/UBGraphicsMediaItem.cpp
View file @
ac1c9314
...
...
@@ -178,6 +178,18 @@ QVariant UBGraphicsMediaItem::itemChange(GraphicsItemChange change, const QVaria
return
UBGraphicsProxyWidget
::
itemChange
(
change
,
value
);
}
void
UBGraphicsMediaItem
::
setSourceUrl
(
const
QUrl
&
pSourceUrl
)
{
UBAudioPresentationWidget
*
pAudioWidget
=
dynamic_cast
<
UBAudioPresentationWidget
*>
(
mAudioWidget
);
if
(
pAudioWidget
)
{
pAudioWidget
->
setTitle
(
UBFileSystemUtils
::
lastPathComponent
(
pSourceUrl
.
toString
()));
}
UBItem
::
setSourceUrl
(
pSourceUrl
);
}
void
UBGraphicsMediaItem
::
clearSource
()
{
QString
path
=
mediaFileUrl
().
toLocalFile
();
...
...
src/domain/UBGraphicsMediaItem.h
View file @
ac1c9314
...
...
@@ -97,16 +97,7 @@ public:
virtual
void
copyItemParameters
(
UBItem
*
copy
)
const
;
virtual
void
setSourceUrl
(
const
QUrl
&
pSourceUrl
)
{
UBAudioPresentationWidget
*
pAudioWidget
=
dynamic_cast
<
UBAudioPresentationWidget
*>
(
mAudioWidget
);
if
(
pAudioWidget
)
{
pAudioWidget
->
setTitle
(
UBFileSystemUtils
::
lastPathComponent
(
pSourceUrl
.
toLocalFile
()));
}
UBItem
::
setSourceUrl
(
pSourceUrl
);
}
virtual
void
setSourceUrl
(
const
QUrl
&
pSourceUrl
);
public
slots
:
...
...
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