summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog
diff options
context:
space:
mode:
authorClinton Stimpson <clinton@elemtech.com>2007-11-03 17:28:09 (GMT)
committerClinton Stimpson <clinton@elemtech.com>2007-11-03 17:28:09 (GMT)
commit3135561227dc7ee9980e5badc1fae1e86e672a44 (patch)
treea98d646ed365301e691d8a9191edae30cd68ceb5 /Source/QtDialog
parentc27953b62f942bd24d3f1c6b18adadacdb9e3df9 (diff)
downloadCMake-3135561227dc7ee9980e5badc1fae1e86e672a44.zip
CMake-3135561227dc7ee9980e5badc1fae1e86e672a44.tar.gz
CMake-3135561227dc7ee9980e5badc1fae1e86e672a44.tar.bz2
COMP: Fix some compile warnings.
STYLE: Make style a bit more consistent.
Diffstat (limited to 'Source/QtDialog')
-rw-r--r--Source/QtDialog/QCMakeCacheView.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/Source/QtDialog/QCMakeCacheView.cxx b/Source/QtDialog/QCMakeCacheView.cxx
index 9f25b82..e14b322 100644
--- a/Source/QtDialog/QCMakeCacheView.cxx
+++ b/Source/QtDialog/QCMakeCacheView.cxx
@@ -113,12 +113,12 @@ QCMakeCachePropertyList QCMakeCacheModel::properties() const
return this->Properties;
}
-int QCMakeCacheModel::columnCount ( const QModelIndex & parent ) const
+int QCMakeCacheModel::columnCount (const QModelIndex& /*parent*/ ) const
{
return 2;
}
-QVariant QCMakeCacheModel::data ( const QModelIndex & index, int role ) const
+QVariant QCMakeCacheModel::data (const QModelIndex& index, int role) const
{
if(index.column() == 0 && (role == Qt::DisplayRole || role == Qt::EditRole))
{
@@ -158,12 +158,12 @@ QVariant QCMakeCacheModel::data ( const QModelIndex & index, int role ) const
return QVariant();
}
-QModelIndex QCMakeCacheModel::parent ( const QModelIndex & index ) const
+QModelIndex QCMakeCacheModel::parent (const QModelIndex& /*index*/) const
{
return QModelIndex();
}
-int QCMakeCacheModel::rowCount ( const QModelIndex & parent ) const
+int QCMakeCacheModel::rowCount (const QModelIndex& parent) const
{
if(parent.isValid())
{
@@ -172,7 +172,7 @@ int QCMakeCacheModel::rowCount ( const QModelIndex & parent ) const
return this->Properties.count();
}
-QVariant QCMakeCacheModel::headerData ( int section, Qt::Orientation orient, int role ) const
+QVariant QCMakeCacheModel::headerData (int section, Qt::Orientation orient, int role) const
{
// return header labels
if(role == Qt::DisplayRole && orient == Qt::Horizontal)
@@ -182,7 +182,7 @@ QVariant QCMakeCacheModel::headerData ( int section, Qt::Orientation orient, int
return QVariant();
}
-Qt::ItemFlags QCMakeCacheModel::flags ( const QModelIndex& index ) const
+Qt::ItemFlags QCMakeCacheModel::flags (const QModelIndex& index) const
{
Qt::ItemFlags f = Qt::ItemIsEnabled | Qt::ItemIsSelectable;
// all column 1's are editable
@@ -199,7 +199,7 @@ Qt::ItemFlags QCMakeCacheModel::flags ( const QModelIndex& index ) const
}
-bool QCMakeCacheModel::setData ( const QModelIndex & index, const QVariant& value, int role )
+bool QCMakeCacheModel::setData (const QModelIndex& index, const QVariant& value, int role)
{
if(index.column() == 0 && (role == Qt::DisplayRole || role == Qt::EditRole))
{