forked from qt-creator/qt-creator
Core: Use the new Id methods in a few places
There are a lot more left. Change-Id: I97d32629aa6deef0f4819f70cc0b8437f2814257 Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
This commit is contained in:
@@ -307,9 +307,8 @@ Command *ActionContainerPrivate::addSeparator(const Context &context, const Id &
|
||||
static int separatorIdCount = 0;
|
||||
QAction *separator = new QAction(this);
|
||||
separator->setSeparator(true);
|
||||
Command *cmd = ActionManager::registerAction(separator, Id(QString::fromLatin1("%1.Separator.%2")
|
||||
.arg(id().toString()).arg(++separatorIdCount)),
|
||||
context);
|
||||
Id sepId = id().withSuffix(".Separator.").withSuffix(++separatorIdCount);
|
||||
Command *cmd = ActionManager::registerAction(separator, sepId, context);
|
||||
addAction(cmd, group);
|
||||
if (outSeparator)
|
||||
*outSeparator = separator;
|
||||
|
||||
Reference in New Issue
Block a user