[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/workspace/plasma/dataengines/dict
From: Aaron J. Seigo <aseigo () kde ! org>
Date: 2009-08-06 13:04:29
Message-ID: 1249563869.462279.22336.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1007893 by aseigo:
use KTcpSocket as it has proxy support
CCBUG:201985
M +3 -2 dictengine.cpp
M +2 -2 dictengine.h
--- trunk/KDE/kdebase/workspace/plasma/dataengines/dict/dictengine.cpp #1007892:1007893
@@ -19,9 +19,9 @@
#include "dictengine.h"
#include <iostream>
-#include <QtNetwork/QTcpSocket>
#include <KDebug>
#include <KLocale>
+#include <ktcpsocket.h>
#include <Plasma/DataContainer>
@@ -50,6 +50,7 @@
static QString wnToHtml(const QString &word, QByteArray &text)
{
+ Q_UNUSED(word)
QList<QByteArray> splitText = text.split('\n');
QString def;
def += "<dl>\n";
@@ -195,7 +196,7 @@
setData(currentWord, dictName, QString());
} else {
setData(currentWord, dictName, QString());
- tcpSocket = new QTcpSocket(this);
+ tcpSocket = new KTcpSocket(this);
tcpSocket->abort();
connect(tcpSocket, SIGNAL(disconnected()), this, SLOT(socketClosed()));
--- trunk/KDE/kdebase/workspace/plasma/dataengines/dict/dictengine.h #1007892:1007893
@@ -20,7 +20,7 @@
#define DICTENGINE_H
#include <Plasma/DataEngine>
#include <QMap>
-class QTcpSocket;
+class KTcpSocket;
/**
* This class evaluates the basic expressions given in the interface.
@@ -48,7 +48,7 @@
void setServer(const QString &server);
QHash<QString, QString> dictNameToDictCode;
- QTcpSocket *tcpSocket;
+ KTcpSocket *tcpSocket;
QString currentWord;
QString dictName;
QString serverName;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic