Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
450
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Commits
d3bf296f
Commit
d3bf296f
authored
3 years ago
by
Pierre Lamot
Committed by
Jean-Baptiste Kempf
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
qt: remove CoverGenerator inheriance from QObject
parent
b1a42541
No related branches found
Branches containing commit
No related tags found
1 merge request
!1023
qt: run all medialibrary operations in a thread
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
modules/gui/qt/Makefile.am
+0
-1
0 additions, 1 deletion
modules/gui/qt/Makefile.am
modules/gui/qt/util/covergenerator.cpp
+9
-9
9 additions, 9 deletions
modules/gui/qt/util/covergenerator.cpp
modules/gui/qt/util/covergenerator.hpp
+10
-14
10 additions, 14 deletions
modules/gui/qt/util/covergenerator.hpp
with
19 additions
and
24 deletions
modules/gui/qt/Makefile.am
+
0
−
1
View file @
d3bf296f
...
...
@@ -412,7 +412,6 @@ nodist_libqt_plugin_la_SOURCES = \
gui/qt/util/asynctask.moc.cpp
\
gui/qt/util/audio_device_model.moc.cpp
\
gui/qt/util/color_scheme_model.moc.cpp
\
gui/qt/util/covergenerator.moc.cpp
\
gui/qt/util/imageluminanceextractor.moc.cpp
\
gui/qt/util/i18n.moc.cpp
\
gui/qt/util/keyhelper.moc.cpp
\
...
...
This diff is collapsed.
Click to expand it.
modules/gui/qt/util/covergenerator.cpp
+
9
−
9
View file @
d3bf296f
...
...
@@ -60,49 +60,49 @@ CoverGenerator::CoverGenerator(vlc_medialibrary_t * ml, const MLItemId & itemId)
// Interface
//-------------------------------------------------------------------------------------------------
/* Q_INVOKABLE */
MLItemId
CoverGenerator
::
getId
()
MLItemId
CoverGenerator
::
getId
()
{
return
m_id
;
}
//-------------------------------------------------------------------------------------------------
/* Q_INVOKABLE */
void
CoverGenerator
::
setSize
(
const
QSize
&
size
)
void
CoverGenerator
::
setSize
(
const
QSize
&
size
)
{
m_size
=
size
;
}
/* Q_INVOKABLE */
void
CoverGenerator
::
setCountX
(
int
x
)
void
CoverGenerator
::
setCountX
(
int
x
)
{
m_countX
=
x
;
}
/* Q_INVOKABLE */
void
CoverGenerator
::
setCountY
(
int
y
)
void
CoverGenerator
::
setCountY
(
int
y
)
{
m_countY
=
y
;
}
/* Q_INVOKABLE */
void
CoverGenerator
::
setSplit
(
Split
split
)
void
CoverGenerator
::
setSplit
(
Split
split
)
{
m_split
=
split
;
}
/* Q_INVOKABLE */
void
CoverGenerator
::
setSmooth
(
bool
enabled
)
void
CoverGenerator
::
setSmooth
(
bool
enabled
)
{
m_smooth
=
enabled
;
}
/* Q_INVOKABLE */
void
CoverGenerator
::
setBlur
(
int
radius
)
void
CoverGenerator
::
setBlur
(
int
radius
)
{
m_blur
=
radius
;
}
/* Q_INVOKABLE */
void
CoverGenerator
::
setDefaultThumbnail
(
const
QString
&
fileName
)
void
CoverGenerator
::
setDefaultThumbnail
(
const
QString
&
fileName
)
{
m_default
=
fileName
;
}
/* Q_INVOKABLE */
void
CoverGenerator
::
setPrefix
(
const
QString
&
prefix
)
void
CoverGenerator
::
setPrefix
(
const
QString
&
prefix
)
{
m_prefix
=
prefix
;
}
...
...
This diff is collapsed.
Click to expand it.
modules/gui/qt/util/covergenerator.hpp
+
10
−
14
View file @
d3bf296f
...
...
@@ -38,12 +38,8 @@
struct
vlc_medialibrary_t
;
class
MLItemId
;
class
CoverGenerator
:
public
QObject
class
CoverGenerator
{
Q_OBJECT
Q_ENUMS
(
Split
)
public:
// Enums
enum
Split
{
...
...
@@ -55,26 +51,26 @@ public:
CoverGenerator
(
vlc_medialibrary_t
*
ml
,
const
MLItemId
&
itemId
);
public
:
// Interface
Q_INVOKABLE
MLItemId
getId
();
MLItemId
getId
();
Q_INVOKABLE
void
setSize
(
const
QSize
&
size
);
void
setSize
(
const
QSize
&
size
);
Q_INVOKABLE
void
setCountX
(
int
x
);
Q_INVOKABLE
void
setCountY
(
int
y
);
void
setCountX
(
int
x
);
void
setCountY
(
int
y
);
// NOTE: Do we want to divide or duplicate thumbnails to reach the proper count ?
Q_INVOKABLE
void
setSplit
(
Split
split
);
void
setSplit
(
Split
split
);
// NOTE: Applies SmoothTransformation to thumbnails. Disabled by default.
Q_INVOKABLE
void
setSmooth
(
bool
enabled
);
void
setSmooth
(
bool
enabled
);
// NOTE: You need to specify a radius to enable blur, 8 looks good.
Q_INVOKABLE
void
setBlur
(
int
radius
);
void
setBlur
(
int
radius
);
Q_INVOKABLE
void
setDefaultThumbnail
(
const
QString
&
fileName
);
void
setDefaultThumbnail
(
const
QString
&
fileName
);
// NOTE: This lets us enforce a specific prefix for the cover fileName.
Q_INVOKABLE
void
setPrefix
(
const
QString
&
prefix
);
void
setPrefix
(
const
QString
&
prefix
);
bool
cachedFileAvailable
()
const
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment