Просмотр исходного кода

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

Clinton Stimpson 17 лет назад
Родитель
Сommit
36576a4e7a
1 измененных файлов с 4 добавлено и 0 удалено
  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(idx.column() == 0 && (role == Qt::DisplayRole || role == Qt::EditRole))
       {
       {
+      if(l->first == QString())
+        {
+        return tr("Ungrouped Properties");
+        }
       return l->first;
       return l->first;
       }
       }
     else if(role == QCMakeCacheModel::AdvancedRole)
     else if(role == QCMakeCacheModel::AdvancedRole)