diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-05-07 11:16:51 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-05-07 11:16:51 +0200 |
commit | 9cab6e02598d710e83992610e910acd06c2e2576 (patch) | |
tree | 6e103d52edea8b70896083ee2b74197281770787 /src/edittreeview.cpp | |
parent | updated french translation (diff) | |
download | rekonq-9cab6e02598d710e83992610e910acd06c2e2576.tar.xz |
EBN Krazy issues. 3rd round... First chech finished!
Diffstat (limited to 'src/edittreeview.cpp')
-rw-r--r-- | src/edittreeview.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/edittreeview.cpp b/src/edittreeview.cpp index 49730d67..5547cdb0 100644 --- a/src/edittreeview.cpp +++ b/src/edittreeview.cpp @@ -19,16 +19,19 @@ * ============================================================ */ - +// Self Includes #include "edittreeview.h" +// Qt includes #include <QtGui/QKeyEvent> + EditTreeView::EditTreeView(QWidget *parent) : QTreeView(parent) { } + void EditTreeView::keyPressEvent(QKeyEvent *event) { if ((event->key() == Qt::Key_Delete @@ -43,6 +46,7 @@ void EditTreeView::keyPressEvent(QKeyEvent *event) } } + void EditTreeView::removeOne() { if (!model()) @@ -52,10 +56,10 @@ void EditTreeView::removeOne() model()->removeRow(row, ci.parent()); } + void EditTreeView::removeAll() { if (!model()) return; model()->removeRows(0, model()->rowCount(rootIndex()), rootIndex()); } - |