Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Graphics
Gwenview
Commits
c7ccb617
Commit
c7ccb617
authored
Mar 16, 2021
by
Arjen Hiemstra
Browse files
Enable fetching mime type from KIO slaves for thumbnail grids
parent
ec4009b8
Changes
2
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
c7ccb617
...
...
@@ -80,6 +80,11 @@ if (KF5ConfigWidgets_VERSION VERSION_GREATER "5.56.0" AND ${Phonon4Qt5_VERSION}
MESSAGE
(
STATUS
"compile without foreach"
)
endif
()
message
(
STATUS
${
KF5KIO_VERSION
}
)
if
(
KF5KIO_VERSION VERSION_GREATER_EQUAL
"5.82.0"
)
add_definitions
(
-DKIO_REQUEST_MIMETYPE
)
endif
()
## Dependencies
find_package
(
JPEG
)
set_package_properties
(
JPEG PROPERTIES URL
"http://libjpeg.sourceforge.net/"
DESCRIPTION
"JPEG image manipulation support"
TYPE REQUIRED
)
...
...
lib/semanticinfo/sorteddirmodel.cpp
View file @
c7ccb617
...
...
@@ -80,6 +80,11 @@ SortedDirModel::SortedDirModel(QObject* parent)
d
->
mSourceModel
=
new
SemanticInfoDirModel
(
this
);
#endif
setSourceModel
(
d
->
mSourceModel
);
#ifdef KIO_REQUEST_MIMETYPE
d
->
mSourceModel
->
dirLister
()
->
setRequestMimeTypeWhileListing
(
true
);
#endif
d
->
mDelayedApplyFiltersTimer
.
setInterval
(
0
);
d
->
mDelayedApplyFiltersTimer
.
setSingleShot
(
true
);
connect
(
&
d
->
mDelayedApplyFiltersTimer
,
&
QTimer
::
timeout
,
this
,
&
SortedDirModel
::
doApplyFilters
);
...
...
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