aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/term/libkviterm.cpp
diff options
context:
space:
mode:
authorGravatar Szymon Tomasz Stefanek2015-08-24 04:19:29 +0200
committerGravatar Szymon Tomasz Stefanek2015-08-24 04:19:29 +0200
commit1797a667df88e420abeeaccad1e4a93020057153 (patch)
tree2c3954052c6d50e0ae887802dcbe9c58c32f896c /src/modules/term/libkviterm.cpp
parentAppveyor: fix typo (diff)
downloadKVIrc-1797a667df88e420abeeaccad1e4a93020057153.tar.gz
KVIrc-1797a667df88e420abeeaccad1e4a93020057153.tar.bz2
KVIrc-1797a667df88e420abeeaccad1e4a93020057153.zip
Add basic KDE5 support.
Diffstat (limited to 'src/modules/term/libkviterm.cpp')
-rw-r--r--src/modules/term/libkviterm.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/term/libkviterm.cpp b/src/modules/term/libkviterm.cpp
index b87024a27..d4ea13546 100644
--- a/src/modules/term/libkviterm.cpp
+++ b/src/modules/term/libkviterm.cpp
@@ -30,7 +30,7 @@
#include <QSplitter>
-#ifdef COMPILE_KDE_SUPPORT
+#ifdef COMPILE_KDE4_SUPPORT
#include "TermWidget.h"
#include "TermWindow.h"
@@ -65,7 +65,7 @@ KviModule * g_pTermModule = 0;
static bool term_kvs_cmd_open(KviKvsModuleCommandCall * c)
{
-#ifdef COMPILE_KDE_SUPPORT
+#ifdef COMPILE_KDE4_SUPPORT
c->module()->lock(); // multiple locks are allowed
if(c->hasSwitch('m',"mdi"))
{
@@ -76,7 +76,7 @@ static bool term_kvs_cmd_open(KviKvsModuleCommandCall * c)
w->show();
}
#else
- c->warning("Terminal emulation service not supported (non-KDE compilation)");
+ c->warning("Terminal emulation service not supported (non-KDE4 compilation)");
#endif
return true;
}
@@ -85,7 +85,7 @@ static bool term_module_init(KviModule * m)
{
g_pTermModule = m;
-#ifdef COMPILE_KDE_SUPPORT
+#ifdef COMPILE_KDE4_SUPPORT
g_pTermWidgetList = new KviPointerList<TermWidget>;
g_pTermWidgetList->setAutoDelete(false);
g_pTermWindowList = new KviPointerList<TermWindow>;
@@ -98,7 +98,7 @@ static bool term_module_init(KviModule * m)
static bool term_module_cleanup(KviModule *)
{
-#ifdef COMPILE_KDE_SUPPORT
+#ifdef COMPILE_KDE4_SUPPORT
while(g_pTermWidgetList->first())
delete g_pTermWidgetList->first();
delete g_pTermWidgetList;