summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog/QCMakeCacheView.cxx
diff options
context:
space:
mode:
authorClinton Stimpson <clinton@elemtech.com>2008-06-11 00:17:23 (GMT)
committerClinton Stimpson <clinton@elemtech.com>2008-06-11 00:17:23 (GMT)
commit36576a4e7a4164572e4d710aa143b1c831bb0895 (patch)
tree19f53896209221387d4b45c001337118b19dc4bd /Source/QtDialog/QCMakeCacheView.cxx
parent2d37d2a48d52cb3cb1afd3a0a29900db92214e95 (diff)
downloadCMake-36576a4e7a4164572e4d710aa143b1c831bb0895.zip
CMake-36576a4e7a4164572e4d710aa143b1c831bb0895.tar.gz
CMake-36576a4e7a4164572e4d710aa143b1c831bb0895.tar.bz2
ENH: Give a label for the group of properties that didn't get put into another
group.
Diffstat (limited to 'Source/QtDialog/QCMakeCacheView.cxx')
-rw-r--r--Source/QtDialog/QCMakeCacheView.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/QtDialog/QCMakeCacheView.cxx b/Source/QtDialog/QCMakeCacheView.cxx
index 8d23fa3..791e24c 100644
--- a/Source/QtDialog/QCMakeCacheView.cxx
+++ b/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)