Commit c4da217c authored by hjk's avatar hjk
Browse files

bineditor: some s/QString/Core::Id/



Change-Id: I97b4222d4482d59fa875b016eb3bf248969bbadc
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 0b12ed14
......@@ -461,14 +461,14 @@ BinEditorPlugin::~BinEditorPlugin()
{
}
QAction *BinEditorPlugin::registerNewAction(const QString &id, const QString &title)
QAction *BinEditorPlugin::registerNewAction(Core::Id id, const QString &title)
{
QAction *result = new QAction(title, this);
Core::ActionManager::registerAction(result, Core::Id(id), m_context);
Core::ActionManager::registerAction(result, id, m_context);
return result;
}
QAction *BinEditorPlugin::registerNewAction(const QString &id,
QAction *BinEditorPlugin::registerNewAction(Core::Id id,
QObject *receiver,
const char *slot,
const QString &title)
......@@ -489,16 +489,10 @@ void BinEditorPlugin::initializeEditor(BinEditor *editor)
m_context.add(Constants::C_BINEDITOR);
if (!m_undoAction) {
m_undoAction = registerNewAction(QLatin1String(Core::Constants::UNDO),
this, SLOT(undoAction()),
tr("&Undo"));
m_redoAction = registerNewAction(QLatin1String(Core::Constants::REDO),
this, SLOT(redoAction()),
tr("&Redo"));
m_copyAction = registerNewAction(QLatin1String(Core::Constants::COPY),
this, SLOT(copyAction()));
m_selectAllAction = registerNewAction(QLatin1String(Core::Constants::SELECTALL),
this, SLOT(selectAllAction()));
m_undoAction = registerNewAction(Core::Constants::UNDO, this, SLOT(undoAction()), tr("&Undo"));
m_redoAction = registerNewAction(Core::Constants::REDO, this, SLOT(redoAction()), tr("&Redo"));
m_copyAction = registerNewAction(Core::Constants::COPY, this, SLOT(copyAction()));
m_selectAllAction = registerNewAction(Core::Constants::SELECTALL, this, SLOT(selectAllAction()));
}
// Font settings
......
......@@ -83,8 +83,8 @@ private slots:
private:
Core::Context m_context;
QAction *registerNewAction(const QString &id, const QString &title = QString());
QAction *registerNewAction(const QString &id, QObject *receiver, const char *slot,
QAction *registerNewAction(Core::Id id, const QString &title = QString());
QAction *registerNewAction(Core::Id id, QObject *receiver, const char *slot,
const QString &title = QString());
QAction *m_undoAction;
QAction *m_redoAction;
......
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