diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2015-01-01 10:50:21 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2015-01-01 10:50:21 +0900 |
commit | b6fa8d4f2ab9a45c46990b226d28c5482acb01fe (patch) | |
tree | 4182db71d6d98cb6177b0fad7072f5fb15b78142 /kate/part | |
parent | 592bebb509786ccec893b305d3ae6a0c76ed3bdb (diff) | |
download | tdelibs-b6fa8d4f2ab9a45c46990b226d28c5482acb01fe.tar.gz tdelibs-b6fa8d4f2ab9a45c46990b226d28c5482acb01fe.zip |
Added 'Delete Line' menu entry in Kate. This resolves bug 1907.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kate/part')
-rw-r--r-- | kate/part/kateview.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/kate/part/kateview.cpp b/kate/part/kateview.cpp index f5593da9a..57c795914 100644 --- a/kate/part/kateview.cpp +++ b/kate/part/kateview.cpp @@ -284,8 +284,13 @@ void KateView::setupActions() a->setWhatsThis( i18n("Capitalize the selection, or the word under the " "cursor if no text is selected.") ); + a = new TDEAction( i18n("Delete Line"), 0, TQT_TQOBJECT(this), + TQT_SLOT( killLine() ), ac, "tools_delete_line"); + a->setWhatsThis(i18n("Use this to delete the current line.")); + a = new TDEAction( i18n("Join Lines"), CTRL + Qt::Key_J, TQT_TQOBJECT(this), TQT_SLOT( joinLines() ), ac, "tools_join_lines" ); + a->setWhatsThis(i18n("Use this to join lines together.")); } else { @@ -756,8 +761,8 @@ void KateView::slotReadWriteChanged () l << "edit_replace" << "set_insert" << "tools_spelling" << "tools_indent" << "tools_unindent" << "tools_cleanIndent" << "tools_align" << "tools_comment" << "tools_uncomment" << "tools_uppercase" << "tools_lowercase" - << "tools_capitalize" << "tools_join_lines" << "tools_apply_wordwrap" - << "edit_undo" << "edit_redo" << "tools_spelling_from_cursor" + << "tools_capitalize" << "tools_delete_line" << "tools_join_lines" + << "tools_apply_wordwrap" << "edit_undo" << "edit_redo" << "tools_spelling_from_cursor" << "tools_spelling_selection"; TDEAction *a = 0; |