Rename additional global TQt functions

pull/1/head
Timothy Pearson 12 years ago
parent e20152b377
commit 51cbc8705e

@ -424,7 +424,7 @@ JezzGame::~JezzGame()
void JezzGame::display( const TQString &text, int size )
{
qDebug("This function \"display\" shouldn't be called!!!");
tqDebug("This function \"display\" shouldn't be called!!!");
if ( !text.isEmpty() )
{
//kdDebug(12008) << "text = " << text << endl;

@ -10,7 +10,7 @@
int main(int argc, char *argv[])
{
if ( argc!=4 )
qFatal("Arguments: width height nbMines");
tqFatal("Arguments: width height nbMines");
long seed = time(0);
cout << "seed = " << seed << endl;

@ -10,7 +10,7 @@
int main(int argc, char *argv[])
{
if ( argc!=4 )
qFatal("Arguments: width height nbMines");
tqFatal("Arguments: width height nbMines");
long seed = time(0);
cout << "seed = " << seed << endl;

@ -70,7 +70,7 @@ void ExtManager::convertLegacy(uint gameType)
// Since there is no information about the skill level
// in the legacy highscore list, consider they are
// for beginner skill ...
qDebug("convert legacy %i", gameType);
tqDebug("convert legacy %i", gameType);
if ( gameType!=0 )
return;

@ -15,7 +15,7 @@ int main(int argc, char **argv)
TQString s = args->arg(0);
bool ok;
uint nb = s.toUInt(&ok);
if ( !ok ) qFatal("The argument is not an unsigned integer.");
if ( !ok ) tqFatal("The argument is not an unsigned integer.");
cout << "--------------" << endl;

@ -159,16 +159,16 @@ void GameWidget::loadSprites()
void GameWidget::loadSprite(Sprite spr, const TQString & path)
{
if (!sprites[spr].load(locate("appdata", TQString("data/") + path)))
qFatal("Cannot open data files.\nHave you correctly installed KSmiletris?");
tqFatal("Cannot open data files.\nHave you correctly installed KSmiletris?");
}
void GameWidget::loadMaskedSprite(Sprite spr, const TQString & path1, const TQString & path2)
{
TQBitmap bmp;
if (!sprites[spr].load(locate("appdata", TQString("data/") + path1)))
qFatal("Cannot open data files.\nHave you correctly installed KSmiletris?");
tqFatal("Cannot open data files.\nHave you correctly installed KSmiletris?");
if (!bmp.load(locate("appdata", TQString("data/") + path2)))
qFatal("Cannot open data files.\nHave you correctly installed KSmiletris?");
tqFatal("Cannot open data files.\nHave you correctly installed KSmiletris?");
sprites[spr].setMask(bmp);
}

@ -63,7 +63,7 @@ void Pos::addBTree(Pos *np) {
else if(np->index() > index())
p = &right;
else {
qFatal("Repeated nodes on btree should never happens");
tqFatal("Repeated nodes on btree should never happens");
}
if(! *p) {
@ -113,7 +113,7 @@ void Pos::addList(Pos *np) {
return;
}
}
qFatal("Shouldn't reach this point");
tqFatal("Shouldn't reach this point");
}
Board::Board(int s)
@ -250,7 +250,7 @@ int Board::getNextCloseTo(int s, int d, bool diag, int lastIndex)
return(nextSq);
}
}
qFatal("Never here");
tqFatal("Never here");
}
// Make possible moves.

@ -15,7 +15,7 @@
//-----------------------------------------------------------------------------
void Local::dataError(uint i)
{
qWarning("MP : Invalid data from board #%i", i);
tqWarning("MP : Invalid data from board #%i", i);
}
void Local::readData(bool inverse)
@ -56,7 +56,7 @@ Server::Server(uint _interval)
void Server::congestion()
{
qWarning("MP : congestion occurred !!");
tqWarning("MP : congestion occurred !!");
}
void Server::serverTimeout()
@ -274,5 +274,5 @@ void Client::notifier(int)
break;
default: DATA_ERROR(0);
}
if ( !s.atEnd() ) qWarning("CLIENT : remaining data");
if ( !s.atEnd() ) tqWarning("CLIENT : remaining data");
}

@ -109,7 +109,7 @@ KRServerSocket::KRServerSocket( const char *_path, int optname, int value, int l
if ( !init ( _path,optname,value,level ) )
{
qFatal("Error constructing PF_UNIX domain server socket\n");
tqFatal("Error constructing PF_UNIX domain server socket\n");
return;
}
@ -124,7 +124,7 @@ KRServerSocket::KRServerSocket( const char *_path ) :
if ( !init ( _path ) )
{
qFatal("Error constructing PF_UNIX domain server socket\n");
tqFatal("Error constructing PF_UNIX domain server socket\n");
return;
}

@ -47,7 +47,7 @@ int main(int argc, char *argv[])
{
TQString s = args->getOption("debug");
global_debug = s.toInt();
qDebug("Debug level set to %d\n", global_debug);
tqDebug("Debug level set to %d\n", global_debug);
}
args->clear();

Loading…
Cancel
Save