[cmake-commits] clinton committed QCMakeCacheView.cxx 1.3 1.4
cmake-commits at cmake.org
cmake-commits at cmake.org
Sat Nov 3 13:28:11 EDT 2007
Update of /cvsroot/CMake/CMake/Source/QtDialog
In directory public:/mounts/ram/cvs-serv31855
Modified Files:
QCMakeCacheView.cxx
Log Message:
COMP: Fix some compile warnings.
STYLE: Make style a bit more consistent.
Index: QCMakeCacheView.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/QtDialog/QCMakeCacheView.cxx,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- QCMakeCacheView.cxx 3 Nov 2007 14:30:52 -0000 1.3
+++ QCMakeCacheView.cxx 3 Nov 2007 17:28:09 -0000 1.4
@@ -113,12 +113,12 @@
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 @@
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 @@
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 @@
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 @@
}
-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))
{
More information about the Cmake-commits
mailing list