summaryrefslogtreecommitdiff
path: root/src/edittreeview.cpp
diff options
context:
space:
mode:
authoradjam <adjam@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-05-07 09:45:30 +0000
committeradjam <adjam@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-05-07 09:45:30 +0000
commitf8d79895735973381665d7cf5012b2ea41efa400 (patch)
treecc490c88a63b957ce8d6592c9888e3222c29fc45 /src/edittreeview.cpp
parentEBN Krazy fixes. 2nd round.. (diff)
parentImproved contextual menu usability (diff)
downloadrekonq-f8d79895735973381665d7cf5012b2ea41efa400.tar.xz
Fixing MERGING issues..
git-svn-id: svn+ssh://svn.kde.org/home/kde/trunk/playground/network/rekonq@964690 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/edittreeview.cpp')
-rw-r--r--src/edittreeview.cpp8
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());
}
-