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