Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/autotype/AutoTypeSelectDialog.h')
-rw-r--r--src/autotype/AutoTypeSelectDialog.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/autotype/AutoTypeSelectDialog.h b/src/autotype/AutoTypeSelectDialog.h
index 3d9c684ed..cee3c4087 100644
--- a/src/autotype/AutoTypeSelectDialog.h
+++ b/src/autotype/AutoTypeSelectDialog.h
@@ -22,8 +22,9 @@
#include <QDialog>
#include <QHash>
+#include "core/AutoTypeMatch.h"
+
class AutoTypeSelectView;
-class Entry;
class AutoTypeSelectDialog : public QDialog
{
@@ -31,22 +32,23 @@ class AutoTypeSelectDialog : public QDialog
public:
explicit AutoTypeSelectDialog(QWidget* parent = nullptr);
- void setEntries(const QList<Entry*>& entries, const QHash<Entry*, QString>& sequences);
+ void setMatchList(const QList<AutoTypeMatch>& matchList);
signals:
- void entryActivated(Entry* entry, const QString& sequence);
+ void matchActivated(AutoTypeMatch match);
public slots:
void done(int r) override;
+ void reject() override;
private slots:
- void emitEntryActivated(const QModelIndex& index);
- void entryRemoved();
+ void emitMatchActivated(const QModelIndex& index);
+ void matchRemoved();
private:
AutoTypeSelectView* const m_view;
- QHash<Entry*, QString> m_sequences;
- bool m_entryActivatedEmitted;
+ bool m_matchActivatedEmitted;
+ bool m_rejected;
};
#endif // KEEPASSX_AUTOTYPESELECTDIALOG_H