Browse Source

ENH: Give a label for the group of properties that didn't get put into another
group.

Clinton Stimpson 17 years ago
parent
commit
36576a4e7a
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Source/QtDialog/QCMakeCacheView.cxx

+ 4 - 0
Source/QtDialog/QCMakeCacheView.cxx

@@ -417,6 +417,10 @@ QVariant QCMakeCacheModel::data (const QModelIndex& idx, int role) const
     {
     if(idx.column() == 0 && (role == Qt::DisplayRole || role == Qt::EditRole))
       {
+      if(l->first == QString())
+        {
+        return tr("Ungrouped Properties");
+        }
       return l->first;
       }
     else if(role == QCMakeCacheModel::AdvancedRole)