Designer: Compile with QT_NO_CAST_FROM_ASCII.

Change-Id: If9c8c58f1b86fe8b32f24240bd256b5bb8790c6c
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
Friedemann Kleint
2012-01-20 15:18:58 +01:00
parent 26796f6024
commit d96c1a746e
3 changed files with 6 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
TEMPLATE = lib
TARGET = Designer
DEFINES += DESIGNER_LIBRARY
DEFINES += DESIGNER_LIBRARY QT_NO_CAST_FROM_ASCII
include(../../qtcreatorplugin.pri)
include(../../shared/designerintegrationv2/designerintegration.pri)

View File

@@ -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);

View File

@@ -103,7 +103,7 @@
#include <QtCore/QPluginLoader>
#include <QtCore/QTime>
static const char settingsGroup[] = "Designer";
static const char settingsGroupC[] = "Designer";
#ifdef Q_OS_MAC
enum { osMac = 1 };
@@ -216,7 +216,7 @@ FormEditorW::~FormEditorW()
m_core->removeContextObject(m_context);
if (m_initStage == FullyInitialized) {
if (QSettings *s = m_core->settings()) {
m_core->settings()->beginGroup(settingsGroup);
m_core->settings()->beginGroup(QLatin1String(settingsGroupC));
m_editorWidget->saveSettings(s);
s->endGroup();
}
@@ -332,7 +332,7 @@ void FormEditorW::fullInit()
// Nest toolbar and editor widget
m_editorWidget = new EditorWidget(this);
QSettings *settings = m_core->settings();
settings->beginGroup(settingsGroup);
settings->beginGroup(QLatin1String(settingsGroupC));
m_editorWidget->restoreSettings(settings);
settings->endGroup();
@@ -674,7 +674,7 @@ void FormEditorW::setPreviewMenuEnabled(bool e)
void FormEditorW::saveSettings(QSettings *s)
{
s->beginGroup(settingsGroup);
s->beginGroup(QLatin1String(settingsGroupC));
m_editorWidget->saveSettings(s);
s->endGroup();
}