Skip to content

Commit

Permalink
Qt5: 'void QListWidget::setItemSelected(const QListWidgetItem*, bool)…
Browse files Browse the repository at this point in the history
…' is deprecated: Use QListWidgetItem::setSelected() instead [-Wdeprecated-declarations]
  • Loading branch information
wwmayer committed Jun 12, 2020
1 parent 84a164b commit 0533121
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Gui/CallTips.cpp
Expand Up @@ -143,7 +143,8 @@ void CallTipsList::keyboardSearch(const QString& wordPrefix)
}
}

setItemSelected(currentItem(), false);
if (currentItem())
currentItem()->setSelected(false);
}

void CallTipsList::validateCursor()
Expand Down
3 changes: 2 additions & 1 deletion src/Gui/TextEdit.cpp
Expand Up @@ -518,7 +518,8 @@ void CompletionList::findCurrentWord(const QString& wordPrefix)
}
}

setItemSelected(currentItem(), false);
if (currentItem())
currentItem()->setSelected(false);
}

/**
Expand Down

0 comments on commit 0533121

Please sign in to comment.