Squish: Give code model more time to list refactorings

Change-Id: I944dfa306954cd16fdb24334db6e869702da282f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Robert Loehning
2018-07-06 16:58:38 +02:00
parent b85692e920
commit 6a42d8bd74

View File

@@ -100,7 +100,7 @@ def main():
editor = getEditorForFileSuffix("%s.h" % className.lower()) editor = getEditorForFileSuffix("%s.h" % className.lower())
oldContent = str(editor.plainText) oldContent = str(editor.plainText)
placeCursorToLine(editor, "class %s.*" % className, True) placeCursorToLine(editor, "class %s.*" % className, True)
snooze(1) # avoid timing issue with the parser snooze(4) # avoid timing issue with the parser
invokeContextMenuItem(editor, "Refactor", "Insert Virtual Functions of Base Classes") invokeContextMenuItem(editor, "Refactor", "Insert Virtual Functions of Base Classes")
handleInsertVirtualFunctions(["keys() const = 0 : QStringList", handleInsertVirtualFunctions(["keys() const = 0 : QStringList",
"create(const QString &, const QString &) = 0 : QObject *"]) "create(const QString &, const QString &) = 0 : QObject *"])