summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnne Jan Brouwer <brouwer@annejan.com>2019-10-21 10:43:31 +0200
committerGitHub <noreply@github.com>2019-10-21 10:43:31 +0200
commit51802e9536d0b0a2bfaba8f1a94f7da5b75d686b (patch)
treef9ee72e9ffc9fd80e5111d5ed242086f7c78d412
parent30fc277ae8e8e2bcea8740c093994d148ea179a3 (diff)
parent86af8c10a14c7310ccfc10f6c3ec84b2cd8fbf30 (diff)
Merge pull request #491 from amarsman/master
Don't use a deprecated method And lots of name cleaning 😄
-rw-r--r--src/configdialog.cpp2
-rw-r--r--src/configdialog.h2
-rw-r--r--src/imitatepass.h4
-rw-r--r--src/pass.h2
-rw-r--r--src/qtpass.h2
-rw-r--r--src/realpass.h4
6 files changed, 8 insertions, 8 deletions
diff --git a/src/configdialog.cpp b/src/configdialog.cpp
index 610e1e60..ba2a6f34 100644
--- a/src/configdialog.cpp
+++ b/src/configdialog.cpp
@@ -527,7 +527,7 @@ void ConfigDialog::on_deleteButton_clicked() {
foreach (item, itemList)
selectedRows.insert(item->row());
// get a list, and sort it big to small
- QList<int> rows = selectedRows.toList();
+ QList<int> rows = selectedRows.values();
std::sort(rows.begin(), rows.end());
// now actually do the removing:
foreach (int row, rows)
diff --git a/src/configdialog.h b/src/configdialog.h
index 24e2f047..a0f162b0 100644
--- a/src/configdialog.h
+++ b/src/configdialog.h
@@ -34,7 +34,7 @@ public:
QHash<QString, QString> getProfiles();
void wizard();
void genKey(QString, QDialog *);
- void useTrayIcon(bool useTrayIdon);
+ void useTrayIcon(bool useSystray);
void useGit(bool useGit);
void useOtp(bool useOtp);
void useQrencode(bool useQrencode);
diff --git a/src/imitatepass.h b/src/imitatepass.h
index b00c08bb..4bfd3a94 100644
--- a/src/imitatepass.h
+++ b/src/imitatepass.h
@@ -52,10 +52,10 @@ public:
virtual void GitPush() Q_DECL_OVERRIDE;
virtual void Show(QString file) Q_DECL_OVERRIDE;
virtual void OtpGenerate(QString file) Q_DECL_OVERRIDE;
- virtual void Insert(QString file, QString value,
+ virtual void Insert(QString file, QString newValue,
bool overwrite = false) Q_DECL_OVERRIDE;
virtual void Remove(QString file, bool isDir = false) Q_DECL_OVERRIDE;
- virtual void Init(QString path, const QList<UserInfo> &list) Q_DECL_OVERRIDE;
+ virtual void Init(QString path, const QList<UserInfo> &users) Q_DECL_OVERRIDE;
void reencryptPath(const QString &dir);
signals:
diff --git a/src/pass.h b/src/pass.h
index ae20986b..3ef3c7db 100644
--- a/src/pass.h
+++ b/src/pass.h
@@ -54,7 +54,7 @@ public:
virtual QString Generate_b(unsigned int length, const QString &charset);
void GenerateGPGKeys(QString batch);
- QList<UserInfo> listKeys(QStringList keystring, bool secret = false);
+ QList<UserInfo> listKeys(QStringList keystrings, bool secret = false);
QList<UserInfo> listKeys(QString keystring = "", bool secret = false);
void updateEnv();
static QStringList getRecipientList(QString for_file);
diff --git a/src/qtpass.h b/src/qtpass.h
index 064edfce..07e36839 100644
--- a/src/qtpass.h
+++ b/src/qtpass.h
@@ -54,7 +54,7 @@ private slots:
void onKeyGenerationComplete(const QString &p_output,
const QString &p_errout);
- void showInTextBrowser(QString toShow, QString prefix = QString(),
+ void showInTextBrowser(QString output, QString prefix = QString(),
QString postfix = QString());
};
diff --git a/src/realpass.h b/src/realpass.h
index abf96f1a..3fe8cdda 100644
--- a/src/realpass.h
+++ b/src/realpass.h
@@ -8,7 +8,7 @@
\brief Wrapper for executing pass to handle the password-store
*/
class RealPass : public Pass {
- void executePass(PROCESS id, const QStringList &arg,
+ void executePass(PROCESS id, const QStringList &args,
QString input = QString(), bool readStdout = true,
bool readStderr = true);
@@ -21,7 +21,7 @@ public:
virtual void GitPush() Q_DECL_OVERRIDE;
virtual void Show(QString file) Q_DECL_OVERRIDE;
virtual void OtpGenerate(QString file) Q_DECL_OVERRIDE;
- virtual void Insert(QString file, QString value,
+ virtual void Insert(QString file, QString newValue,
bool overwrite = false) Q_DECL_OVERRIDE;
virtual void Remove(QString file, bool isDir = false) Q_DECL_OVERRIDE;
virtual void Init(QString path, const QList<UserInfo> &users) Q_DECL_OVERRIDE;