forked from qt-creator/qt-creator
Designer: Compile with QT_NO_CAST_FROM_ASCII.
Change-Id: If9c8c58f1b86fe8b32f24240bd256b5bb8790c6c Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
@@ -77,7 +77,7 @@ Core::IFile *FormEditorFactory::open(const QString &fileName)
|
||||
if (!iface)
|
||||
return 0;
|
||||
if (qobject_cast<FormWindowEditor *>(iface)) {
|
||||
Core::InfoBarEntry info(Constants::INFO_READ_ONLY,
|
||||
Core::InfoBarEntry info(QLatin1String(Constants::INFO_READ_ONLY),
|
||||
tr("This file can only be edited in <b>Design</b> mode."));
|
||||
info.setCustomButtonInfo(tr("Switch mode"), this, SLOT(designerModeClicked()));
|
||||
iface->file()->infoBar()->addInfo(info);
|
||||
|
||||
Reference in New Issue
Block a user