Move settingsIdx to private

This commit is contained in:
elecpower
2022-09-06 09:29:41 +10:00
committed by Peter Feerick
parent 2578c759ce
commit b99514c5b8
3 changed files with 82 additions and 88 deletions
+3 -3
View File
@@ -129,7 +129,6 @@ class UpdateInterface : public QWidget
ProgressWidget *progress;
QString name;
int settingsIdx;
int resultsPerPage;
QString downloadDir;
QString decompressDir;
@@ -202,6 +201,7 @@ class UpdateInterface : public QWidget
static QString downloadDataTypeToString(DownloadDataType val);
static QString updateFlagsToString(UpdateFlags val);
void initFlavourLanguage(UpdateParameters * params);
int settingsIdx() { return m_settingsIdx; }
private slots:
void onDownloadFinished(QNetworkReply * reply, DownloadDataType ddt, int subtype);
@@ -215,10 +215,10 @@ class UpdateInterface : public QWidget
QUrl url;
bool downloadSuccess;
int m_settingsIdx;
static QString semanticVersion(QString version);
int getSettingsIdx();
void setSettingsIdx();
bool setRunFolders();
bool checkCreateDirectory(const QString & dirSetting, const UpdateFlags flag);
@@ -284,7 +284,7 @@ class UpdateFactories : public QWidget
bool autoUpdate(ProgressWidget * progress = nullptr);
bool manualUpdate(ProgressWidget * progress = nullptr);
const bool updatesAvailable(QStringList & names);
const bool isUpdatesAvailable(QStringList & names);
private:
QVector<UpdateFactoryInterface *> registeredUpdateFactories;