forked from qt-creator/qt-creator
InfoBar: Use Core::Id
Change-Id: I0918fbc20027a340facbedc685938a72d117d53b Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -75,7 +75,7 @@ Core::IDocument *FormEditorFactory::open(const QString &fileName)
|
||||
if (!iface)
|
||||
return 0;
|
||||
if (qobject_cast<FormWindowEditor *>(iface)) {
|
||||
Core::InfoBarEntry info(QLatin1String(Constants::INFO_READ_ONLY),
|
||||
Core::InfoBarEntry info(Core::Id(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->document()->infoBar()->addInfo(info);
|
||||
|
||||
Reference in New Issue
Block a user