summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog/QCMakeCacheView.cxx
diff options
context:
space:
mode:
authorClinton Stimpson <clinton@elemtech.com>2007-11-15 04:30:05 (GMT)
committerClinton Stimpson <clinton@elemtech.com>2007-11-15 04:30:05 (GMT)
commit195e1035ab8348dd3496a796232296f4ac95dca3 (patch)
treee3eaa9ff52799402fca165fc94785c0347fbc34e /Source/QtDialog/QCMakeCacheView.cxx
parent0ea6a8d1a4988273199d968c35a7f486faedfbc8 (diff)
downloadCMake-195e1035ab8348dd3496a796232296f4ac95dca3.zip
CMake-195e1035ab8348dd3496a796232296f4ac95dca3.tar.gz
CMake-195e1035ab8348dd3496a796232296f4ac95dca3.tar.bz2
COMP: Fix warning.
Diffstat (limited to 'Source/QtDialog/QCMakeCacheView.cxx')
-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 d2ec0ec..7f3d40b 100644
--- a/Source/QtDialog/QCMakeCacheView.cxx
+++ b/Source/QtDialog/QCMakeCacheView.cxx
@@ -394,7 +394,7 @@ QWidget* QCMakeCacheModelDelegate::createEditor(QWidget* p,
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 @@ bool QCMakeCacheModelDelegate::editorEvent(QEvent* event, QAbstractItemModel* mo
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;
}