Commit a9f2de1d authored by Stephan Kulow's avatar Stephan Kulow

bring it a bit further to compile - just to notice it's a bit of a mess

;(

svn path=/trunk/KDE/kdegames/lskat/; revision=473659
parent 69acc030
......@@ -18,6 +18,8 @@
#include "KChildConnect.h"
#include "KChildConnect.moc"
//Added by qt3to4:
#include <Q3CString>
KChildConnect::KChildConnect()
: QObject(0,0)
......@@ -40,12 +42,12 @@ bool KChildConnect::SendMsg(KEMessage *msg)
{
QString sendstring=msg->ToString();
// Debug only
if (msg->HasKey(QCString("KLogSendMsg")))
if (msg->HasKey(Q3CString("KLogSendMsg")))
{
char *p;
int size;
FILE *fp;
msg->GetData(QCString("KLogSendMsg"),p,size);
msg->GetData(Q3CString("KLogSendMsg"),p,size);
if (p && (fp=fopen(p,"a")) )
{
fprintf(fp,"------------------------------------\n");
......@@ -104,7 +106,7 @@ void KChildConnect::Receive(QString input)
char *it;
for (it=inputcache.first();it!=0;it=inputcache.next())
{
msg->AddString(QCString(it));
msg->AddString(Q3CString(it));
}
// printf("+- CHILDprocess:: GOT MESSAGE::Emmiting slotReceiveMsg\n");
......
......@@ -18,7 +18,7 @@
#define _KCHILDCONNECT_H_
#include <qobject.h>
#include <qstrlist.h>
#include <q3strlist.h>
#include "KEMessage.h"
......@@ -27,7 +27,7 @@ class KChildConnect: public QObject
Q_OBJECT
protected:
QStrList inputcache;
Q3StrList inputcache;
bool input_pending;
QString inputbuffer;
int ID;
......
......@@ -17,10 +17,10 @@
#ifndef _KEINPUT_H_
#define _KEINPUT_H_
#include <qptrlist.h>
#include <q3ptrlist.h>
#include <qobject.h>
#include <qtimer.h>
#include <qmemarray.h>
#include <q3memarray.h>
#include "KConnectEntry.h"
#include "KRemoteConnect.h"
#include "KProcessConnect.h"
......@@ -40,10 +40,10 @@ class KEInput : public QObject
// KEMessage *mMsg;
QTimer *cTimer;
QPtrList<KRemoteConnect> remoteList;
QPtrList<KProcessConnect> computerList;
QPtrList<KInteractiveConnect> interactiveList;
QMemArray<KConnectEntry> playerArray;
Q3PtrList<KRemoteConnect> remoteList;
Q3PtrList<KProcessConnect> computerList;
Q3PtrList<KInteractiveConnect> interactiveList;
Q3MemArray<KConnectEntry> playerArray;
public:
KEInput(QObject * parent=0);
......
......@@ -18,6 +18,9 @@
#include <stdio.h>
#include <stdlib.h>
#include "KEMessage.h"
//Added by qt3to4:
#include <Q3StrList>
#include <Q3CString>
void KEMessage::AddEntry(QString key,KMessageEntry *entry)
{
......@@ -129,7 +132,7 @@ QString KEMessage::EntryToString(char *key,KMessageEntry *entry)
int size,i;
KGM_TYPE type;
char *data;
s=QCString("");
s=Q3CString("");
if (!entry) return s;
size=entry->QuerySize();
type=entry->QueryType();
......@@ -142,7 +145,7 @@ QString KEMessage::EntryToString(char *key,KMessageEntry *entry)
size,KEMESSAGE_SEP,
(int)type,KEMESSAGE_SEP);
*/
tmp=QCString(key);
tmp=Q3CString(key);
s+=tmp;
s+=KEMESSAGE_SEP;
tmp.sprintf("%d",size);
......@@ -226,7 +229,7 @@ QString KEMessage::ToString()
s=KEMESSAGE_HEAD+KEMESSAGE_CR;
for (it=keys.first();it!=0;it=keys.next())
{
entry=dict.find(QCString(it));
entry=dict.find(Q3CString(it));
s+=EntryToString(it,entry);
}
s+=KEMESSAGE_TAIL+KEMESSAGE_CR;
......@@ -287,7 +290,7 @@ uint KEMessage::QueryNumberOfKeys()
{
return keys.count();
}
QStrList *KEMessage::QueryKeys()
Q3StrList *KEMessage::QueryKeys()
{
return &keys;
}
......@@ -315,10 +318,10 @@ KEMessage &KEMessage::operator=(KEMessage &msg)
// printf("Assigning = KEMessage from %p to %p\n",&msg,this);
for (it=msg.keys.first();it!=0;it=msg.keys.next())
{
entry=msg.dict.find(QCString(it));
entry=msg.dict.find(Q3CString(it));
newentry=new KMessageEntry;
*newentry=*entry;
AddEntry(QCString(it),newentry);
AddEntry(Q3CString(it),newentry);
}
// return *newmsg;
......
......@@ -19,25 +19,25 @@
#include <string.h>
#include <qstring.h>
#include <qstrlist.h>
#include <qdict.h>
#include <q3strlist.h>
#include <q3dict.h>
#include "KMessageEntry.h"
#define KEMESSAGE_HEAD QString(QCString("BEGIN_V1000"))
#define KEMESSAGE_TAIL QString(QCString("END_V1000"))
#define KEMESSAGE_CR QString(QCString("\n"))
#define KEMESSAGE_SEP QString(QCString(":::"))
#define KEMESSAGE_HEAD QString(Q3CString("BEGIN_V1000"))
#define KEMESSAGE_TAIL QString(Q3CString("END_V1000"))
#define KEMESSAGE_CR QString(Q3CString("\n"))
#define KEMESSAGE_SEP QString(Q3CString(":::"))
class KEMessage
{
private:
QStrList keys;
QDict<KMessageEntry> dict;
Q3StrList keys;
Q3Dict<KMessageEntry> dict;
protected:
void AddEntry(QString key,KMessageEntry *entry);
public:
QStrList *QueryKeys();
Q3StrList *QueryKeys();
uint QueryNumberOfKeys();
void AddDataType(QString key,int size,const char *data,KGM_TYPE type);
void AddData(QString key,short data);
......
......@@ -34,6 +34,8 @@
#include "KProcessConnect.h"
#include "KProcessConnect.moc"
//Added by qt3to4:
#include <Q3CString>
KProcessConnect::KProcessConnect()
: KChildConnect()
......@@ -57,13 +59,13 @@ bool KProcessConnect::Init(int id,KEMessage *msg)
SetID(id);
if (msg)
{
if (!msg->GetData(QCString("ProcessName"),p,size)) return false; // no process name
if (!msg->GetData(Q3CString("ProcessName"),p,size)) return false; // no process name
processname=p;
/*
printf("Found processname '%s' size %d size=%u\n",
p,size,msg->QueryNumberOfKeys());
*/
msg->Remove(QCString("ProcessName"));
msg->Remove(Q3CString("ProcessName"));
}
if (processname.length()<1) return false;
......@@ -179,7 +181,7 @@ bool KProcessConnect::Send(QString str)
bool result;
// printf("****** PROCESS:SEND\n");
if (!running || !process) return false;
if (!str || str.length()<1) return true; // no need to send crap
if (str.isEmpty()) return true; // no need to send crap
// TODO ..why?
QString s;
s=KEMESSAGE_CR+KEMESSAGE_CR;
......
......@@ -38,6 +38,8 @@
#include "KRemoteConnect.h"
#include "KRemoteConnect.moc"
//Added by qt3to4:
#include <Q3CString>
const char* LSKAT_SERVICE = "_lskat._tcp";
......@@ -78,20 +80,20 @@ bool tryserver;
SetID(id);
if (msg)
{
if (msg->GetData(QCString("Port"),prt))
if (msg->GetData(Q3CString("Port"),prt))
{
port=(unsigned int)prt;
msg->Remove(QCString("Port"));
msg->Remove(Q3CString("Port"));
}
if (msg->GetData(QCString("IP"),p,size))
if (msg->GetData(Q3CString("IP"),p,size))
{
IP=QCString(p);
msg->Remove(QCString("IP"));
IP=Q3CString(p);
msg->Remove(Q3CString("IP"));
}
if (msg->GetData(QCString("Name"),p,size))
if (msg->GetData(Q3CString("Name"),p,size))
{
Name=QString::fromUtf8(p);
msg->Remove(QCString("Name"));
msg->Remove(Q3CString("Name"));
}
}
/*
......@@ -127,7 +129,7 @@ bool tryserver;
// Send msg if any
if (msg->QueryNumberOfKeys()>0)
{
msg->AddData(QCString("Server"),(short)QueryID());
msg->AddData(Q3CString("Server"),(short)QueryID());
SendMsg(msg);
}
......@@ -220,7 +222,7 @@ void KRemoteConnect::socketRequest(KSocket *sock)
if (bufferMsg)
{
// Delayed sending of init msg
bufferMsg->AddData(QCString("Client"),(short)QueryID());
bufferMsg->AddData(Q3CString("Client"),(short)QueryID());
SendMsg(bufferMsg);
delete bufferMsg;
bufferMsg=0;
......@@ -234,7 +236,7 @@ void KRemoteConnect::socketClosed(KSocket *sock)
kSocket=0;
socketStatus=KR_INVALID;
KEMessage *msg=new KEMessage;
msg->AddData(QCString("ConnectionLost"),(short)QueryID());
msg->AddData(Q3CString("ConnectionLost"),(short)QueryID());
emit signalReceiveMsg(msg,QueryID());
delete msg;
}
......
......@@ -16,7 +16,9 @@
***************************************************************************/
// include files for QT
#include <qprogressdialog.h>
#include <q3progressdialog.h>
//Added by qt3to4:
#include <Q3CString>
// include files for KDE
#include <kstandarddirs.h>
......@@ -52,8 +54,8 @@ LSkatApp::LSkatApp() : KMainWindow(0)
// localise data file
QString file=QString::fromLatin1("lskat/grafix/t1.png");
mGrafix=kapp->dirs()->findResourceDir("data", file);
if (mGrafix.isNull()) mGrafix = QCString("grafix/");
else mGrafix+=QCString("lskat/grafix/");
if (mGrafix.isNull()) mGrafix = Q3CString("grafix/");
else mGrafix+=Q3CString("lskat/grafix/");
if (global_debug>3) printf("Localised datafile=%s\n",mGrafix.latin1());
......@@ -370,18 +372,18 @@ void LSkatApp::slotFileMessage()
{
int res;
MsgDlg *dlg=new MsgDlg(this,QCString("Send message..."));
MsgDlg *dlg=new MsgDlg(this,Q3CString("Send message..."));
res=dlg->exec();
if (res==QDialog::Accepted)
{
QString s;
s=dlg->GetMsg();
if (!s || s.length()<1) s=QCString("...");
if (!s || s.length()<1) s=Q3CString("...");
KEMessage *msg=new KEMessage;
// printf("Msg: %s\n",(char *)msg);
msg->AddData(QCString("Message"),(char *)(s.latin1()));
msg->AddData(Q3CString("Message"),(char *)(s.latin1()));
if (mInput->QueryType(0)==KG_INPUTTYPE_REMOTE)
mInput->SendMsg(msg,0);
if (mInput->QueryType(1)==KG_INPUTTYPE_REMOTE)
......@@ -403,14 +405,14 @@ void LSkatApp::slotFileEnd()
slotStatusMsg(i18n("Game ended...start a new one..."));
KEMessage *msg=new KEMessage;
msg->AddData(QCString("EndGame"),(short)1);
msg->AddData(Q3CString("EndGame"),(short)1);
if (mInput->QueryType(0)==KG_INPUTTYPE_REMOTE)
mInput->SendMsg(msg,0);
if (mInput->QueryType(1)==KG_INPUTTYPE_REMOTE)
mInput->SendMsg(msg,1);
msg->RemoveAll();
msg->AddData(QCString("Terminate"),(short)1);
msg->AddData(Q3CString("Terminate"),(short)1);
if (mInput->QueryType(0)==KG_INPUTTYPE_PROCESS)
mInput->SendMsg(msg,0);
if (mInput->QueryType(1)==KG_INPUTTYPE_PROCESS)
......@@ -503,7 +505,7 @@ void LSkatApp::slotPlayer2(KG_INPUTTYPE i)
void LSkatApp::slotOptionsNames()
{
NameDlg *dlg=new NameDlg(this,QCString("Enter your name..."));
NameDlg *dlg=new NameDlg(this,Q3CString("Enter your name..."));
dlg->SetNames(doc->GetName(0),doc->GetName(1));
if (dlg->exec()==QDialog::Accepted)
{
......@@ -665,13 +667,13 @@ bool LSkatApp::MakeInputDevice(int no)
port=doc->QueryPort();
host=doc->QueryHost();
Name=doc->QueryName();
msg->AddData(QCString("Port"),(short)port);
msg->AddData(QCString("IP"),(char *)(host.latin1()));
msg->AddData(QCString("Name"),(const char *)(Name.utf8()));
msg->AddData(Q3CString("Port"),(short)port);
msg->AddData(Q3CString("IP"),(char *)(host.latin1()));
msg->AddData(Q3CString("Name"),(const char *)(Name.utf8()));
res=mInput->SetInputDevice(no,type,msg);
if (!res)
{
QProgressDialog *progress;
Q3ProgressDialog *progress;
QString s;
int tim,j;
tim=10000;
......@@ -683,7 +685,7 @@ bool LSkatApp::MakeInputDevice(int no)
{
s=i18n("Offering remote connection on port %1...").arg(port);
}
progress=new QProgressDialog(s, i18n("Abort"), tim, this,0,true );
progress=new Q3ProgressDialog(s, i18n("Abort"), tim, this,0,true );
progress->setCaption(i18n("Lieutenant Skat"));
for (j=0; j<tim; j++)
{
......@@ -704,7 +706,7 @@ bool LSkatApp::MakeInputDevice(int no)
{
if (global_debug>10)
printf("We want theother one to be client\n");
msg->AddData(QCString("Client"),(short)-1); // force client
msg->AddData(Q3CString("Client"),(short)-1); // force client
mInput->SendMsg(msg,no);
}
// resp server
......@@ -712,7 +714,7 @@ bool LSkatApp::MakeInputDevice(int no)
{
if (global_debug>10)
printf("We want theother one to be server\n");
msg->AddData(QCString("Server"),(short)-1); // force server
msg->AddData(Q3CString("Server"),(short)-1); // force server
mInput->SendMsg(msg,no);
}
}
......@@ -737,7 +739,7 @@ bool LSkatApp::MakeInputDevice(int no)
}
if (path.isNull()) return false;
msg=new KEMessage;
msg->AddData(QCString("ProcessName"),(char *)(path.latin1()));
msg->AddData(Q3CString("ProcessName"),(char *)(path.latin1()));
// msg->AddData("ProcessName",doc->QueryProcessName());
res=mInput->SetInputDevice(no,KG_INPUTTYPE_PROCESS,msg);
delete msg;
......@@ -751,7 +753,7 @@ void LSkatApp::OptionsNetwork()
{
int res;
NetworkDlg *dlg=new NetworkDlg(this,QCString("Configure a network game..."));
NetworkDlg *dlg=new NetworkDlg(this,Q3CString("Configure a network game..."));
dlg->SetPort(doc->QueryPort());
dlg->SetHost(doc->QueryHost());
dlg->SetName(doc->QueryName());
......@@ -768,13 +770,13 @@ void LSkatApp::slotPrepareProcessMove(KEMessage *msg)
printf("+++ main should prepare process move\n");
slotStatusMsg(i18n("Waiting for the computer to move..."));
msg->AddData(QCString("Hint"),(short)0);
msg->AddData(QCString("Move"),(short)1);
msg->AddData(Q3CString("Hint"),(short)0);
msg->AddData(Q3CString("Move"),(short)1);
if (global_debug>3)
printf("PREPARE GAME in processmove\n");
if (global_debug>1)
msg->AddData(QCString("KLogSendMsg"),"process.log");
msg->AddData(Q3CString("KLogSendMsg"),"process.log");
PrepareGame(msg);
}
......@@ -812,15 +814,15 @@ void LSkatApp::slotReceiveInput(KEMessage *msg,int )
bool remotesend;
int size;
if (msg->HasKey(QCString("Debug")))
if (msg->HasKey(Q3CString("Debug")))
{
char *debug;
msg->GetData(QCString("Debug"),debug,size);
msg->GetData(Q3CString("Debug"),debug,size);
printf("Received Debug: %d <%s>\n",size,debug);
}
if (msg->HasKey(QCString("ConnectionLost")))
if (msg->HasKey(Q3CString("ConnectionLost")))
{
if (msg->GetData(QCString("ConnectionLost"),move))
if (msg->GetData(Q3CString("ConnectionLost"),move))
{
if (move==0)
{
......@@ -838,10 +840,10 @@ void LSkatApp::slotReceiveInput(KEMessage *msg,int )
}
}
}
if (msg->HasKey(QCString("Message")))
if (msg->HasKey(Q3CString("Message")))
{
char *p;
if (msg->GetData(QCString("Message"),p,size))
if (msg->GetData(Q3CString("Message"),p,size))
{
message=i18n("Message from remote player:\n")+p;
KMessageBox::information(this,message);
......@@ -849,18 +851,18 @@ void LSkatApp::slotReceiveInput(KEMessage *msg,int )
printf("MESSAGE **** %s ****\n",message.latin1());
}
}
if (msg->HasKey(QCString("EndGame")))
if (msg->HasKey(Q3CString("EndGame")))
{
KEMessage *msg2=new KEMessage;
msg2->AddData(QCString("Terminate"),(short)1);
msg2->AddData(Q3CString("Terminate"),(short)1);
if (mInput->QueryType(0)==KG_INPUTTYPE_PROCESS)
mInput->SendMsg(msg2,0);
if (mInput->QueryType(1)==KG_INPUTTYPE_PROCESS)
mInput->SendMsg(msg2,1);
delete msg2;
msg->GetData(QCString("EndGame"),move);
msg->GetData(Q3CString("EndGame"),move);
message=i18n("Remote player ended game...");
KMessageBox::information(this,message);
slotStatusMsg(message);
......@@ -870,19 +872,19 @@ void LSkatApp::slotReceiveInput(KEMessage *msg,int )
slotStatusNames();
}
if (msg->HasKey(QCString("Move")))
if (msg->HasKey(Q3CString("Move")))
{
slotStatusMsg(i18n("Ready"));
msg->GetData(QCString("Move"),player);
msg->GetData(QCString("MoveX"),x);
msg->GetData(QCString("MoveY"),y);
remotesend=msg->HasKey(QCString("RemoteMove"));
msg->GetData(Q3CString("Move"),player);
msg->GetData(Q3CString("MoveX"),x);
msg->GetData(Q3CString("MoveY"),y);
remotesend=msg->HasKey(Q3CString("RemoteMove"));
if (remotesend && doc->IsRemoteSwitch())
player=1-player;
Move((int)x,(int)y,(int)player,remotesend);
}
// Client key is automatically added by message system !!!
if (msg->HasKey(QCString("Client")))
if (msg->HasKey(Q3CString("Client")))
{
if (global_debug>5)
printf("We are client and extracting game data now.\n");
......@@ -895,7 +897,7 @@ void LSkatApp::slotReceiveInput(KEMessage *msg,int )
mInput->Next(doc->GetStartPlayer());
}
// Server key is automatically added by message system !!!
if (msg->HasKey(QCString("Server")))
if (msg->HasKey(Q3CString("Server")))
{
if (global_debug>5)
printf("We are server now.\n");
......@@ -969,10 +971,10 @@ void LSkatApp::Move(int x,int y,int player,bool remote)
{
msg=new KEMessage;
if (doc->IsRemoteSwitch()) player=1-player;
msg->AddData(QCString("Move"),(short)player);
msg->AddData(QCString("MoveX"),(short)x);
msg->AddData(QCString("MoveY"),(short)y);
msg->AddData(QCString("RemoteMove"),(short)1);
msg->AddData(Q3CString("Move"),(short)player);
msg->AddData(Q3CString("MoveX"),(short)x);
msg->AddData(Q3CString("MoveY"),(short)y);
msg->AddData(Q3CString("RemoteMove"),(short)1);
if (mInput->QueryType(0)==KG_INPUTTYPE_REMOTE)
mInput->SendMsg(msg,0);
if (mInput->QueryType(1)==KG_INPUTTYPE_REMOTE)
......@@ -1004,22 +1006,22 @@ void LSkatApp::PrepareGame(KEMessage *msg)
if (!msg)
return;
msg->AddData(QCString("Cards"),(char *)doc->GetCardP(),NO_OF_CARDS*sizeof(int));
msg->AddData(QCString("Startplayer"),(short)doc->GetStartPlayer());
msg->AddData(QCString("CurrentPlayer"),(short)doc->GetCurrentPlayer());
msg->AddData(Q3CString("Cards"),(char *)doc->GetCardP(),NO_OF_CARDS*sizeof(int));
msg->AddData(Q3CString("Startplayer"),(short)doc->GetStartPlayer());
msg->AddData(Q3CString("CurrentPlayer"),(short)doc->GetCurrentPlayer());
if (doc->GetPlayedBy(0)==KG_INPUTTYPE_REMOTE)
msg->AddData(QCString("RemoteIs"),(short)0);
msg->AddData(Q3CString("RemoteIs"),(short)0);
else if (doc->GetPlayedBy(1)==KG_INPUTTYPE_REMOTE)
msg->AddData(QCString("RemoteIs"),(short)1);
msg->AddData(QCString("Trump"),(short)doc->GetTrump());
msg->AddData(Q3CString("RemoteIs"),(short)1);
msg->AddData(Q3CString("Trump"),(short)doc->GetTrump());
// For computer player
// -1 or the current played card
msg->AddData(QCString("CurrentMove"),(short)doc->GetMove(doc->GetStartPlayer()));
msg->AddData(QCString("Height"),(char *)doc->GetCardHeightP(),NO_OF_CARDS/2*sizeof(int));
msg->AddData(QCString("No"),(short)doc->GetMoveNo());
msg->AddData(QCString("Sc1"),(short)doc->GetScore(0));
msg->AddData(QCString("Sc2"),(short)doc->GetScore(1));
msg->AddData(QCString("Level"),(short)doc->GetComputerLevel());
msg->AddData(Q3CString("CurrentMove"),(short)doc->GetMove(doc->GetStartPlayer()));
msg->AddData(Q3CString("Height"),(char *)doc->GetCardHeightP(),NO_OF_CARDS/2*sizeof(int));
msg->AddData(Q3CString("No"),(short)doc->GetMoveNo());
msg->AddData(Q3CString("Sc1"),(short)doc->GetScore(0));
msg->AddData(Q3CString("Sc2"),(short)doc->GetScore(1));
msg->AddData(Q3CString("Level"),(short)doc->GetComputerLevel());
}
void LSkatApp::ExtractGame(KEMessage *msg)
......@@ -1029,7 +1031,7 @@ void LSkatApp::ExtractGame(KEMessage *msg)
// Do we have to switch players?
bool switchit;
short remote;
msg->GetData(QCString("RemoteIs"),remote);
msg->GetData(Q3CString("RemoteIs"),remote);
if (doc->GetPlayedBy(remote)==KG_INPUTTYPE_REMOTE) switchit=true;
else switchit=false;
......@@ -1038,10 +1040,10 @@ void LSkatApp::ExtractGame(KEMessage *msg)
int *cards;
char *p;
short trump;
msg->GetData(QCString("Startplayer"),start);
msg->GetData(QCString("Cards"),p,size);
msg->GetData(Q3CString("Startplayer"),start);
msg->GetData(Q3CString("Cards"),p,size);
cards=(int *)p;
msg->GetData(QCString("Trump"),trump);
msg->GetData(Q3CString("Trump"),trump);
if (size!=NO_OF_CARDS*sizeof(int))
{
printf("Error: Transmission of cards failed..wrong sizes\n");
......
......@@ -24,7 +24,7 @@
#endif
// include files for Qt
#include <qstrlist.h>
#include <q3strlist.h>
// include files for KDE
#include <kapplication.h>
......@@ -200,7 +200,7 @@ protected: // Protected attributes
private:
/** contains the recently used filenames */
QStrList recentFiles;
Q3StrList recentFiles;
/** the configuration object of the application */
KConfig *config;
......
......@@ -18,6 +18,9 @@
// include files for Qt
#include <qdir.h>
#include <qfileinfo.h>
//Added by qt3to4:
#include <Q3CString>
#include <Q3PtrList>
#include <time.h>
#include <unistd.h>
#include <stdlib.h>
......@@ -34,14 +37,14 @@
#include "lskatview.h"
#include <kcarddialog.h>
QPtrList<LSkatView> *LSkatDoc::pViewList = 0L;
Q3PtrList<LSkatView> *LSkatDoc::pViewList = 0L;
LSkatDoc::LSkatDoc(QWidget *parent, const char *name) : QObject(parent, name)
{
int i;
if(!pViewList)
{
pViewList = new QPtrList<LSkatView>();
pViewList = new Q3PtrList<LSkatView>();
}
pViewList->setAutoDelete(true);
......@@ -744,7 +747,7 @@ void LSkatDoc::ReadConfig(KConfig *config)
config->setGroup("Par