summaryrefslogtreecommitdiff
path: root/src/edittableview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-03-28 15:53:26 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-03-28 15:53:26 +0100
commita934072cf9695e46e793898102590322f43c0733 (patch)
tree6f04f558aec622c4b044fccbe1481db933f8901e /src/edittableview.cpp
parentscripts (diff)
downloadrekonq-a934072cf9695e46e793898102590322f43c0733.tar.xz
astyle. First round..
Diffstat (limited to 'src/edittableview.cpp')
-rw-r--r--src/edittableview.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/edittableview.cpp b/src/edittableview.cpp
index ea916c8d..2f35e9f3 100644
--- a/src/edittableview.cpp
+++ b/src/edittableview.cpp
@@ -24,17 +24,20 @@
#include <QtGui/QKeyEvent>
EditTableView::EditTableView(QWidget *parent)
- : QTableView(parent)
+ : QTableView(parent)
{
}
void EditTableView::keyPressEvent(QKeyEvent *event)
{
if ((event->key() == Qt::Key_Delete
- || event->key() == Qt::Key_Backspace)
- && model()) {
+ || event->key() == Qt::Key_Backspace)
+ && model())
+ {
removeOne();
- } else {
+ }
+ else
+ {
QAbstractItemView::keyPressEvent(event);
}
}