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/AutoType.h')
-rw-r--r--src/autotype/AutoType.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/autotype/AutoType.h b/src/autotype/AutoType.h
index ad8607529..7f9e3ab22 100644
--- a/src/autotype/AutoType.h
+++ b/src/autotype/AutoType.h
@@ -73,6 +73,13 @@ private slots:
void unloadPlugin();
private:
+ enum WindowState
+ {
+ Normal,
+ Minimized,
+ Hidden
+ };
+
explicit AutoType(QObject* parent = nullptr, bool test = false);
~AutoType() override;
void loadPlugin(const QString& pluginPath);
@@ -86,6 +93,7 @@ private:
bool windowMatchesTitle(const QString& windowTitle, const QString& resolvedTitle);
bool windowMatchesUrl(const QString& windowTitle, const QString& resolvedUrl);
bool windowMatches(const QString& windowTitle, const QString& windowPattern);
+ void restoreWindowState();
QMutex m_inAutoType;
QMutex m_inGlobalAutoTypeDialog;
@@ -98,6 +106,7 @@ private:
static AutoType* m_instance;
QString m_windowTitleForGlobal;
+ WindowState m_windowState;
WId m_windowForGlobal;
Q_DISABLE_COPY(AutoType)