Commit 9049b6bb authored by Jarek Kobus's avatar Jarek Kobus
Browse files

Fix "Go to slot" in case ui is in namespace

Task: 249918
parent 907ab960
......@@ -541,7 +541,7 @@ void WorkbenchIntegration::slotNavigateToSlot(const QString &objectName, const Q
static inline QString uiClassName(QString formObjectName)
{
const int indexOfScope = formObjectName.lastIndexOf(QLatin1String("::"));
const int uiNameSpaceInsertionPos = indexOfScope >= 0 ? indexOfScope : 0;
const int uiNameSpaceInsertionPos = indexOfScope >= 0 ? indexOfScope + 2 : 0;
formObjectName.insert(uiNameSpaceInsertionPos, QLatin1String("Ui::"));
return formObjectName;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment