Skip to content
Snippets Groups Projects
Commit 5a7d6d66 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Designer: Hint at case-mismatches of #include if 'Goto Slot' fails.


Task-number: QTCREATORBUG-6310

Change-Id: Ibd10043c775832f3195c39f9d94b72c6d1447c9d
Reviewed-by: default avatarLeandro T. C. Melo <leandro.melo@nokia.com>
parent 1139006b
No related branches found
No related tags found
No related merge requests found
......@@ -68,6 +68,7 @@
#include <QtGui/QMessageBox>
#include <QtCore/QFileInfo>
#include <QtCore/QDir>
#include <QtCore/QDebug>
#include <QtCore/QUrl>
......@@ -81,11 +82,13 @@ static QString msgClassNotFound(const QString &uiClassName, const QList<Document
{
QString files;
foreach (const Document::Ptr &doc, docList) {
if (!files.isEmpty())
files += QLatin1String(", ");
files += doc->fileName();
files += QLatin1Char('\n');
files += QDir::toNativeSeparators(doc->fileName());
}
return QtCreatorIntegration::tr("The class definition of '%1' could not be found in %2.").arg(uiClassName, files);
return QtCreatorIntegration::tr(
"The class containing '%1' could not be found in %2.\n"
"Please verify the #include-directives.")
.arg(uiClassName, files);
}
QtCreatorIntegration::QtCreatorIntegration(QDesignerFormEditorInterface *core, FormEditorW *parent) :
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment