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/spaste/controller.cpp | |
| 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/spaste/controller.cpp')
| -rw-r--r-- | src/modules/spaste/controller.cpp | 34 |
1 files changed, 10 insertions, 24 deletions
diff --git a/src/modules/spaste/controller.cpp b/src/modules/spaste/controller.cpp index cf6924275..438b82938 100644 --- a/src/modules/spaste/controller.cpp +++ b/src/modules/spaste/controller.cpp @@ -20,24 +20,26 @@ // Inc. ,59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "controller.h" + #include "kvi_window.h" #include "kvi_console.h" #include "kvi_mirccntrl.h" #include "kvi_app.h" #include "kvi_options.h" -#include <qtimer.h> -#include <qstringlist.h> -#include <qclipboard.h> +#include <QTimer> +#include <QString> +#include <QStringList> +#include <QClipboard> extern KviPointerList<SPasteController> * g_pControllerList; SPasteController::SPasteController(KviWindow * w,int id) - : m_pClipBuff(NULL),m_pFile(NULL),m_pId(id),m_pWindow(w) +: m_pClipBuff(NULL),m_pFile(NULL),m_pId(id),m_pWindow(w) { - g_pControllerList->append(this); - //m_pWindow = w; - m_pTimer = new QTimer(this); + g_pControllerList->append(this); + //m_pWindow = w; + m_pTimer = new QTimer(this); } SPasteController::~SPasteController() @@ -86,22 +88,7 @@ bool SPasteController::pasteClipboardInit(void) void SPasteController::pasteFile(void) { -#ifndef COMPILE_USE_QT4 - QString line; - if(m_pFile->readLine(line,999) != -1) - { - if(line.isEmpty()) - line = QChar(KVI_TEXT_RESET); - if( (!g_pApp->windowExists(m_pWindow)) || m_pWindow->console()->isNotConnected() ) - { - m_pFile->close(); - delete this; - } else m_pWindow->ownMessage(line.ascii()); - } else { //File finished - m_pFile->close(); - delete this; - } -#endif + } void SPasteController::pasteClipboard(void) @@ -121,4 +108,3 @@ void SPasteController::pasteClipboard(void) #ifndef COMPILE_USE_STANDALONE_MOC_SOURCES #include "controller.moc" #endif //!COMPILE_USE_STANDALONE_MOC_SOURCES - |
