forked from qt-creator/qt-creator
Utils: Add convenience function for generating a unique Id
Change-Id: I74516ef5077009ebcf1d47c724ca63e502729ede Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -17,7 +17,6 @@
|
||||
#include <QList>
|
||||
#include <QListWidget>
|
||||
#include <QPushButton>
|
||||
#include <QUuid>
|
||||
#include <QVBoxLayout>
|
||||
|
||||
namespace ProjectExplorer {
|
||||
@@ -55,7 +54,7 @@ public:
|
||||
if (dlg.exec() != QDialog::Accepted)
|
||||
return;
|
||||
CustomParserSettings newParser = dlg.settings();
|
||||
newParser.id = Utils::Id::fromString(QUuid::createUuid().toString());
|
||||
newParser.id = Utils::Id::generate();
|
||||
newParser.displayName = Tr::tr("New Parser");
|
||||
m_customParsers << newParser;
|
||||
resetListView();
|
||||
|
||||
Reference in New Issue
Block a user