aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2014-01-21 23:43:56 (GMT)
committerChristoph Cullmann <cullmann@kde.org>2014-01-21 23:43:56 (GMT)
commit3bfbd687d53f9d6125f3ecb8ff7052aa4b76c6e1 (patch)
tree0d4980de32b0d95a2dc55f2218ba1335a7ea6e38
parent21f236ff2ed2f17260cb438fe398d7c7282b17a4 (diff)
no beep, no notifications
-rw-r--r--CMakeLists.txt1
-rw-r--r--KF5TextEditorConfig.cmake.in1
-rw-r--r--src/CMakeLists.txt2
-rw-r--r--src/completion/katewordcompletion.cpp3
-rw-r--r--src/view/kateviewhelpers.cpp3
-rw-r--r--src/vimode/kateviemulatedcommandbar.cpp3
6 files changed, 1 insertions, 12 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f60833b..d541b34 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -50,7 +50,6 @@ if("${CMAKE_BINARY_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}")
find_package(KF5PrintUtils ${KF5_VERSION} REQUIRED)
find_package(KF5Sonnet ${KF5_VERSION} REQUIRED)
find_package(KF5XmlGui ${KF5_VERSION} REQUIRED)
- find_package(KF5Notifications ${KF5_VERSION} REQUIRED)
endif()
# Subdirectories
diff --git a/KF5TextEditorConfig.cmake.in b/KF5TextEditorConfig.cmake.in
index 135f019..86d4bf3 100644
--- a/KF5TextEditorConfig.cmake.in
+++ b/KF5TextEditorConfig.cmake.in
@@ -16,7 +16,6 @@ find_package(KF5Parts "@KF5_VERSION@")
find_package(KF5PrintUtils "@KF5_VERSION@")
find_package(KF5Sonnet "@KF5_VERSION@")
find_package(KF5XmlGui "@KF5_VERSION@")
-find_package(KF5Notifications "@KF5_VERSION@")
include("${CMAKE_CURRENT_LIST_DIR}/KF5TextEditorTargets.cmake")
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 761ec5c..7c15914 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -229,7 +229,7 @@ target_include_directories(KF5TextEditor INTERFACE "$<INSTALL_INTERFACE:${INCLUD
# API is more or less KParts++, other stuff is used only internally
target_link_libraries (KF5TextEditor
LINK_PUBLIC KF5::Parts
- LINK_PRIVATE Qt5::Script KF5::I18n KF5::Archive KF5::GuiAddons KF5::IconThemes KF5::ItemViews KF5::KIOFileWidgets KF5::PrintUtils KF5::SonnetCore KF5::Notifications)
+ LINK_PRIVATE Qt5::Script KF5::I18n KF5::Archive KF5::GuiAddons KF5::IconThemes KF5::ItemViews KF5::KIOFileWidgets KF5::PrintUtils KF5::SonnetCore)
set_target_properties(KF5TextEditor
PROPERTIES VERSION ${KTEXTEDITOR_VERSION_STRING}
diff --git a/src/completion/katewordcompletion.cpp b/src/completion/katewordcompletion.cpp
index 7427d0b..a77a7ee 100644
--- a/src/completion/katewordcompletion.cpp
+++ b/src/completion/katewordcompletion.cpp
@@ -34,7 +34,6 @@
#include <KLocalizedString>
#include <KPluginFactory>
#include <KActionCollection>
-#include <KNotification>
#include <KParts/Part>
#include <KIconLoader>
#include <KPageDialog>
@@ -515,7 +514,6 @@ void KateWordCompletionView::complete(bool fw)
ln = doc->line(l);
d->dcCursor.setPosition(l, ln.length());
} else {
- KNotification::beep();
return;
}
}
@@ -530,7 +528,6 @@ void KateWordCompletionView::complete(bool fw)
else { // no match
//qCDebug(LOG_PART)<<"NO MATCH";
if ((! fw && d->dcCursor.line() == 0) || (fw && d->dcCursor.line() >= doc->lines())) {
- KNotification::beep();
return;
}
diff --git a/src/view/kateviewhelpers.cpp b/src/view/kateviewhelpers.cpp
index 6768d06..83e5cf8 100644
--- a/src/view/kateviewhelpers.cpp
+++ b/src/view/kateviewhelpers.cpp
@@ -45,7 +45,6 @@
#include <KColorScheme>
#include <KColorUtils>
#include <KLocalizedString>
-#include <KNotification>
#include <KIconLoader>
#include <KConfigGroup>
#include <khelpclient.h>
@@ -1010,11 +1009,9 @@ void KateCmdLineEdit::slotReturnPressed(const QString &text)
} else {
setText(i18n("Command \"%1\" failed.", cmd));
}
- KNotification::beep();
}
} else {
setText(i18n("No such command: \"%1\"", cmd));
- KNotification::beep();
}
}
}
diff --git a/src/vimode/kateviemulatedcommandbar.cpp b/src/vimode/kateviemulatedcommandbar.cpp
index e1c4523..ebe5cb8 100644
--- a/src/vimode/kateviemulatedcommandbar.cpp
+++ b/src/vimode/kateviemulatedcommandbar.cpp
@@ -34,7 +34,6 @@
#include "katevivisualmode.h"
#include <KColorScheme>
-#include <KNotification>
#include <KLocalizedString>
#include <QLineEdit>
@@ -1141,11 +1140,9 @@ QString KateViEmulatedCommandBar::executeCommand(const QString &commandToExecute
} else {
commandResponseMessage = i18n("Command \"%1\" failed.", cmd);
}
- KNotification::beep();
}
} else {
commandResponseMessage = i18n("No such command: \"%1\"", cmd);
- KNotification::beep();
}
}
}