Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Graphics
Thumbnailers
Commits
16460214
Commit
16460214
authored
Aug 13, 2022
by
Nicolas Fella
Browse files
Don't reimplement ThumbCreator::flags()
It does the same thing as the default implementation
parent
130af815
Pipeline
#217545
passed with stage
in 45 seconds
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
mobipocket/mobithumbnail.cpp
View file @
16460214
...
...
@@ -32,9 +32,3 @@ bool MobiThumbnail::create(const QString &path, int width, int height, QImage &i
img
=
doc
.
thumbnail
();
return
!
img
.
isNull
();
}
ThumbCreator
::
Flags
MobiThumbnail
::
flags
()
const
{
return
static_cast
<
Flags
>
(
None
);
}
mobipocket/mobithumbnail.h
View file @
16460214
...
...
@@ -17,7 +17,6 @@ class MobiThumbnail : public ThumbCreator
public:
MobiThumbnail
()
{}
bool
create
(
const
QString
&
path
,
int
,
int
,
QImage
&
img
)
override
;
Flags
flags
()
const
override
;
};
#endif
ps/gscreator.cpp
View file @
16460214
...
...
@@ -475,11 +475,6 @@ bool GSCreator::create(const QString &path, int width, int height, QImage &img)
return
ok
&&
loaded
;
}
ThumbCreator
::
Flags
GSCreator
::
flags
()
const
{
return
static_cast
<
Flags
>
(
None
);
}
void
GSCreator
::
comment
(
Name
name
)
{
switch
(
name
)
{
...
...
ps/gscreator.h
View file @
16460214
...
...
@@ -28,7 +28,6 @@ class GSCreator : public ThumbCreator, public KDSCCommentHandler
public:
GSCreator
()
{}
bool
create
(
const
QString
&
path
,
int
,
int
,
QImage
&
img
)
override
;
Flags
flags
()
const
override
;
void
comment
(
Name
name
)
override
;
private:
...
...
raw/rawcreator.cpp
View file @
16460214
...
...
@@ -102,8 +102,3 @@ bool RAWCreator::create(const QString &path, int width, int height, QImage &img)
}
return
loaded
;
}
ThumbCreator
::
Flags
RAWCreator
::
flags
()
const
{
return
(
Flags
)(
0
);
}
raw/rawcreator.h
View file @
16460214
...
...
@@ -28,7 +28,6 @@ public:
RAWCreator
();
~
RAWCreator
()
override
;
bool
create
(
const
QString
&
path
,
int
width
,
int
height
,
QImage
&
img
)
override
;
Flags
flags
()
const
override
;
};
#endif
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment