[cmake-commits] clinton committed QCMakeCacheView.cxx 1.19 1.20
cmake-commits at cmake.org
cmake-commits at cmake.org
Wed Nov 14 23:30:07 EST 2007
Update of /cvsroot/CMake/CMake/Source/QtDialog
In directory public:/mounts/ram/cvs-serv23098
Modified Files:
QCMakeCacheView.cxx
Log Message:
COMP: Fix warning.
Index: QCMakeCacheView.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/QtDialog/QCMakeCacheView.cxx,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- QCMakeCacheView.cxx 13 Nov 2007 17:53:10 -0000 1.19
+++ QCMakeCacheView.cxx 15 Nov 2007 04:30:05 -0000 1.20
@@ -394,7 +394,7 @@
return new QLineEdit(p);
}
-bool QCMakeCacheModelDelegate::editorEvent(QEvent* event, QAbstractItemModel* model,
+bool QCMakeCacheModelDelegate::editorEvent(QEvent* e, QAbstractItemModel* model,
const QStyleOptionViewItem& option, const QModelIndex& index)
{
Qt::ItemFlags flags = model->flags(index);
@@ -410,19 +410,19 @@
return false;
}
- if ((event->type() == QEvent::MouseButtonRelease)
- || (event->type() == QEvent::MouseButtonDblClick))
+ if ((e->type() == QEvent::MouseButtonRelease)
+ || (e->type() == QEvent::MouseButtonDblClick))
{
// eat the double click events inside the check rect
- if (event->type() == QEvent::MouseButtonDblClick)
+ if (e->type() == QEvent::MouseButtonDblClick)
{
return true;
}
}
- else if (event->type() == QEvent::KeyPress)
+ else if (e->type() == QEvent::KeyPress)
{
- if(static_cast<QKeyEvent*>(event)->key() != Qt::Key_Space &&
- static_cast<QKeyEvent*>(event)->key() != Qt::Key_Select)
+ if(static_cast<QKeyEvent*>(e)->key() != Qt::Key_Space &&
+ static_cast<QKeyEvent*>(e)->key() != Qt::Key_Select)
{
return false;
}
More information about the Cmake-commits
mailing list