More auto-type tests.
This commit is contained in:
@@ -34,6 +34,7 @@ AutoType* AutoType::m_instance = Q_NULLPTR;
|
||||
|
||||
AutoType::AutoType(QObject* parent, bool test)
|
||||
: QObject(parent)
|
||||
, m_test(test)
|
||||
, m_inAutoType(false)
|
||||
, m_pluginLoader(new QPluginLoader(this))
|
||||
, m_plugin(Q_NULLPTR)
|
||||
@@ -132,7 +133,9 @@ void AutoType::performAutoType(const Entry* entry, QWidget* hideWindow, const QS
|
||||
hideWindow->showMinimized();
|
||||
}
|
||||
|
||||
Tools::wait(500);
|
||||
if (!m_test) {
|
||||
Tools::wait(500);
|
||||
}
|
||||
|
||||
if (!window) {
|
||||
window = m_plugin->activeWindow();
|
||||
|
||||
@@ -69,6 +69,7 @@ private:
|
||||
QString autoTypeSequence(const Entry* entry, const QString& windowTitle = QString());
|
||||
bool windowMatches(const QString& windowTitle, const QString& windowPattern);
|
||||
|
||||
bool m_test;
|
||||
bool m_inAutoType;
|
||||
Qt::Key m_currentGlobalKey;
|
||||
Qt::KeyboardModifiers m_currentGlobalModifiers;
|
||||
|
||||
Reference in New Issue
Block a user