QtPass 1.4.0
Multi-platform GUI for pass, the standard unix password manager.
Loading...
Searching...
No Matches
usersdialog.h
Go to the documentation of this file.
1#ifndef USERSDIALOG_H_
2#define USERSDIALOG_H_
3
4#include "userinfo.h"
5
6#include <QDialog>
7#include <QList>
8
9namespace Ui {
10class UsersDialog;
11}
12
13class QCloseEvent;
14class QKeyEvent;
15class QListWidgetItem;
16
23class UsersDialog : public QDialog {
24 Q_OBJECT
25
26public:
27 explicit UsersDialog(QString dir, QWidget *parent = nullptr);
29
30public slots:
31 void accept();
32
33protected:
34 void closeEvent(QCloseEvent *event);
35 void keyPressEvent(QKeyEvent *event);
36
37private slots:
38 void itemChange(QListWidgetItem *item);
39 void on_lineEdit_textChanged(const QString &filter);
40 void on_checkBox_clicked();
41
42private:
43 Ui::UsersDialog *ui;
44 QList<UserInfo> m_userList;
45 QString m_dir;
46
47 void populateList(const QString &filter = QString());
48};
49
50#endif // USERSDIALOG_H_
Handles listing and editing of GPG users.
Definition: usersdialog.h:23
~UsersDialog()
UsersDialog::~UsersDialog basic destructor.
Definition: usersdialog.cpp:80
void accept()
UsersDialog::accept.
Definition: usersdialog.cpp:87
void closeEvent(QCloseEvent *event)
UsersDialog::closeEvent might have to store size and location if that is wanted.
Definition: usersdialog.cpp:98
void keyPressEvent(QKeyEvent *event)
UsersDialog::keyPressEvent clear the lineEdit when escape is pressed. No action for Enter currently.
Definition: configdialog.h:9