forked from qt-creator/qt-creator
MacrosPlugin: Modernize
modernize-* Change-Id: Iffb1bdc9b2b7e89e4744ceaef35f7bcaad418797 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -94,7 +94,7 @@ void MacroOptionsWidget::createTable()
|
||||
Macro *macro = it.value();
|
||||
QFileInfo fileInfo(macro->fileName());
|
||||
if (fileInfo.absoluteDir() == dir.absolutePath()) {
|
||||
QTreeWidgetItem *macroItem = new QTreeWidgetItem(m_ui->treeWidget);
|
||||
auto macroItem = new QTreeWidgetItem(m_ui->treeWidget);
|
||||
macroItem->setText(0, macro->displayName());
|
||||
macroItem->setText(1, macro->description());
|
||||
macroItem->setData(0, NAME_ROLE, macro->displayName());
|
||||
|
||||
Reference in New Issue
Block a user