[cmake-commits] clinton committed QCMakeCacheView.cxx 1.11 1.12
cmake-commits at cmake.org
cmake-commits at cmake.org
Thu Nov 8 10:22:22 EST 2007
Update of /cvsroot/CMake/CMake/Source/QtDialog
In directory public:/mounts/ram/cvs-serv22277
Modified Files:
QCMakeCacheView.cxx
Log Message:
COMP: Fix warnings.
Index: QCMakeCacheView.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/QtDialog/QCMakeCacheView.cxx,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- QCMakeCacheView.cxx 8 Nov 2007 15:17:37 -0000 1.11
+++ QCMakeCacheView.cxx 8 Nov 2007 15:22:20 -0000 1.12
@@ -85,25 +85,25 @@
if(idxs.count())
{
QMenu* menu = new QMenu(this);
- QAction* d = NULL;
- QAction* i = NULL;
+ QAction* deleteAction = NULL;
+ QAction* ignoreAction = NULL;
if(this->cacheModel()->editEnabled())
{
QString t = idxs.count() > 1 ? tr("Delete Cache Entries") :
tr("Delete Cache Entry");
- d = menu->addAction(t);
+ deleteAction = menu->addAction(t);
t = idxs.count() > 1 ? tr("Ignore Cache Entries") :
tr("Ignore Cache Entry");
- i = menu->addAction(t);
+ ignoreAction = menu->addAction(t);
}
- QAction* h = menu->addAction(tr("Help For Cache Entry"));
+ QAction* helpAction = menu->addAction(tr("Help For Cache Entry"));
QAction* which = menu->exec(QCursor::pos());
if(!which)
{
return;
}
- if(which == h)
+ if(which == helpAction)
{
QModelIndex idx = this->selectionModel()->currentIndex();
idx = this->SearchFilter->mapToSource(idx);
@@ -134,14 +134,14 @@
i = this->AdvancedFilter->mapToSource(i);
pidxs.append(i);
}
- if(which == d)
+ if(which == deleteAction)
{
foreach(QPersistentModelIndex j, pidxs)
{
this->cacheModel()->removeRows(j.row(), 1);
}
}
- else if(which == i)
+ else if(which == ignoreAction)
{
foreach(QPersistentModelIndex j, pidxs)
{
More information about the Cmake-commits
mailing list