More auto-type tests.

This commit is contained in:
Florian Geyer
2012-11-02 15:07:44 +01:00
parent 848abfc1a7
commit 8347fd36ba
4 changed files with 46 additions and 1 deletions

View File

@@ -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();

View File

@@ -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;