diff options
| author | 2008-04-05 17:13:08 +0000 | |
|---|---|---|
| committer | 2008-04-05 17:13:08 +0000 | |
| commit | ff28d125380b2dbceb410f6f15785b78808fdad9 (patch) | |
| tree | 97457cd6c3c6c55744d72933bd095ddfcdf27b7e /src/modules/socketspy | |
| parent | More correct kde4 support handling; Changed SIZEOFs' names to be compliant wi... (diff) | |
| download | KVIrc-ff28d125380b2dbceb410f6f15785b78808fdad9.tar.gz KVIrc-ff28d125380b2dbceb410f6f15785b78808fdad9.tar.bz2 KVIrc-ff28d125380b2dbceb410f6f15785b78808fdad9.zip | |
code clean
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@1398 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/socketspy')
| -rw-r--r-- | src/modules/socketspy/libkvisocketspy.cpp | 11 | ||||
| -rw-r--r-- | src/modules/socketspy/socketspywindow.cpp | 10 |
2 files changed, 7 insertions, 14 deletions
diff --git a/src/modules/socketspy/libkvisocketspy.cpp b/src/modules/socketspy/libkvisocketspy.cpp index 2e8e632d7..d2d9b0d16 100644 --- a/src/modules/socketspy/libkvisocketspy.cpp +++ b/src/modules/socketspy/libkvisocketspy.cpp @@ -19,17 +19,14 @@ // Inc. ,59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. // - -#include "kvi_module.h" - - #include "socketspywindow.h" +#include "kvi_module.h" #include "kvi_frame.h" #include "kvi_window.h" #include "kvi_locale.h" -#include <qsplitter.h> +#include <QSplitter> KviPointerList<KviSocketSpyWindow> * g_pSocketSpyWindowList = 0; @@ -51,7 +48,7 @@ KviPointerList<KviSocketSpyWindow> * g_pSocketSpyWindowList = 0; */ static bool socketspy_kvs_cmd_open(KviKvsModuleCommandCall * c) -{ +{ if(!c->window()->console())return c->context()->errorNoIrcContext(); KviSocketSpyWindow *w = new KviSocketSpyWindow(c->window()->frame(),c->window()->console()); c->window()->frame()->addWindow(w); @@ -82,7 +79,7 @@ static bool socketspy_module_can_unload(KviModule *m) KVIRC_MODULE( "SocketSpy", // module name - "1.0.0", // module version + "4.0.0", // module version "Copyright (C) 2000 Szymon Stefanek (pragma at kvirc dot net)", // author & (C) "SocketSpy irc socket traffic monitor", socketspy_module_init, diff --git a/src/modules/socketspy/socketspywindow.cpp b/src/modules/socketspy/socketspywindow.cpp index 75693bba2..f0460aba3 100644 --- a/src/modules/socketspy/socketspywindow.cpp +++ b/src/modules/socketspy/socketspywindow.cpp @@ -27,21 +27,18 @@ #include "kvi_options.h" #include "kvi_locale.h" #include "kvi_console.h" - -#include <qsplitter.h> //#include "kvi_module.h" +#include <QSplitter> + + extern KviPointerList<KviSocketSpyWindow> * g_pSocketSpyWindowList; KviSocketSpyWindow::KviSocketSpyWindow(KviFrame * lpFrm,KviConsole * lpConsole) : KviWindow(KVI_WINDOW_TYPE_SOCKETSPY,lpFrm,"socket_spy",lpConsole) , KviIrcDataStreamMonitor(lpConsole->context()) { g_pSocketSpyWindowList->append(this); - #ifdef COMPILE_USE_QT4 m_pSplitter = new QSplitter(Qt::Horizontal,this,"splitter"); - #else - m_pSplitter = new QSplitter(QSplitter::Horizontal,this,"splitter"); -#endif m_pIrcView = new KviIrcView(m_pSplitter,lpFrm,this); // Ensure proper focusing //setFocusHandler(m_pIrcView,this); @@ -126,4 +123,3 @@ void KviSocketSpyWindow::applyOptions() #ifndef COMPILE_USE_STANDALONE_MOC_SOURCES #include "m_socketspywindow.moc" #endif //!COMPILE_USE_STANDALONE_MOC_SOURCES - |
