Commit 9608aa7f authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix clazy warning

parent 82ab6cae
...@@ -927,7 +927,7 @@ bool Archiver::getNextSlice() ...@@ -927,7 +927,7 @@ bool Archiver::getNextSlice()
QString prefix = filePrefix.isEmpty() ? QStringLiteral("backup") : filePrefix; QString prefix = filePrefix.isEmpty() ? QStringLiteral("backup") : filePrefix;
if ( targetURL.isLocalFile() ) if ( targetURL.isLocalFile() )
baseName = targetURL.path() + QLatin1Char('/') + prefix + QDateTime::currentDateTime().toString(QLatin1String("_yyyy.MM.dd-hh.mm.ss")); baseName = targetURL.path() + QLatin1Char('/') + prefix + QDateTime::currentDateTime().toString(QStringLiteral("_yyyy.MM.dd-hh.mm.ss"));
else else
baseName = QDir::tempPath() + QLatin1Char('/') + prefix + QDateTime::currentDateTime().toString(QStringLiteral("_yyyy.MM.dd-hh.mm.ss")); baseName = QDir::tempPath() + QLatin1Char('/') + prefix + QDateTime::currentDateTime().toString(QStringLiteral("_yyyy.MM.dd-hh.mm.ss"));
} }
...@@ -969,7 +969,7 @@ bool Archiver::getNextSlice() ...@@ -969,7 +969,7 @@ bool Archiver::getNextSlice()
//-------------------------------------------------------------------------------- //--------------------------------------------------------------------------------
void Archiver::emitArchiveError() const void Archiver::emitArchiveError()
{ {
QString err; QString err;
......
...@@ -108,17 +108,17 @@ class Archiver : public QObject ...@@ -108,17 +108,17 @@ class Archiver : public QObject
void setForceFullBackup(bool force = true); void setForceFullBackup(bool force = true);
Q_SIGNALS: Q_SIGNALS:
void inProgress(bool runs) const; void inProgress(bool runs);
void logging(const QString &) const; void logging(const QString &);
void warning(const QString &) const; void warning(const QString &);
void targetCapacity(KIO::filesize_t bytes) const; void targetCapacity(KIO::filesize_t bytes);
void sliceProgress(int percent) const; void sliceProgress(int percent);
void fileProgress(int percent) const; void fileProgress(int percent);
void newSlice(int) const; void newSlice(int);
void totalFilesChanged(int) const; void totalFilesChanged(int);
void totalBytesChanged(KIO::filesize_t) const; void totalBytesChanged(KIO::filesize_t);
void elapsedChanged(const QTime &) const; void elapsedChanged(const QTime &);
void backupTypeChanged(bool incremental) const; void backupTypeChanged(bool incremental);
private Q_SLOTS: private Q_SLOTS:
void slotResult(KJob *); void slotResult(KJob *);
...@@ -150,7 +150,7 @@ class Archiver : public QObject ...@@ -150,7 +150,7 @@ class Archiver : public QObject
// return true if given fileName matches any of the defined filters // return true if given fileName matches any of the defined filters
bool fileIsFiltered(const QString &fileName) const; bool fileIsFiltered(const QString &fileName) const;
void emitArchiveError() const; void emitArchiveError();
static bool UDSlessThan(const KIO::UDSEntry &left, const KIO::UDSEntry &right); static bool UDSlessThan(const KIO::UDSEntry &left, const KIO::UDSEntry &right);
......
...@@ -261,7 +261,7 @@ Selector::Selector(QWidget *parent, KActionCollection *actionCollection) ...@@ -261,7 +261,7 @@ Selector::Selector(QWidget *parent, KActionCollection *actionCollection)
QFileInfo info(QStringLiteral("/")); QFileInfo info(QStringLiteral("/"));
item->setSize(info.size()); item->setSize(info.size());
item->setLastModified(info.lastModified()); item->setLastModified(info.lastModified());
item->setIcon(QIcon::fromTheme(QLatin1String("folder"))); item->setIcon(QIcon::fromTheme(QStringLiteral("folder")));
setExpanded(item->index(), true); setExpanded(item->index(), true);
fillTree(item, QStringLiteral("/"), false); fillTree(item, QStringLiteral("/"), false);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment