Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
08bc63f0
Commit
08bc63f0
authored
Jul 19, 2012
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: Pictureflow: kill some warnings
parent
58dc2946
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
modules/gui/qt4/util/pictureflow.cpp
modules/gui/qt4/util/pictureflow.cpp
+6
-0
No files found.
modules/gui/qt4/util/pictureflow.cpp
View file @
08bc63f0
...
@@ -338,6 +338,7 @@ static QRgb blendColor(QRgb c1, QRgb c2, int blend)
...
@@ -338,6 +338,7 @@ static QRgb blendColor(QRgb c1, QRgb c2, int blend)
static
QImage
*
prepareSurface
(
const
QImage
*
slideImage
,
int
w
,
int
h
,
QRgb
bgcolor
,
static
QImage
*
prepareSurface
(
const
QImage
*
slideImage
,
int
w
,
int
h
,
QRgb
bgcolor
,
PictureFlow
::
ReflectionEffect
reflectionEffect
,
QModelIndex
index
)
PictureFlow
::
ReflectionEffect
reflectionEffect
,
QModelIndex
index
)
{
{
Q_UNUSED
(
bgcolor
);
Qt
::
TransformationMode
mode
=
Qt
::
SmoothTransformation
;
Qt
::
TransformationMode
mode
=
Qt
::
SmoothTransformation
;
QImage
img
=
slideImage
->
scaled
(
w
,
h
,
Qt
::
KeepAspectRatio
,
mode
);
QImage
img
=
slideImage
->
scaled
(
w
,
h
,
Qt
::
KeepAspectRatio
,
mode
);
...
@@ -1115,12 +1116,16 @@ void PictureFlowPrivate::triggerRender()
...
@@ -1115,12 +1116,16 @@ void PictureFlowPrivate::triggerRender()
void
PictureFlowPrivate
::
insertSlide
(
int
index
,
const
QImage
&
image
)
void
PictureFlowPrivate
::
insertSlide
(
int
index
,
const
QImage
&
image
)
{
{
Q_UNUSED
(
index
);
Q_UNUSED
(
image
);
// state->slideImages.insert(index, new QImage(image));
// state->slideImages.insert(index, new QImage(image));
// triggerRender();
// triggerRender();
}
}
void
PictureFlowPrivate
::
replaceSlide
(
int
index
,
const
QImage
&
image
)
void
PictureFlowPrivate
::
replaceSlide
(
int
index
,
const
QImage
&
image
)
{
{
Q_UNUSED
(
index
);
Q_UNUSED
(
image
);
// Q_ASSERT((index >= 0) && (index < state->slideImages.count()));
// Q_ASSERT((index >= 0) && (index < state->slideImages.count()));
// QImage* i = image.isNull() ? 0 : new QImage(image);
// QImage* i = image.isNull() ? 0 : new QImage(image);
...
@@ -1131,6 +1136,7 @@ void PictureFlowPrivate::replaceSlide(int index, const QImage& image)
...
@@ -1131,6 +1136,7 @@ void PictureFlowPrivate::replaceSlide(int index, const QImage& image)
void
PictureFlowPrivate
::
removeSlide
(
int
index
)
void
PictureFlowPrivate
::
removeSlide
(
int
index
)
{
{
Q_UNUSED
(
index
);
// delete state->slideImages[index];
// delete state->slideImages[index];
// state->slideImages.remove(index);
// state->slideImages.remove(index);
// triggerRender();
// triggerRender();
...
...
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