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
54214f93
Commit
54214f93
authored
Jan 12, 2016
by
Craig Watson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add videos at their native size (not 320x240)
parent
93dc2538
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
UBGraphicsMediaItem.cpp
src/domain/UBGraphicsMediaItem.cpp
+3
-0
UBGraphicsMediaItem.h
src/domain/UBGraphicsMediaItem.h
+2
-2
No files found.
src/domain/UBGraphicsMediaItem.cpp
View file @
54214f93
...
...
@@ -121,6 +121,9 @@ UBGraphicsMediaItem::UBGraphicsMediaItem(const QUrl& pMediaFileUrl, QGraphicsIte
connect
(
Delegate
(),
SIGNAL
(
showOnDisplayChanged
(
bool
)),
this
,
SLOT
(
showOnDisplayChanged
(
bool
)));
connect
(
mMediaObject
,
SIGNAL
(
videoAvailableChanged
(
bool
)),
this
,
SLOT
(
hasMediaChanged
(
bool
)));
// Resize the widget as soon as the video's native size is known (it isn't at this stage)
connect
(
mVideoItem
,
SIGNAL
(
nativeSizeChanged
(
QSizeF
)),
this
,
SLOT
(
resize
(
QSizeF
)));
}
...
...
src/domain/UBGraphicsMediaItem.h
View file @
54214f93
...
...
@@ -112,8 +112,6 @@ public:
virtual
void
setPos
(
qreal
x
,
qreal
y
);
virtual
void
setMatrix
(
const
QMatrix
&
matrix
,
bool
combine
=
false
);
virtual
void
setTransform
(
const
QTransform
&
matrix
,
bool
combine
=
false
);
virtual
void
resize
(
qreal
w
,
qreal
h
);
virtual
void
resize
(
const
QSizeF
&
pSize
);
public
slots
:
...
...
@@ -123,6 +121,8 @@ public slots:
void
activeSceneChanged
();
void
hasMediaChanged
(
bool
hasMedia
);
void
showOnDisplayChanged
(
bool
shown
);
virtual
void
resize
(
qreal
w
,
qreal
h
);
virtual
void
resize
(
const
QSizeF
&
pSize
);
protected
:
...
...
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