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
Utilities
KBackup
Commits
9608aa7f
Commit
9608aa7f
authored
Sep 24, 2020
by
Laurent Montel
😁
Browse files
Fix clazy warning
parent
82ab6cae
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/Archiver.cxx
View file @
9608aa7f
...
...
@@ -927,7 +927,7 @@ bool Archiver::getNextSlice()
QString
prefix
=
filePrefix
.
isEmpty
()
?
QStringLiteral
(
"backup"
)
:
filePrefix
;
if
(
targetURL
.
isLocalFile
()
)
baseName
=
targetURL
.
path
()
+
QLatin1Char
(
'/'
)
+
prefix
+
QDateTime
::
currentDateTime
().
toString
(
Q
Latin1
String
(
"_yyyy.MM.dd-hh.mm.ss"
));
baseName
=
targetURL
.
path
()
+
QLatin1Char
(
'/'
)
+
prefix
+
QDateTime
::
currentDateTime
().
toString
(
QString
Literal
(
"_yyyy.MM.dd-hh.mm.ss"
));
else
baseName
=
QDir
::
tempPath
()
+
QLatin1Char
(
'/'
)
+
prefix
+
QDateTime
::
currentDateTime
().
toString
(
QStringLiteral
(
"_yyyy.MM.dd-hh.mm.ss"
));
}
...
...
@@ -969,7 +969,7 @@ bool Archiver::getNextSlice()
//--------------------------------------------------------------------------------
void
Archiver
::
emitArchiveError
()
const
void
Archiver
::
emitArchiveError
()
{
QString
err
;
...
...
src/Archiver.hxx
View file @
9608aa7f
...
...
@@ -108,17 +108,17 @@ class Archiver : public QObject
void
setForceFullBackup
(
bool
force
=
true
);
Q_SIGNALS:
void
inProgress
(
bool
runs
)
const
;
void
logging
(
const
QString
&
)
const
;
void
warning
(
const
QString
&
)
const
;
void
targetCapacity
(
KIO
::
filesize_t
bytes
)
const
;
void
sliceProgress
(
int
percent
)
const
;
void
fileProgress
(
int
percent
)
const
;
void
newSlice
(
int
)
const
;
void
totalFilesChanged
(
int
)
const
;
void
totalBytesChanged
(
KIO
::
filesize_t
)
const
;
void
elapsedChanged
(
const
QTime
&
)
const
;
void
backupTypeChanged
(
bool
incremental
)
const
;
void
inProgress
(
bool
runs
);
void
logging
(
const
QString
&
);
void
warning
(
const
QString
&
);
void
targetCapacity
(
KIO
::
filesize_t
bytes
);
void
sliceProgress
(
int
percent
);
void
fileProgress
(
int
percent
);
void
newSlice
(
int
);
void
totalFilesChanged
(
int
);
void
totalBytesChanged
(
KIO
::
filesize_t
);
void
elapsedChanged
(
const
QTime
&
);
void
backupTypeChanged
(
bool
incremental
);
private
Q_SLOTS
:
void
slotResult
(
KJob
*
);
...
...
@@ -150,7 +150,7 @@ class Archiver : public QObject
// return true if given fileName matches any of the defined filters
bool
fileIsFiltered
(
const
QString
&
fileName
)
const
;
void
emitArchiveError
()
const
;
void
emitArchiveError
();
static
bool
UDSlessThan
(
const
KIO
::
UDSEntry
&
left
,
const
KIO
::
UDSEntry
&
right
);
...
...
src/Selector.cxx
View file @
9608aa7f
...
...
@@ -261,7 +261,7 @@ Selector::Selector(QWidget *parent, KActionCollection *actionCollection)
QFileInfo
info
(
QStringLiteral
(
"/"
));
item
->
setSize
(
info
.
size
());
item
->
setLastModified
(
info
.
lastModified
());
item
->
setIcon
(
QIcon
::
fromTheme
(
Q
Latin1
String
(
"folder"
)));
item
->
setIcon
(
QIcon
::
fromTheme
(
QString
Literal
(
"folder"
)));
setExpanded
(
item
->
index
(),
true
);
fillTree
(
item
,
QStringLiteral
(
"/"
),
false
);
...
...
Write
Preview
Supports
Markdown
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