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
Plasma
Plasma Desktop
Commits
7c341491
Commit
7c341491
authored
Mar 16, 2022
by
Laurent Montel
Browse files
Fix clazy warning
parent
556788a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
containments/desktop/plugins/folder/foldermodel.cpp
View file @
7c341491
...
...
@@ -67,10 +67,13 @@
#include
<Plasma/Containment>
#include
<Plasma/Corona>
#include
<chrono>
#include
<sys/stat.h>
#include
<sys/types.h>
#include
<unistd.h>
using
namespace
std
::
chrono_literals
;
Q_LOGGING_CATEGORY
(
FOLDERMODEL
,
"plasma.containments.desktop.folder.foldermodel"
)
...
...
@@ -225,7 +228,7 @@ FolderModel::FolderModel(QObject *parent)
* adding an entry in the map and it showing up in the model should be
* small, this should rarely, if ever happen.
*/
m_dropTargetPositionsCleanup
->
setInterval
(
10
000
);
m_dropTargetPositionsCleanup
->
setInterval
(
10
s
);
m_dropTargetPositionsCleanup
->
setSingleShot
(
true
);
connect
(
m_dropTargetPositionsCleanup
,
&
QTimer
::
timeout
,
this
,
[
this
]()
{
if
(
!
m_dropTargetPositions
.
isEmpty
())
{
...
...
@@ -375,7 +378,7 @@ void FolderModel::setUrl(const QString &url)
m_dirWatch
=
new
KDirWatch
(
this
);
connect
(
m_dirWatch
,
&
KDirWatch
::
created
,
this
,
&
FolderModel
::
iconNameChanged
);
connect
(
m_dirWatch
,
&
KDirWatch
::
dirty
,
this
,
&
FolderModel
::
iconNameChanged
);
m_dirWatch
->
addFile
(
resolvedNewUrl
.
toLocalFile
()
+
Q
Latin1
String
(
"/.directory"
));
m_dirWatch
->
addFile
(
resolvedNewUrl
.
toLocalFile
()
+
QString
Literal
(
"/.directory"
));
}
if
(
dragging
())
{
...
...
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