Commit 93441618 authored by Laurent Montel's avatar Laurent Montel 😁

GIT_SILENT: coding style

parent 67e985a2
......@@ -45,7 +45,6 @@ Q_SIGNALS:
void info(const QString &str);
void terminated();
public Q_SLOTS:
void slotTaskCanceled();
......
......@@ -37,7 +37,6 @@ private:
void slotSelectAll();
void slotUnselectAll();
enum DataType {
ResourceIdentifier = Qt::UserRole + 1
};
......
......@@ -279,9 +279,9 @@ void PimSettingExporterWindow::slotSaveLog()
void PimSettingExporterWindow::slotBackupData()
{
if (KMessageBox::warningContinueCancel(
this,
i18n("Please quit all kdepim applications before backing up your data."),
i18n("Backup")) == KMessageBox::Cancel) {
this,
i18n("Please quit all kdepim applications before backing up your data."),
i18n("Backup")) == KMessageBox::Cancel) {
return;
}
backupData();
......@@ -355,10 +355,10 @@ void PimSettingExporterWindow::slotRestoreData()
void PimSettingExporterWindow::loadData(const QString &filename, const QString &templateFile)
{
if (KMessageBox::warningYesNo(
this,
i18n("Before restoring data you must close all kdepim applications. "
"Do you want to continue?"),
i18n("Backup")) == KMessageBox::No) {
this,
i18n("Before restoring data you must close all kdepim applications. "
"Do you want to continue?"),
i18n("Backup")) == KMessageBox::No) {
return;
}
......@@ -366,13 +366,13 @@ void PimSettingExporterWindow::loadData(const QString &filename, const QString &
QString currentFileName = filename;
if (currentFileName.isEmpty()) {
QString recentDirClass;
currentFileName =
QFileDialog::getOpenFileName(
this,
i18n("Restore backup"),
KFileWidget::getStartUrl(QUrl(QStringLiteral("kfiledialog:///pimsettingexporter")),
recentDirClass).toLocalFile(),
QStringLiteral("%1 (*.zip)").arg(i18n("Zip File")));
currentFileName
= QFileDialog::getOpenFileName(
this,
i18n("Restore backup"),
KFileWidget::getStartUrl(QUrl(QStringLiteral("kfiledialog:///pimsettingexporter")),
recentDirClass).toLocalFile(),
QStringLiteral("%1 (*.zip)").arg(i18n("Zip File")));
if (currentFileName.isEmpty()) {
return;
}
......
......@@ -66,15 +66,15 @@ private:
QString mLastArchiveFileName;
// Name, identifier
QHash<QString, QString> mNeedToSyncResources;
LogWidget *mLogWidget= nullptr;
KRecentFilesAction *mRecentFilesAction= nullptr;
QAction *mBackupAction= nullptr;
QAction *mRestoreAction= nullptr;
QAction *mSaveLogAction= nullptr;
QAction *mArchiveStructureInfo= nullptr;
QAction *mShowArchiveInformationsAction= nullptr;
QAction *mShowArchiveInformationsAboutCurrentArchiveAction= nullptr;
PimSettingsBackupRestoreUI *mPimSettingsBackupRestoreUI= nullptr;
LogWidget *mLogWidget = nullptr;
KRecentFilesAction *mRecentFilesAction = nullptr;
QAction *mBackupAction = nullptr;
QAction *mRestoreAction = nullptr;
QAction *mSaveLogAction = nullptr;
QAction *mArchiveStructureInfo = nullptr;
QAction *mShowArchiveInformationsAction = nullptr;
QAction *mShowArchiveInformationsAboutCurrentArchiveAction = nullptr;
PimSettingsBackupRestoreUI *mPimSettingsBackupRestoreUI = nullptr;
PimSettingsTrayIcon *mTrayIcon = nullptr;
};
......
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