Add a 'isEmpty' function.

This commit is contained in:
Ernie Pasveer
2022-03-05 16:40:37 -06:00
parent ab9c57e5af
commit 0b1d8f9f49
8 changed files with 24 additions and 0 deletions
+5
View File
@@ -76,6 +76,11 @@ QStringList SeerCatchpointsBrowserWidget::catchpointsText () const {
return catchpointList;
}
bool SeerCatchpointsBrowserWidget::isEmpty() const {
return (catchpointsTreeWidget->topLevelItemCount() == 0);
}
void SeerCatchpointsBrowserWidget::handleText (const QString& text) {
// Don't do any work if the widget is hidden.