Utils: Add convenience function for generating a unique Id

Change-Id: I74516ef5077009ebcf1d47c724ca63e502729ede
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Kandeler
2024-07-12 11:32:14 +02:00
parent 6d4e901e5e
commit fec896e712
20 changed files with 25 additions and 36 deletions

View File

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