diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-03-28 15:53:26 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-03-28 15:53:26 +0100 |
commit | a934072cf9695e46e793898102590322f43c0733 (patch) | |
tree | 6f04f558aec622c4b044fccbe1481db933f8901e /src/edittreeview.cpp | |
parent | scripts (diff) | |
download | rekonq-a934072cf9695e46e793898102590322f43c0733.tar.xz |
astyle. First round..
Diffstat (limited to 'src/edittreeview.cpp')
-rw-r--r-- | src/edittreeview.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/edittreeview.cpp b/src/edittreeview.cpp index 014e0415..747753de 100644 --- a/src/edittreeview.cpp +++ b/src/edittreeview.cpp @@ -25,17 +25,20 @@ #include <QtGui/QKeyEvent> EditTreeView::EditTreeView(QWidget *parent) - : QTreeView(parent) + : QTreeView(parent) { } void EditTreeView::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); } } |