Commit 04ba0f6e authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Const'ify variable

parent 7da217c8
Pipeline #170809 passed with stage
in 2 minutes and 23 seconds
......@@ -18,6 +18,7 @@
SelectionTypeDialog::SelectionTypeDialog(bool backupData, QWidget *parent)
: QDialog(parent)
, mSelectionTreeWidget(new SelectionTypeTreeWidget(backupData, this))
{
setWindowTitle(i18nc("@title:window", "Select Type"));
setModal(true);
......@@ -33,7 +34,6 @@ SelectionTypeDialog::SelectionTypeDialog(bool backupData, QWidget *parent)
connect(buttonBox, &QDialogButtonBox::rejected, this, &SelectionTypeDialog::reject);
okButton->setDefault(true);
mSelectionTreeWidget = new SelectionTypeTreeWidget(backupData, this);
mSelectionTreeWidget->setObjectName(QStringLiteral("mSelectionTreeWidget"));
topLayout->addWidget(mSelectionTreeWidget);
......
......@@ -34,7 +34,7 @@ private:
void writeConfig();
void loadDefaultTemplate();
void saveDefaultTemplate();
SelectionTypeTreeWidget *mSelectionTreeWidget = nullptr;
SelectionTypeTreeWidget *const mSelectionTreeWidget;
QCheckBox *mUseTemplateByDefault = nullptr;
QPushButton *mSaveTemplate = nullptr;
QPushButton *mLoadTemplate = nullptr;
......
......@@ -36,7 +36,7 @@ private:
Q_REQUIRED_RESULT bool searchArchiveElement(const QString &path, const KArchiveDirectory *topDirectory, const QString &name);
QTreeWidgetItem *addTopItem(const QString &name);
QTreeWidgetItem *addItem(QTreeWidgetItem *parent, const QString &name, const QString &fillFullPath);
QString mFileName;
const QString mFileName;
QString mLogFile;
QTreeWidget *const mTreeWidget;
QPushButton *const mExtractFile;
......
Supports Markdown
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