Rename obsolete tq methods to standard names

pull/1/head
Timothy Pearson 13 years ago
parent c0f375feba
commit 3677045295

@ -114,23 +114,23 @@ AtlantikConfig ConfigDialog::config()
ConfigPlayer::ConfigPlayer(ConfigDialog* configDialog, TQWidget *parent, const char *name) : TQWidget(parent, name) ConfigPlayer::ConfigPlayer(ConfigDialog* configDialog, TQWidget *parent, const char *name) : TQWidget(parent, name)
{ {
m_configDialog = configDialog; m_configDialog = configDialog;
TQVBoxLayout *tqlayout = new TQVBoxLayout(parent, KDialog::marginHint(), KDialog::spacingHint()); TQVBoxLayout *layout = new TQVBoxLayout(parent, KDialog::marginHint(), KDialog::spacingHint());
TQLabel *label = new TQLabel(i18n("Player name:"), parent); TQLabel *label = new TQLabel(i18n("Player name:"), parent);
tqlayout->addWidget(label); layout->addWidget(label);
m_playerName = new TQLineEdit(parent); m_playerName = new TQLineEdit(parent);
tqlayout->addWidget(m_playerName); layout->addWidget(m_playerName);
TQLabel *label2 = new TQLabel(i18n("Player image:"), parent); TQLabel *label2 = new TQLabel(i18n("Player image:"), parent);
tqlayout->addWidget(label2); layout->addWidget(label2);
m_playerIcon = new KPushButton(parent, "playerIcon"); m_playerIcon = new KPushButton(parent, "playerIcon");
tqlayout->addWidget(m_playerIcon); layout->addWidget(m_playerIcon);
connect( m_playerIcon, TQT_SIGNAL(clicked()), this, TQT_SLOT(chooseImage()) ); connect( m_playerIcon, TQT_SIGNAL(clicked()), this, TQT_SLOT(chooseImage()) );
tqlayout->addStretch(1); layout->addStretch(1);
reset(); reset();
} }
@ -185,10 +185,10 @@ void ConfigPlayer::reset()
ConfigMonopigator::ConfigMonopigator(ConfigDialog *configDialog, TQWidget *parent, const char *name) : TQWidget(parent, name) ConfigMonopigator::ConfigMonopigator(ConfigDialog *configDialog, TQWidget *parent, const char *name) : TQWidget(parent, name)
{ {
m_configDialog = configDialog; m_configDialog = configDialog;
TQVBoxLayout *tqlayout = new TQVBoxLayout(parent, KDialog::marginHint(), KDialog::spacingHint()); TQVBoxLayout *layout = new TQVBoxLayout(parent, KDialog::marginHint(), KDialog::spacingHint());
m_connectOnStart = new TQCheckBox(i18n("Request list of Internet servers on start-up"), parent); m_connectOnStart = new TQCheckBox(i18n("Request list of Internet servers on start-up"), parent);
tqlayout->addWidget(m_connectOnStart); layout->addWidget(m_connectOnStart);
TQString message=i18n( TQString message=i18n(
"If checked, Atlantik connects to a meta server on start-up to\n" "If checked, Atlantik connects to a meta server on start-up to\n"
@ -196,7 +196,7 @@ ConfigMonopigator::ConfigMonopigator(ConfigDialog *configDialog, TQWidget *paren
TQWhatsThis::add(m_connectOnStart, message); TQWhatsThis::add(m_connectOnStart, message);
m_hideDevelopmentServers = new TQCheckBox(i18n("Hide development servers"), parent); m_hideDevelopmentServers = new TQCheckBox(i18n("Hide development servers"), parent);
tqlayout->addWidget(m_hideDevelopmentServers); layout->addWidget(m_hideDevelopmentServers);
message=i18n( message=i18n(
"Some of the Internet servers might be running development\n" "Some of the Internet servers might be running development\n"
@ -204,7 +204,7 @@ ConfigMonopigator::ConfigMonopigator(ConfigDialog *configDialog, TQWidget *paren
"display these servers.\n"); "display these servers.\n");
TQWhatsThis::add(m_hideDevelopmentServers, message); TQWhatsThis::add(m_hideDevelopmentServers, message);
tqlayout->addStretch(1); layout->addStretch(1);
reset(); reset();
} }
@ -228,17 +228,17 @@ void ConfigMonopigator::reset()
ConfigGeneral::ConfigGeneral(ConfigDialog *configDialog, TQWidget *parent, const char *name) : TQWidget(parent, name) ConfigGeneral::ConfigGeneral(ConfigDialog *configDialog, TQWidget *parent, const char *name) : TQWidget(parent, name)
{ {
m_configDialog = configDialog; m_configDialog = configDialog;
TQVBoxLayout *tqlayout = new TQVBoxLayout(parent, KDialog::marginHint(), KDialog::spacingHint()); TQVBoxLayout *layout = new TQVBoxLayout(parent, KDialog::marginHint(), KDialog::spacingHint());
m_chatTimestamps = new TQCheckBox(i18n("Show timestamps in chat messages"), parent); m_chatTimestamps = new TQCheckBox(i18n("Show timestamps in chat messages"), parent);
tqlayout->addWidget(m_chatTimestamps); layout->addWidget(m_chatTimestamps);
TQString message=i18n( TQString message=i18n(
"If checked, Atlantik will add timestamps in front of chat\n" "If checked, Atlantik will add timestamps in front of chat\n"
"messages.\n"); "messages.\n");
TQWhatsThis::add(m_chatTimestamps, message); TQWhatsThis::add(m_chatTimestamps, message);
tqlayout->addStretch(1); layout->addStretch(1);
reset(); reset();
} }
@ -256,10 +256,10 @@ void ConfigGeneral::reset()
ConfigBoard::ConfigBoard(ConfigDialog *configDialog, TQWidget *parent, const char *name) : TQWidget(parent, name) ConfigBoard::ConfigBoard(ConfigDialog *configDialog, TQWidget *parent, const char *name) : TQWidget(parent, name)
{ {
m_configDialog = configDialog; m_configDialog = configDialog;
TQVBoxLayout *tqlayout = new TQVBoxLayout(parent, KDialog::marginHint(), KDialog::spacingHint()); TQVBoxLayout *layout = new TQVBoxLayout(parent, KDialog::marginHint(), KDialog::spacingHint());
TQGroupBox *box = new TQGroupBox(1, Qt::Horizontal, i18n("Game Status Feedback"), parent); TQGroupBox *box = new TQGroupBox(1, Qt::Horizontal, i18n("Game Status Feedback"), parent);
tqlayout->addWidget(box); layout->addWidget(box);
m_indicateUnowned = new TQCheckBox(i18n("Display title deed card on unowned properties"), box); m_indicateUnowned = new TQCheckBox(i18n("Display title deed card on unowned properties"), box);
TQString message=i18n( TQString message=i18n(
@ -292,9 +292,9 @@ ConfigBoard::ConfigBoard(ConfigDialog *configDialog, TQWidget *parent, const cha
TQWhatsThis::add(m_quartzEffects, message); TQWhatsThis::add(m_quartzEffects, message);
// box = new TQGroupBox(1, Qt::Horizontal, i18n("Size"), parent); // box = new TQGroupBox(1, Qt::Horizontal, i18n("Size"), parent);
// tqlayout->addWidget(box); // layout->addWidget(box);
tqlayout->addStretch(1); layout->addStretch(1);
reset(); reset();
} }

@ -151,7 +151,7 @@ KAstTopLevel::KAstTopLevel()
vb->addWidget( view, 10 ); vb->addWidget( view, 10 );
// -- bottom tqlayout: // -- bottom layout:
TQFrame *sep2 = new TQFrame( mainWin ); TQFrame *sep2 = new TQFrame( mainWin );
sep2->setMaximumHeight( 1 ); sep2->setMaximumHeight( 1 );
sep2->setFrameStyle( TQFrame::HLine | TQFrame::Raised ); sep2->setFrameStyle( TQFrame::HLine | TQFrame::Raised );

@ -469,7 +469,7 @@ void KFibsPlayerList::getSetupPages(KTabCtl *nb, int space)
gl = new TQGridLayout(gbl, LVEnd, 2, 20); gl = new TQGridLayout(gbl, LVEnd, 2, 20);
gl->addWidget(lb, 0, 0); gl->addWidget(lb, 0, 0);
// two column tqlayout.... // two column layout....
for (i = 1; i < LVEnd/2; i++) { for (i = 1; i < LVEnd/2; i++) {
gl->addWidget(d->mCol[2*i-1]->cb, i, 0); gl->addWidget(d->mCol[2*i-1]->cb, i, 0);
gl->addWidget(d->mCol[2*i ]->cb, i, 1); gl->addWidget(d->mCol[2*i ]->cb, i, 1);

@ -733,7 +733,7 @@ void AbTop::newGame()
/* Copy ASCII representation into Clipboard */ /* Copy ASCII representation into Clipboard */
void AbTop::copy() void AbTop::copy()
{ {
TQClipboard *cb = TQApplication::tqclipboard(); TQClipboard *cb = TQApplication::clipboard();
cb->setText( board->getASCIIState( moveNo ).ascii() ); cb->setText( board->getASCIIState( moveNo ).ascii() );
} }
@ -741,7 +741,7 @@ void AbTop::paste()
{ {
if (!pastePossible) return; if (!pastePossible) return;
TQClipboard *cb = TQApplication::tqclipboard(); TQClipboard *cb = TQApplication::clipboard();
pastePosition( cb->text().ascii() ); pastePosition( cb->text().ascii() );
/* don't do this in pastePosition: RECURSION !! */ /* don't do this in pastePosition: RECURSION !! */

@ -453,13 +453,13 @@ void KCubeBoxWidget::initCubes()
int i,j; int i,j;
// create Layout // create Layout
tqlayout=new TQGridLayout(this,s,s); layout=new TQGridLayout(this,s,s);
for(i=0;i<s;i++) for(i=0;i<s;i++)
{ {
tqlayout->setRowStretch(i,1); layout->setRowStretch(i,1);
tqlayout->setColStretch(i,1); layout->setColStretch(i,1);
} }
@ -474,7 +474,7 @@ void KCubeBoxWidget::initCubes()
{ {
cubes[i][j]=new KCubeWidget(this); cubes[i][j]=new KCubeWidget(this);
cubes[i][j]->setCoordinates(i,j); cubes[i][j]->setCoordinates(i,j);
tqlayout->addWidget(cubes[i][j],i,j); layout->addWidget(cubes[i][j],i,j);
cubes[i][j]->show(); cubes[i][j]->show();
connect(cubes[i][j],TQT_SIGNAL(clicked(int,int,bool)),TQT_SLOT(stopHint())); connect(cubes[i][j],TQT_SIGNAL(clicked(int,int,bool)),TQT_SLOT(stopHint()));
connect(cubes[i][j],TQT_SIGNAL(clicked(int,int,bool)),TQT_SLOT(checkClick(int,int,bool))); connect(cubes[i][j],TQT_SIGNAL(clicked(int,int,bool)),TQT_SLOT(checkClick(int,int,bool)));
@ -511,8 +511,8 @@ TQSize KCubeBoxWidget::sizeHint() const
void KCubeBoxWidget::deleteCubes() void KCubeBoxWidget::deleteCubes()
{ {
if(tqlayout) if(layout)
delete tqlayout; delete layout;
CubeBoxBase<KCubeWidget>::deleteCubes(); CubeBoxBase<KCubeWidget>::deleteCubes();
} }

@ -147,7 +147,7 @@ protected slots:
private: private:
void init(); void init();
TQGridLayout *tqlayout; TQGridLayout *layout;
CubeBox *undoBox; CubeBox *undoBox;
Brain brain; Brain brain;

@ -10,7 +10,7 @@
; ;
; The general form of the options is "Variable=value". Everything ; The general form of the options is "Variable=value". Everything
; between the equals sign and the end of the line is considered part ; between the equals sign and the end of the line is considered part
; of the value. The spacing and tqlayout is free-form but only one option ; of the value. The spacing and layout is free-form but only one option
; per line is allowed. Variables and values are not case-sensitive. ; per line is allowed. Variables and values are not case-sensitive.
; ;
; Note: characters after a semi-colon are treated as a comment ; Note: characters after a semi-colon are treated as a comment

@ -4,7 +4,7 @@
#include <tqstring.h> #include <tqstring.h>
#include "KmTypes.h" #include "KmTypes.h"
const TQString layoutMagic1_0 = "kmahjongg-tqlayout-v1.0"; const TQString layoutMagic1_0 = "kmahjongg-layout-v1.0";
class BoardLayout { class BoardLayout {

@ -35,7 +35,7 @@
// When we assign a tile to draw in a slot we do it in order from te following // When we assign a tile to draw in a slot we do it in order from te following
// table, wrapping on the tile number. It makes the tile tqlayout look more // table, wrapping on the tile number. It makes the tile layout look more
// random. // random.
@ -69,10 +69,10 @@ Editor::Editor
// setup the tool bar // setup the tool bar
setupToolbar(); setupToolbar();
TQVBoxLayout *tqlayout = new TQVBoxLayout(this, 1); TQVBoxLayout *layout = new TQVBoxLayout(this, 1);
tqlayout->addWidget(topToolbar,0); layout->addWidget(topToolbar,0);
tqlayout->addWidget(drawFrame,1); layout->addWidget(drawFrame,1);
tqlayout->activate(); layout->activate();
resize( sWidth+60, sHeight+60); resize( sWidth+60, sHeight+60);
setMinimumSize( sWidth+60, sHeight+60); setMinimumSize( sWidth+60, sHeight+60);
@ -272,7 +272,7 @@ void Editor::loadBoard() {
KURL url = KFileDialog::getOpenURL( KURL url = KFileDialog::getOpenURL(
NULL, NULL,
i18n("*.tqlayout|Board Layout (*.tqlayout)\n" i18n("*.layout|Board Layout (*.layout)\n"
"*|All Files"), "*|All Files"),
this, this,
i18n("Open Board Layout" )); i18n("Open Board Layout" ));
@ -309,7 +309,7 @@ bool Editor::saveBoard() {
// get a save file name // get a save file name
KURL url = KFileDialog::getSaveURL( KURL url = KFileDialog::getSaveURL(
NULL, NULL,
i18n("*.tqlayout|Board Layout (*.tqlayout)\n" i18n("*.layout|Board Layout (*.layout)\n"
"*|All Files"), "*|All Files"),
this, this,
i18n("Save Board Layout" )); i18n("Save Board Layout" ));
@ -373,7 +373,7 @@ bool Editor::testSave()
// The main paint event, draw in the grid and blit in // The main paint event, draw in the grid and blit in
// the tiles as specified by the tqlayout. // the tiles as specified by the layout.
void Editor::paintEvent( TQPaintEvent* ) { void Editor::paintEvent( TQPaintEvent* ) {

@ -399,8 +399,8 @@ void HighScore::copyTableToScreen(const TQString &name) {
repaint(false); repaint(false);
} }
int HighScore::exec(TQString &tqlayout) { int HighScore::exec(TQString &layout) {
copyTableToScreen(tqlayout); copyTableToScreen(layout);
return(TQDialog::exec()); return(TQDialog::exec());
} }

@ -41,7 +41,7 @@ public:
virtual ~HighScore(); virtual ~HighScore();
int exec(TQString &tqlayout); int exec(TQString &layout);
void checkHighScore(int score, int elapsed, long game, TQString &board); void checkHighScore(int score, int elapsed, long game, TQString &board);

@ -76,7 +76,7 @@ void Preview::initialise(const PreviewType type)
TQString extension; TQString extension;
TQString tile = Prefs::tileSet(); TQString tile = Prefs::tileSet();
TQString back = Prefs::background(); TQString back = Prefs::background();
TQString tqlayout = Prefs::layout(); TQString layout = Prefs::layout();
// set up the concept of the current file. Initialised to the preferences // set up the concept of the current file. Initialised to the preferences
// value initially. Set the caption to indicate what we are doing // value initially. Set the caption to indicate what we are doing
@ -98,10 +98,10 @@ void Preview::initialise(const PreviewType type)
break; break;
case board: case board:
m_fileSelector = i18n("*.tqlayout|Board Layout File (*.tqlayout)\n"); m_fileSelector = i18n("*.layout|Board Layout File (*.layout)\n");
setCaption(i18n("Change Board Layout")); setCaption(i18n("Change Board Layout"));
m_selectedFile = tqlayout; m_selectedFile = layout;
extension = "*.tqlayout"; extension = "*.layout";
break; break;
case theme: case theme:
@ -167,7 +167,7 @@ void Preview::load() {
} }
} }
// Top level preview drawing method. Background, tileset and tqlayout // Top level preview drawing method. Background, tileset and layout
// are initialised from the preferences. Depending on the type // are initialised from the preferences. Depending on the type
// of preview dialog we pick up the selected file for one of these // of preview dialog we pick up the selected file for one of these
// chaps. // chaps.
@ -176,7 +176,7 @@ void Preview::drawPreview()
{ {
TQString tile = Prefs::tileSet(); TQString tile = Prefs::tileSet();
TQString back = Prefs::background(); TQString back = Prefs::background();
TQString tqlayout = Prefs::layout(); TQString layout = Prefs::layout();
switch (m_previewType) switch (m_previewType)
{ {
@ -189,12 +189,12 @@ void Preview::drawPreview()
break; break;
case board: case board:
tqlayout = m_selectedFile; layout = m_selectedFile;
break; break;
case theme: case theme:
// a theme is quite a bit of work. We load the // a theme is quite a bit of work. We load the
// specified bits in (tqlayout, background and tileset // specified bits in (layout, background and tileset
if (!m_selectedFile.isEmpty()) if (!m_selectedFile.isEmpty())
{ {
TQString backRaw, layoutRaw, tilesetRaw, magic; TQString backRaw, layoutRaw, tilesetRaw, magic;
@ -233,17 +233,17 @@ void Preview::drawPreview()
back = locate("appdata", back); back = locate("appdata", back);
} }
tqlayout = layoutRaw; layout = layoutRaw;
tqlayout.replace(":", "/kmahjongg/pics/"); layout.replace(":", "/kmahjongg/pics/");
if (!TQFile::exists(tqlayout)) if (!TQFile::exists(layout))
{ {
tqlayout = layoutRaw; layout = layoutRaw;
tqlayout = "pics/" + tqlayout.right(tqlayout.length() - tqlayout.find(":") - 1); layout = "pics/" + layout.right(layout.length() - layout.find(":") - 1);
tqlayout = locate("appdata", tqlayout); layout = locate("appdata", layout);
} }
m_themeBack=back; m_themeBack=back;
m_themeLayout=tqlayout; m_themeLayout=layout;
m_themeTileset=tile; m_themeTileset=tile;
} }
} }
@ -251,7 +251,7 @@ void Preview::drawPreview()
} }
renderBackground(back); renderBackground(back);
renderTiles(tile, tqlayout); renderTiles(tile, layout);
} }
void Preview::paintEvent( TQPaintEvent* ){ void Preview::paintEvent( TQPaintEvent* ){
@ -260,7 +260,7 @@ void Preview::paintEvent( TQPaintEvent* ){
// the user selected ok, or apply. This method passes the changes // the user selected ok, or apply. This method passes the changes
// across to the game widget and if necessary forces a board redraw // across to the game widget and if necessary forces a board redraw
// (unnecessary on tqlayout changes since it only effects the next game) // (unnecessary on layout changes since it only effects the next game)
void Preview::applyChange() void Preview::applyChange()
{ {
switch (m_previewType) switch (m_previewType)
@ -287,7 +287,7 @@ void Preview::applyChange()
break; break;
} }
// don't redraw for a tqlayout change // don't redraw for a layout change
if (m_previewType == board || m_previewType == theme) layoutChange(); if (m_previewType == board || m_previewType == theme) layoutChange();
else boardRedraw(true); else boardRedraw(true);
@ -310,9 +310,9 @@ void Preview::renderBackground(const TQString &bg) {
// This method draws a mini-tiled board with no tiles missing. // This method draws a mini-tiled board with no tiles missing.
void Preview::renderTiles(const TQString &file, const TQString &tqlayout) { void Preview::renderTiles(const TQString &file, const TQString &layout) {
m_tiles.loadTileset(file, true); m_tiles.loadTileset(file, true);
m_boardLayout.loadBoardLayout(tqlayout); m_boardLayout.loadBoardLayout(layout);
TQPixmap *dest = m_drawFrame->getPreviewPixmap(); TQPixmap *dest = m_drawFrame->getPreviewPixmap();
int xOffset = m_tiles.width()/2; int xOffset = m_tiles.width()/2;
@ -366,7 +366,7 @@ void Preview::renderTiles(const TQString &file, const TQString &tqlayout) {
void Preview::saveTheme() { void Preview::saveTheme() {
TQString tile = Prefs::tileSet(); TQString tile = Prefs::tileSet();
TQString back = Prefs::background(); TQString back = Prefs::background();
TQString tqlayout = Prefs::layout(); TQString layout = Prefs::layout();
TQString with = ":"; TQString with = ":";
// we want to replace any path in the default store // we want to replace any path in the default store
@ -375,7 +375,7 @@ void Preview::saveTheme() {
back.replace(p,with); back.replace(p,with);
tile.replace(p,with); tile.replace(p,with);
tqlayout.replace(p,with); layout.replace(p,with);
// Get the name of the file to save // Get the name of the file to save
@ -417,7 +417,7 @@ void Preview::saveTheme() {
themeMagicV1_0, themeMagicV1_0,
tile.utf8().data(), tile.utf8().data(),
back.utf8().data(), back.utf8().data(),
tqlayout.utf8().data()); layout.utf8().data());
fclose(outFile); fclose(outFile);
} }

@ -63,7 +63,7 @@ protected:
virtual void drawPreview(); virtual void drawPreview();
void applyChange() ; void applyChange() ;
void renderBackground(const TQString &bg); void renderBackground(const TQString &bg);
void renderTiles(const TQString &file, const TQString &tqlayout); void renderTiles(const TQString &file, const TQString &layout);
void paintEvent( TQPaintEvent* pa ); void paintEvent( TQPaintEvent* pa );
signals: signals:

@ -60,11 +60,11 @@ BoardWidget::BoardWidget( TQWidget* parent, const char *name )
kapp->quit(); kapp->quit();
} }
getFileOrDefault(Prefs::layout(), "tqlayout", tFile); getFileOrDefault(Prefs::layout(), "layout", tFile);
if( ! loadBoardLayout(tFile) ) if( ! loadBoardLayout(tFile) )
{ {
KMessageBox::error(this, KMessageBox::error(this,
i18n("An error occurred when loading the board tqlayout %1\n" i18n("An error occurred when loading the board layout %1\n"
"KMahjongg will now terminate.").arg(tFile)); "KMahjongg will now terminate.").arg(tFile));
kapp->quit(); kapp->quit();
} }
@ -92,7 +92,7 @@ void BoardWidget::saveSettings(){
//config->writePathEntry("Tileset_file", tileFile); //config->writePathEntry("Tileset_file", tileFile);
//config->writePathEntry("Background_file", backgroundFile); //config->writePathEntry("Background_file", backgroundFile);
//config->writePathEntry("Layout_file", tqlayout); //config->writePathEntry("Layout_file", layout);
} }
void BoardWidget::getFileOrDefault(TQString filename, TQString type, TQString &res) void BoardWidget::getFileOrDefault(TQString filename, TQString type, TQString &res)
@ -766,7 +766,7 @@ void BoardWidget::calculateNewGame( int gNumber)
} }
// --------------------------------------------------------- // ---------------------------------------------------------
// Generate the position data for the tqlayout from contents of Game.Map. // Generate the position data for the layout from contents of Game.Map.
void BoardWidget::generateTilePositions() { void BoardWidget::generateTilePositions() {
numTiles = 0; numTiles = 0;
@ -788,7 +788,7 @@ void BoardWidget::generateTilePositions() {
} }
// --------------------------------------------------------- // ---------------------------------------------------------
// Generate the dependency data for the tqlayout from the position data. // Generate the dependency data for the layout from the position data.
// Note that the coordinates of each tile in tilePositions are those of // Note that the coordinates of each tile in tilePositions are those of
// the upper left quarter of the tile. // the upper left quarter of the tile.
void BoardWidget::generatePositionDepends() { void BoardWidget::generatePositionDepends() {
@ -1393,7 +1393,7 @@ bool BoardWidget::findMove( POSITION& posA, POSITION& posB )
iPosCount = 0; // Hier Anzahl der gefunden Paare merken iPosCount = 0; // Hier Anzahl der gefunden Paare merken
// The new tile tqlayout with non-contiguos horizantle spans // The new tile layout with non-contiguos horizantle spans
// can lead to huge numbers of matching pairs being exposed. // can lead to huge numbers of matching pairs being exposed.
// we alter the loop to bail out when BoardLayout::maxTiles/2 pairs are found // we alter the loop to bail out when BoardLayout::maxTiles/2 pairs are found
// (or less); // (or less);

@ -151,7 +151,7 @@ void KMahjongg::setupKAction()
pauseAction = KStdGameAction::pause(TQT_TQOBJECT(this), TQT_SLOT(pause()), actionCollection()); pauseAction = KStdGameAction::pause(TQT_TQOBJECT(this), TQT_SLOT(pause()), actionCollection());
// TODO: store the background ; open on startup // TODO: store the background ; open on startup
// TODO: same about tqlayout // TODO: same about layout
// TODO: same about theme // TODO: same about theme
// move // move

@ -1,4 +1,4 @@
kmahjongg-tqlayout-v1.0 kmahjongg-layout-v1.0
12....12121212121212121212....12 12....12121212121212121212....12
4312..43434343434343434343..1243 4312..43434343434343434343..1243
124312........1212........124312 124312........1212........124312

@ -1,4 +1,4 @@
kmahjongg-tqlayout-v1.0 kmahjongg-layout-v1.0
# Level 0 ------------------------- # Level 0 -------------------------
...121212121212121212121212..... ...121212121212121212121212.....
...434343434343434343434343..... ...434343434343434343434343.....

@ -1,4 +1,4 @@
kmahjongg-theme-v1.0 kmahjongg-theme-v1.0
:default.tileset :default.tileset
:default.bgnd :default.bgnd
:default.tqlayout :default.layout

@ -1,4 +1,4 @@
kmahjongg-tqlayout-v1.0 kmahjongg-layout-v1.0
.............121212.......12..12 .............121212.......12..12
.............434343.......43..43 .............434343.......43..43
.............12.............12.. .............12.............12..

@ -1,5 +1,5 @@
kmahjongg-theme-v1.0 kmahjongg-theme-v1.0
:pirates.tileset :pirates.tileset
:pirates.bgnd :pirates.bgnd
:pirates.tqlayout :pirates.layout

@ -1,4 +1,4 @@
kmahjongg-tqlayout-v1.0 kmahjongg-layout-v1.0
# Level 0 ------------------------- # Level 0 -------------------------
....121212121212121212121212.... ....121212121212121212121212....
....434343434343434343434343.... ....434343434343434343434343....

@ -1,4 +1,4 @@
kmahjongg-tqlayout-v1.0 kmahjongg-layout-v1.0
................................ ................................
12121212..121212121212..12121212 12121212..121212121212..12121212
43434343..434343434343..43434343 43434343..434343434343..43434343

@ -1,4 +1,4 @@
kmahjongg-tqlayout-v1.0 kmahjongg-layout-v1.0
.1212121212121212121212121212... .1212121212121212121212121212...
.4343434343434343434343434343... .4343434343434343434343434343...
.1212121212121212121212121212... .1212121212121212121212121212...

@ -1,4 +1,4 @@
kmahjongg-tqlayout-v1.0 kmahjongg-layout-v1.0
................................ ................................
................................ ................................
.121212121212121212............. .121212121212121212.............

@ -1,4 +1,4 @@
kmahjongg-tqlayout-v1.0 kmahjongg-layout-v1.0
# Level 0 ------------------------- # Level 0 -------------------------
....121212121212121212121212.... ....121212121212121212121212....
....434343434343434343434343.... ....434343434343434343434343....

@ -1,4 +1,4 @@
kmahjongg-tqlayout-v1.0 kmahjongg-layout-v1.0
# Level 0 ------------------------- # Level 0 -------------------------
.121212121212121212121212121212. .121212121212121212121212121212.
.434343434343434343434343434343. .434343434343434343434343434343.

@ -128,8 +128,8 @@ void FieldFrame::drawBox(TQPainter &painter, const TQPoint &p,
&colorGroup().brush(TQColorGroup::Background)); &colorGroup().brush(TQColorGroup::Background));
if (hasFocus) { if (hasFocus) {
painter.translate(p.x(), p.y()); painter.translate(p.x(), p.y());
TQRect fbr = tqstyle().subRect(TQStyle::SR_PushButtonFocusRect, &_button); TQRect fbr = style().subRect(TQStyle::SR_PushButtonFocusRect, &_button);
tqstyle().tqdrawPrimitive(TQStyle::PE_FocusRect, &painter, fbr, style().tqdrawPrimitive(TQStyle::PE_FocusRect, &painter, fbr,
colorGroup(), TQStyle::Style_Enabled); colorGroup(), TQStyle::Style_Enabled);
painter.resetXForm(); painter.resetXForm();
} }
@ -137,9 +137,9 @@ void FieldFrame::drawBox(TQPainter &painter, const TQPoint &p,
TQRect r(p, _button.size()); TQRect r(p, _button.size());
const TQPixmap *pixmap = (type==NoPixmap ? 0 : &_pixmaps[type]); const TQPixmap *pixmap = (type==NoPixmap ? 0 : &_pixmaps[type]);
TQColor color = (nbMines==0 ? black : Settings::mineColor(nbMines-1)); TQColor color = (nbMines==0 ? black : Settings::mineColor(nbMines-1));
tqstyle().drawItem(&painter, r, AlignCenter, colorGroup(), true, pixmap, style().drawItem(&painter, r, AlignCenter, colorGroup(), true, pixmap,
text, -1, &color); text, -1, &color);
if ( advised!=-1 ) if ( advised!=-1 )
tqstyle().drawItem(&painter, r, AlignCenter, colorGroup(), true, style().drawItem(&painter, r, AlignCenter, colorGroup(), true,
&_advised[advised], TQString()); &_advised[advised], TQString());
} }

@ -54,7 +54,7 @@ Status::Status(TQWidget *parent)
_solver = new Solver(TQT_TQOBJECT(this)); _solver = new Solver(TQT_TQOBJECT(this));
connect(_solver, TQT_SIGNAL(solvingDone(bool)), TQT_SLOT(solvingDone(bool))); connect(_solver, TQT_SIGNAL(solvingDone(bool)), TQT_SLOT(solvingDone(bool)));
// top tqlayout // top layout
TQGridLayout *top = new TQGridLayout(this, 2, 5, 10, 10); TQGridLayout *top = new TQGridLayout(this, 2, 5, 10, 10);
top->setColStretch(1, 1); top->setColStretch(1, 1);
top->setColStretch(3, 1); top->setColStretch(3, 1);

@ -36,8 +36,8 @@ void Config::changed()
MessageConfig::MessageConfig(TQString text, TQWidget *parent, const char *name) MessageConfig::MessageConfig(TQString text, TQWidget *parent, const char *name)
: Config(parent, name) : Config(parent, name)
{ {
TQVBoxLayout *tqlayout = new TQVBoxLayout(this, marginHint(), spacingHint()); TQVBoxLayout *layout = new TQVBoxLayout(this, marginHint(), spacingHint());
tqlayout->addWidget(new TQLabel(text, this)); layout->addWidget(new TQLabel(text, this));
} }
DefaultConfig::DefaultConfig(TQWidget *parent, const char *name) DefaultConfig::DefaultConfig(TQWidget *parent, const char *name)

@ -15,13 +15,13 @@ Editor::Editor(ObjectList *list, TQWidget *parent, const char *name)
this->list = list; this->list = list;
config = 0; config = 0;
htqlayout = new TQHBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint()); hlayout = new TQHBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
TQVBoxLayout *vtqlayout = new TQVBoxLayout(htqlayout, KDialog::spacingHint()); TQVBoxLayout *vlayout = new TQVBoxLayout(hlayout, KDialog::spacingHint());
vtqlayout->addWidget(new TQLabel(i18n("Add object:"), this)); vlayout->addWidget(new TQLabel(i18n("Add object:"), this));
listbox = new KListBox(this, "Listbox"); listbox = new KListBox(this, "Listbox");
vtqlayout->addWidget(listbox); vlayout->addWidget(listbox);
htqlayout->setStretchFactor(vtqlayout, 2); hlayout->setStretchFactor(vlayout, 2);
TQStringList items; TQStringList items;
Object *obj = 0; Object *obj = 0;
@ -49,8 +49,8 @@ void Editor::setItem(CanvasItem *item)
if (!config) if (!config)
return; return;
config->ctorDone(); config->ctorDone();
htqlayout->addWidget(config); hlayout->addWidget(config);
htqlayout->setStretchFactor(config, 2); hlayout->setStretchFactor(config, 2);
config->setFrameStyle(TQFrame::Box | TQFrame::Raised); config->setFrameStyle(TQFrame::Box | TQFrame::Raised);
config->setLineWidth(1); config->setLineWidth(1);
config->show(); config->show();

@ -30,7 +30,7 @@ private slots:
private: private:
ObjectList *list; ObjectList *list;
TQHBoxLayout *htqlayout; TQHBoxLayout *hlayout;
KListBox *listbox; KListBox *listbox;
Config *config; Config *config;
}; };

@ -257,14 +257,14 @@ FloaterConfig::FloaterConfig(Floater *floater, TQWidget *parent)
: BridgeConfig(floater, parent) : BridgeConfig(floater, parent)
{ {
this->floater = floater; this->floater = floater;
m_vtqlayout->addStretch(); m_vlayout->addStretch();
m_vtqlayout->addWidget(new TQLabel(i18n("Moving speed"), this)); m_vlayout->addWidget(new TQLabel(i18n("Moving speed"), this));
TQHBoxLayout *htqlayout = new TQHBoxLayout(m_vtqlayout, spacingHint()); TQHBoxLayout *hlayout = new TQHBoxLayout(m_vlayout, spacingHint());
htqlayout->addWidget(new TQLabel(i18n("Slow"), this)); hlayout->addWidget(new TQLabel(i18n("Slow"), this));
TQSlider *slider = new TQSlider(0, 20, 2, floater->curSpeed(), Qt::Horizontal, this); TQSlider *slider = new TQSlider(0, 20, 2, floater->curSpeed(), Qt::Horizontal, this);
htqlayout->addWidget(slider); hlayout->addWidget(slider);
htqlayout->addWidget(new TQLabel(i18n("Fast"), this)); hlayout->addWidget(new TQLabel(i18n("Fast"), this));
connect(slider, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(speedChanged(int))); connect(slider, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(speedChanged(int)));
} }

@ -197,23 +197,23 @@ BridgeConfig::BridgeConfig(Bridge *bridge, TQWidget *parent)
{ {
this->bridge = bridge; this->bridge = bridge;
m_vtqlayout = new TQVBoxLayout(this, marginHint(), spacingHint()); m_vlayout = new TQVBoxLayout(this, marginHint(), spacingHint());
TQGridLayout *tqlayout = new TQGridLayout(m_vtqlayout, 2, 3, spacingHint()); TQGridLayout *layout = new TQGridLayout(m_vlayout, 2, 3, spacingHint());
tqlayout->addWidget(new TQLabel(i18n("Walls on:"), this), 0, 0); layout->addWidget(new TQLabel(i18n("Walls on:"), this), 0, 0);
top = new TQCheckBox(i18n("&Top"), this); top = new TQCheckBox(i18n("&Top"), this);
tqlayout->addWidget(top, 0, 1); layout->addWidget(top, 0, 1);
connect(top, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(topWallChanged(bool))); connect(top, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(topWallChanged(bool)));
top->setChecked(bridge->topWallVisible()); top->setChecked(bridge->topWallVisible());
bot = new TQCheckBox(i18n("&Bottom"), this); bot = new TQCheckBox(i18n("&Bottom"), this);
tqlayout->addWidget(bot, 1, 1); layout->addWidget(bot, 1, 1);
connect(bot, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(botWallChanged(bool))); connect(bot, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(botWallChanged(bool)));
bot->setChecked(bridge->botWallVisible()); bot->setChecked(bridge->botWallVisible());
left = new TQCheckBox(i18n("&Left"), this); left = new TQCheckBox(i18n("&Left"), this);
tqlayout->addWidget(left, 1, 0); layout->addWidget(left, 1, 0);
connect(left, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(leftWallChanged(bool))); connect(left, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(leftWallChanged(bool)));
left->setChecked(bridge->leftWallVisible()); left->setChecked(bridge->leftWallVisible());
right = new TQCheckBox(i18n("&Right"), this); right = new TQCheckBox(i18n("&Right"), this);
tqlayout->addWidget(right, 1, 2); layout->addWidget(right, 1, 2);
connect(right, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(rightWallChanged(bool))); connect(right, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(rightWallChanged(bool)));
right->setChecked(bridge->rightWallVisible()); right->setChecked(bridge->rightWallVisible());
} }
@ -405,18 +405,18 @@ WindmillConfig::WindmillConfig(Windmill *windmill, TQWidget *parent)
: BridgeConfig(windmill, parent) : BridgeConfig(windmill, parent)
{ {
this->windmill = windmill; this->windmill = windmill;
m_vtqlayout->addStretch(); m_vlayout->addStretch();
TQCheckBox *check = new TQCheckBox(i18n("Windmill on bottom"), this); TQCheckBox *check = new TQCheckBox(i18n("Windmill on bottom"), this);
check->setChecked(windmill->bottom()); check->setChecked(windmill->bottom());
connect(check, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(endChanged(bool))); connect(check, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(endChanged(bool)));
m_vtqlayout->addWidget(check); m_vlayout->addWidget(check);
TQHBoxLayout *htqlayout = new TQHBoxLayout(m_vtqlayout, spacingHint()); TQHBoxLayout *hlayout = new TQHBoxLayout(m_vlayout, spacingHint());
htqlayout->addWidget(new TQLabel(i18n("Slow"), this)); hlayout->addWidget(new TQLabel(i18n("Slow"), this));
TQSlider *slider = new TQSlider(1, 10, 1, windmill->curSpeed(), Qt::Horizontal, this); TQSlider *slider = new TQSlider(1, 10, 1, windmill->curSpeed(), Qt::Horizontal, this);
htqlayout->addWidget(slider); hlayout->addWidget(slider);
htqlayout->addWidget(new TQLabel(i18n("Fast"), this)); hlayout->addWidget(new TQLabel(i18n("Fast"), this));
connect(slider, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(speedChanged(int))); connect(slider, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(speedChanged(int)));
endChanged(check->isChecked()); endChanged(check->isChecked());
@ -643,10 +643,10 @@ SignConfig::SignConfig(Sign *sign, TQWidget *parent)
: BridgeConfig(sign, parent) : BridgeConfig(sign, parent)
{ {
this->sign = sign; this->sign = sign;
m_vtqlayout->addStretch(); m_vlayout->addStretch();
m_vtqlayout->addWidget(new TQLabel(i18n("Sign HTML:"), this)); m_vlayout->addWidget(new TQLabel(i18n("Sign HTML:"), this));
KLineEdit *name = new KLineEdit(sign->text(), this); KLineEdit *name = new KLineEdit(sign->text(), this);
m_vtqlayout->addWidget(name); m_vlayout->addWidget(name);
connect(name, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(textChanged(const TQString &))); connect(name, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(textChanged(const TQString &)));
} }
@ -663,20 +663,20 @@ EllipseConfig::EllipseConfig(Ellipse *ellipse, TQWidget *parent)
{ {
this->ellipse = ellipse; this->ellipse = ellipse;
m_vtqlayout = new TQVBoxLayout(this, marginHint(), spacingHint()); m_vlayout = new TQVBoxLayout(this, marginHint(), spacingHint());
TQCheckBox *check = new TQCheckBox(i18n("Enable show/hide"), this); TQCheckBox *check = new TQCheckBox(i18n("Enable show/hide"), this);
m_vtqlayout->addWidget(check); m_vlayout->addWidget(check);
connect(check, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(check1Changed(bool))); connect(check, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(check1Changed(bool)));
check->setChecked(ellipse->changeEnabled()); check->setChecked(ellipse->changeEnabled());
TQHBoxLayout *htqlayout = new TQHBoxLayout(m_vtqlayout, spacingHint()); TQHBoxLayout *hlayout = new TQHBoxLayout(m_vlayout, spacingHint());
slow1 = new TQLabel(i18n("Slow"), this); slow1 = new TQLabel(i18n("Slow"), this);
htqlayout->addWidget(slow1); hlayout->addWidget(slow1);
slider1 = new TQSlider(1, 100, 5, 100 - ellipse->changeEvery(), Qt::Horizontal, this); slider1 = new TQSlider(1, 100, 5, 100 - ellipse->changeEvery(), Qt::Horizontal, this);
htqlayout->addWidget(slider1); hlayout->addWidget(slider1);
fast1 = new TQLabel(i18n("Fast"), this); fast1 = new TQLabel(i18n("Fast"), this);
htqlayout->addWidget(fast1); hlayout->addWidget(fast1);
connect(slider1, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(value1Changed(int))); connect(slider1, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(value1Changed(int)));
@ -684,7 +684,7 @@ EllipseConfig::EllipseConfig(Ellipse *ellipse, TQWidget *parent)
// TODO add slider2 and friends and make it possible for ellipses to grow and contract // TODO add slider2 and friends and make it possible for ellipses to grow and contract
m_vtqlayout->addStretch(); m_vlayout->addStretch();
} }
void EllipseConfig::value1Changed(int news) void EllipseConfig::value1Changed(int news)
@ -1503,30 +1503,30 @@ BlackHoleConfig::BlackHoleConfig(BlackHole *blackHole, TQWidget *parent)
: Config(parent) : Config(parent)
{ {
this->blackHole = blackHole; this->blackHole = blackHole;
TQVBoxLayout *tqlayout = new TQVBoxLayout(this, marginHint(), spacingHint()); TQVBoxLayout *layout = new TQVBoxLayout(this, marginHint(), spacingHint());
tqlayout->addWidget(new TQLabel(i18n("Exiting ball angle:"), this)); layout->addWidget(new TQLabel(i18n("Exiting ball angle:"), this));
TQSpinBox *deg = new TQSpinBox(0, 359, 10, this); TQSpinBox *deg = new TQSpinBox(0, 359, 10, this);
deg->setSuffix(TQString(" ") + i18n("degrees")); deg->setSuffix(TQString(" ") + i18n("degrees"));
deg->setValue(blackHole->curExitDeg()); deg->setValue(blackHole->curExitDeg());
deg->setWrapping(true); deg->setWrapping(true);
tqlayout->addWidget(deg); layout->addWidget(deg);
connect(deg, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(degChanged(int))); connect(deg, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(degChanged(int)));
tqlayout->addStretch(); layout->addStretch();
TQHBoxLayout *htqlayout = new TQHBoxLayout(tqlayout, spacingHint()); TQHBoxLayout *hlayout = new TQHBoxLayout(layout, spacingHint());
htqlayout->addWidget(new TQLabel(i18n("Minimum exit speed:"), this)); hlayout->addWidget(new TQLabel(i18n("Minimum exit speed:"), this));
KDoubleNumInput *min = new KDoubleNumInput(this); KDoubleNumInput *min = new KDoubleNumInput(this);
min->setRange(0, 8, 1, true); min->setRange(0, 8, 1, true);
htqlayout->addWidget(min); hlayout->addWidget(min);
connect(min, TQT_SIGNAL(valueChanged(double)), this, TQT_SLOT(minChanged(double))); connect(min, TQT_SIGNAL(valueChanged(double)), this, TQT_SLOT(minChanged(double)));
min->setValue(blackHole->minSpeed()); min->setValue(blackHole->minSpeed());
htqlayout = new TQHBoxLayout(tqlayout, spacingHint()); hlayout = new TQHBoxLayout(layout, spacingHint());
htqlayout->addWidget(new TQLabel(i18n("Maximum:"), this)); hlayout->addWidget(new TQLabel(i18n("Maximum:"), this));
KDoubleNumInput *max = new KDoubleNumInput(this); KDoubleNumInput *max = new KDoubleNumInput(this);
max->setRange(1, 10, 1, true); max->setRange(1, 10, 1, true);
htqlayout->addWidget(max); hlayout->addWidget(max);
connect(max, TQT_SIGNAL(valueChanged(double)), this, TQT_SLOT(maxChanged(double))); connect(max, TQT_SIGNAL(valueChanged(double)), this, TQT_SLOT(maxChanged(double)));
max->setValue(blackHole->maxSpeed()); max->setValue(blackHole->maxSpeed());
} }
@ -1959,42 +1959,42 @@ HoleConfig::HoleConfig(HoleInfo *holeInfo, TQWidget *parent)
{ {
this->holeInfo = holeInfo; this->holeInfo = holeInfo;
TQVBoxLayout *tqlayout = new TQVBoxLayout(this, marginHint(), spacingHint()); TQVBoxLayout *layout = new TQVBoxLayout(this, marginHint(), spacingHint());
TQHBoxLayout *htqlayout = new TQHBoxLayout(tqlayout, spacingHint()); TQHBoxLayout *hlayout = new TQHBoxLayout(layout, spacingHint());
htqlayout->addWidget(new TQLabel(i18n("Course name: "), this)); hlayout->addWidget(new TQLabel(i18n("Course name: "), this));
KLineEdit *nameEdit = new KLineEdit(holeInfo->untranslatedName(), this); KLineEdit *nameEdit = new KLineEdit(holeInfo->untranslatedName(), this);
htqlayout->addWidget(nameEdit); hlayout->addWidget(nameEdit);
connect(nameEdit, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(nameChanged(const TQString &))); connect(nameEdit, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(nameChanged(const TQString &)));
htqlayout = new TQHBoxLayout(tqlayout, spacingHint()); hlayout = new TQHBoxLayout(layout, spacingHint());
htqlayout->addWidget(new TQLabel(i18n("Course author: "), this)); hlayout->addWidget(new TQLabel(i18n("Course author: "), this));
KLineEdit *authorEdit = new KLineEdit(holeInfo->author(), this); KLineEdit *authorEdit = new KLineEdit(holeInfo->author(), this);
htqlayout->addWidget(authorEdit); hlayout->addWidget(authorEdit);
connect(authorEdit, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(authorChanged(const TQString &))); connect(authorEdit, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(authorChanged(const TQString &)));
tqlayout->addStretch(); layout->addStretch();
htqlayout = new TQHBoxLayout(tqlayout, spacingHint()); hlayout = new TQHBoxLayout(layout, spacingHint());
htqlayout->addWidget(new TQLabel(i18n("Par:"), this)); hlayout->addWidget(new TQLabel(i18n("Par:"), this));
TQSpinBox *par = new TQSpinBox(1, 15, 1, this); TQSpinBox *par = new TQSpinBox(1, 15, 1, this);
par->setValue(holeInfo->par()); par->setValue(holeInfo->par());
htqlayout->addWidget(par); hlayout->addWidget(par);
connect(par, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(parChanged(int))); connect(par, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(parChanged(int)));
htqlayout->addStretch(); hlayout->addStretch();
htqlayout->addWidget(new TQLabel(i18n("Maximum:"), this)); hlayout->addWidget(new TQLabel(i18n("Maximum:"), this));
TQSpinBox *maxstrokes = new TQSpinBox(holeInfo->lowestMaxStrokes(), 30, 1, this); TQSpinBox *maxstrokes = new TQSpinBox(holeInfo->lowestMaxStrokes(), 30, 1, this);
TQWhatsThis::add(maxstrokes, i18n("Maximum number of strokes player can take on this hole.")); TQWhatsThis::add(maxstrokes, i18n("Maximum number of strokes player can take on this hole."));
TQToolTip::add(maxstrokes, i18n("Maximum number of strokes")); TQToolTip::add(maxstrokes, i18n("Maximum number of strokes"));
maxstrokes->setSpecialValueText(i18n("Unlimited")); maxstrokes->setSpecialValueText(i18n("Unlimited"));
maxstrokes->setValue(holeInfo->maxStrokes()); maxstrokes->setValue(holeInfo->maxStrokes());
htqlayout->addWidget(maxstrokes); hlayout->addWidget(maxstrokes);
connect(maxstrokes, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(maxStrokesChanged(int))); connect(maxstrokes, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(maxStrokesChanged(int)));
TQCheckBox *check = new TQCheckBox(i18n("Show border walls"), this); TQCheckBox *check = new TQCheckBox(i18n("Show border walls"), this);
check->setChecked(holeInfo->borderWalls()); check->setChecked(holeInfo->borderWalls());
tqlayout->addWidget(check); layout->addWidget(check);
connect(check, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(borderWallsChanged(bool))); connect(check, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(borderWallsChanged(bool)));
} }

@ -207,7 +207,7 @@ private slots:
void check2Changed(bool on); void check2Changed(bool on);
protected: protected:
TQVBoxLayout *m_vtqlayout; TQVBoxLayout *m_vlayout;
private: private:
TQLabel *slow1; TQLabel *slow1;
@ -557,7 +557,7 @@ protected slots:
void rightWallChanged(bool); void rightWallChanged(bool);
protected: protected:
TQVBoxLayout *m_vtqlayout; TQVBoxLayout *m_vlayout;
TQCheckBox *top; TQCheckBox *top;
TQCheckBox *bot; TQCheckBox *bot;
TQCheckBox *left; TQCheckBox *left;

@ -65,7 +65,7 @@ Kolf::Kolf()
filename = TQString(); filename = TQString();
dummy = new TQWidget(this); dummy = new TQWidget(this);
setCentralWidget(dummy); setCentralWidget(dummy);
tqlayout = new TQGridLayout(dummy, 3, 1); layout = new TQGridLayout(dummy, 3, 1);
resize(420, 480); resize(420, 480);
} }
@ -176,7 +176,7 @@ void Kolf::startNewGame()
players.clear(); players.clear();
delete scoreboard; delete scoreboard;
scoreboard = new ScoreBoard(dummy, "Score Board"); scoreboard = new ScoreBoard(dummy, "Score Board");
tqlayout->addWidget(scoreboard, 1, 0); layout->addWidget(scoreboard, 1, 0);
scoreboard->show(); scoreboard->show();
if (loadedGame.isNull()) if (loadedGame.isNull())
@ -264,7 +264,7 @@ void Kolf::startNewGame()
game->setShowGuideLine(showGuideLineAction->isChecked()); game->setShowGuideLine(showGuideLineAction->isChecked());
game->setSound(soundAction->isChecked()); game->setSound(soundAction->isChecked());
tqlayout->addWidget(game, 0, 0, AlignCenter); layout->addWidget(game, 0, 0, AlignCenter);
game->show(); game->show();
game->setFocus(); game->setFocus();
@ -372,7 +372,7 @@ void Kolf::createSpacer()
spacer = new KolfGame(obj, &spacerPlayers, KGlobal::dirs()->findResource("appdata", "intro"), dummy); spacer = new KolfGame(obj, &spacerPlayers, KGlobal::dirs()->findResource("appdata", "intro"), dummy);
spacer->setSound(false); spacer->setSound(false);
spacer->startFirstHole(1); spacer->startFirstHole(1);
tqlayout->addWidget(spacer, 0, 0, AlignCenter); layout->addWidget(spacer, 0, 0, AlignCenter);
spacer->hidePutter(); spacer->hidePutter();
spacer->ignoreEvents(true); spacer->ignoreEvents(true);
@ -601,7 +601,7 @@ void Kolf::editingStarted()
scoreboard->hide(); scoreboard->hide();
tqlayout->addWidget(editor, 1, 0); layout->addWidget(editor, 1, 0);
editor->show(); editor->show();
clearHoleAction->setEnabled(true); clearHoleAction->setEnabled(true);

@ -88,7 +88,7 @@ private:
TQString filename; TQString filename;
PlayerList players; PlayerList players;
PlayerList spacerPlayers; PlayerList spacerPlayers;
TQGridLayout *tqlayout; TQGridLayout *layout;
ScoreBoard *scoreboard; ScoreBoard *scoreboard;
KToggleAction *editingAction; KToggleAction *editingAction;
KAction *newHoleAction; KAction *newHoleAction;

@ -56,14 +56,14 @@ NewGameDialog::NewGameDialog(bool enableCourses, TQWidget *parent, const char *_
scroller = new TQScrollView(playerPage); scroller = new TQScrollView(playerPage);
bigLayout->addWidget(scroller); bigLayout->addWidget(scroller);
tqlayout = new TQVBox(scroller->viewport()); layout = new TQVBox(scroller->viewport());
if (!TQPixmapCache::find("grass", grass)) if (!TQPixmapCache::find("grass", grass))
{ {
grass.load(locate("appdata", "pics/grass.png")); grass.load(locate("appdata", "pics/grass.png"));
TQPixmapCache::insert("grass", grass); TQPixmapCache::insert("grass", grass);
} }
scroller->viewport()->setBackgroundPixmap(grass); scroller->viewport()->setBackgroundPixmap(grass);
scroller->addChild(tqlayout); scroller->addChild(layout);
TQMap<TQString, TQString> entries = config->entryMap("New Game Dialog"); TQMap<TQString, TQString> entries = config->entryMap("New Game Dialog");
unsigned int i = 0; unsigned int i = 0;
@ -95,7 +95,7 @@ NewGameDialog::NewGameDialog(bool enableCourses, TQWidget *parent, const char *_
connect(coursesLink, TQT_SIGNAL(leftClickedURL(const TQString &)), kapp, TQT_SLOT(invokeBrowser(const TQString &))); connect(coursesLink, TQT_SIGNAL(leftClickedURL(const TQString &)), kapp, TQT_SLOT(invokeBrowser(const TQString &)));
coursePageLayout->addWidget(coursesLink); coursePageLayout->addWidget(coursesLink);
TQHBoxLayout *htqlayout = new TQHBoxLayout(coursePageLayout, spacingHint()); TQHBoxLayout *hlayout = new TQHBoxLayout(coursePageLayout, spacingHint());
// following use this group // following use this group
config->setGroup("New Game Dialog Mode"); config->setGroup("New Game Dialog Mode");
@ -128,13 +128,13 @@ NewGameDialog::NewGameDialog(bool enableCourses, TQWidget *parent, const char *_
nameList.append(newName); nameList.append(newName);
courseList = new KListBox(coursePage); courseList = new KListBox(coursePage);
htqlayout->addWidget(courseList); hlayout->addWidget(courseList);
courseList->insertStringList(nameList); courseList->insertStringList(nameList);
courseList->setCurrentItem(curItem); courseList->setCurrentItem(curItem);
connect(courseList, TQT_SIGNAL(highlighted(int)), this, TQT_SLOT(courseSelected(int))); connect(courseList, TQT_SIGNAL(highlighted(int)), this, TQT_SLOT(courseSelected(int)));
connect(courseList, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(selectionChanged())); connect(courseList, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(selectionChanged()));
TQVBoxLayout *detailLayout = new TQVBoxLayout(htqlayout, spacingHint()); TQVBoxLayout *detailLayout = new TQVBoxLayout(hlayout, spacingHint());
name = new TQLabel(coursePage); name = new TQLabel(coursePage);
detailLayout->addWidget(name); detailLayout->addWidget(name);
author = new TQLabel(coursePage); author = new TQLabel(coursePage);
@ -170,15 +170,15 @@ NewGameDialog::NewGameDialog(bool enableCourses, TQWidget *parent, const char *_
// options page // options page
optionsPage = addPage(i18n("Options"), i18n("Game Options")); optionsPage = addPage(i18n("Options"), i18n("Game Options"));
TQVBoxLayout *vtqlayout = new TQVBoxLayout(optionsPage, marginHint(), spacingHint()); TQVBoxLayout *vlayout = new TQVBoxLayout(optionsPage, marginHint(), spacingHint());
mode = new TQCheckBox(i18n("&Strict mode"), optionsPage); mode = new TQCheckBox(i18n("&Strict mode"), optionsPage);
vtqlayout->addWidget(mode); vlayout->addWidget(mode);
mode->setChecked(config->readBoolEntry("competition", false)); mode->setChecked(config->readBoolEntry("competition", false));
TQLabel *desc = new TQLabel(i18n("In strict mode, undo, editing, and switching holes is not allowed. This is generally for competition. Only in strict mode are highscores kept."), optionsPage); TQLabel *desc = new TQLabel(i18n("In strict mode, undo, editing, and switching holes is not allowed. This is generally for competition. Only in strict mode are highscores kept."), optionsPage);
desc->setTextFormat(RichText); desc->setTextFormat(RichText);
vtqlayout->addWidget(desc); vlayout->addWidget(desc);
} }
void NewGameDialog::slotOk() void NewGameDialog::slotOk()
@ -287,7 +287,7 @@ void NewGameDialog::addPlayer()
if (editors.count() >= startColors.count()) if (editors.count() >= startColors.count())
return; return;
editors.append(new PlayerEditor(i18n("Player %1").arg(editors.count() + 1), *startColors.at(editors.count()), tqlayout)); editors.append(new PlayerEditor(i18n("Player %1").arg(editors.count() + 1), *startColors.at(editors.count()), layout));
editors.last()->show(); editors.last()->show();
connect(editors.last(), TQT_SIGNAL(deleteEditor(PlayerEditor *)), this, TQT_SLOT(deleteEditor(PlayerEditor *))); connect(editors.last(), TQT_SIGNAL(deleteEditor(PlayerEditor *)), this, TQT_SLOT(deleteEditor(PlayerEditor *)));
@ -314,7 +314,7 @@ void NewGameDialog::enableButtons()
PlayerEditor::PlayerEditor(TQString startName, TQColor startColor, TQWidget *parent, const char *_name) PlayerEditor::PlayerEditor(TQString startName, TQColor startColor, TQWidget *parent, const char *_name)
: TQWidget(parent, _name) : TQWidget(parent, _name)
{ {
TQHBoxLayout *tqlayout = new TQHBoxLayout(this, KDialogBase::spacingHint()); TQHBoxLayout *layout = new TQHBoxLayout(this, KDialogBase::spacingHint());
if (!TQPixmapCache::find("grass", grass)) if (!TQPixmapCache::find("grass", grass))
{ {
@ -324,17 +324,17 @@ PlayerEditor::PlayerEditor(TQString startName, TQColor startColor, TQWidget *par
setBackgroundPixmap(grass); setBackgroundPixmap(grass);
editor = new KLineEdit(this); editor = new KLineEdit(this);
tqlayout->addWidget(editor); layout->addWidget(editor);
editor->setFrame(false); editor->setFrame(false);
editor->setText(startName); editor->setText(startName);
tqlayout->addStretch(); layout->addStretch();
tqlayout->addWidget(colorButton = new KColorButton(startColor, this)); layout->addWidget(colorButton = new KColorButton(startColor, this));
colorButton->setAutoMask(true); colorButton->setAutoMask(true);
colorButton->setBackgroundPixmap(grass); colorButton->setBackgroundPixmap(grass);
KPushButton *remove = new KPushButton(i18n("Remove"), this); KPushButton *remove = new KPushButton(i18n("Remove"), this);
remove->setAutoMask(true); remove->setAutoMask(true);
tqlayout->addWidget(remove); layout->addWidget(remove);
remove->setBackgroundPixmap(grass); remove->setBackgroundPixmap(grass);
connect(remove, TQT_SIGNAL(clicked()), this, TQT_SLOT(removeMe())); connect(remove, TQT_SIGNAL(clicked()), this, TQT_SLOT(removeMe()));
} }

@ -74,7 +74,7 @@ private slots:
void showHighscores(); void showHighscores();
private: private:
TQVBox *tqlayout; TQVBox *layout;
KPushButton *addButton; KPushButton *addButton;
TQFrame *playerPage; TQFrame *playerPage;
TQScrollView *scroller; TQScrollView *scroller;

@ -57,17 +57,17 @@ void PoolBall::draw(TQPainter &p)
PoolBallConfig::PoolBallConfig(PoolBall *poolBall, TQWidget *parent) PoolBallConfig::PoolBallConfig(PoolBall *poolBall, TQWidget *parent)
: Config(parent), m_poolBall(poolBall) : Config(parent), m_poolBall(poolBall)
{ {
TQVBoxLayout *tqlayout = new TQVBoxLayout(this, marginHint(), spacingHint()); TQVBoxLayout *layout = new TQVBoxLayout(this, marginHint(), spacingHint());
tqlayout->addStretch(); layout->addStretch();
TQLabel *num = new TQLabel(i18n("Number:"), this); TQLabel *num = new TQLabel(i18n("Number:"), this);
tqlayout->addWidget(num); layout->addWidget(num);
KIntNumInput *slider = new KIntNumInput(m_poolBall->number(), this); KIntNumInput *slider = new KIntNumInput(m_poolBall->number(), this);
slider->setRange(1, 15); slider->setRange(1, 15);
tqlayout->addWidget(slider); layout->addWidget(slider);
tqlayout->addStretch(); layout->addStretch();
connect(slider, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(numberChanged(int))); connect(slider, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(numberChanged(int)));
} }

@ -68,21 +68,21 @@ void Test::load(KConfig *cfg)
TestConfig::TestConfig(Test *test, TQWidget *parent) TestConfig::TestConfig(Test *test, TQWidget *parent)
: Config(parent), m_test(test) : Config(parent), m_test(test)
{ {
TQVBoxLayout *tqlayout = new TQVBoxLayout(this, marginHint(), spacingHint()); TQVBoxLayout *layout = new TQVBoxLayout(this, marginHint(), spacingHint());
tqlayout->addStretch(); layout->addStretch();
tqlayout->addWidget(new TQLabel(i18n("Flash speed"), this)); layout->addWidget(new TQLabel(i18n("Flash speed"), this));
TQHBoxLayout *htqlayout = new TQHBoxLayout(tqlayout, spacingHint()); TQHBoxLayout *hlayout = new TQHBoxLayout(layout, spacingHint());
TQLabel *slow = new TQLabel(i18n("Slow"), this); TQLabel *slow = new TQLabel(i18n("Slow"), this);
htqlayout->addWidget(slow); hlayout->addWidget(slow);
TQSlider *slider = new TQSlider(1, 100, 5, 101 - m_test->switchEvery(), Qt::Horizontal, this); TQSlider *slider = new TQSlider(1, 100, 5, 101 - m_test->switchEvery(), Qt::Horizontal, this);
htqlayout->addWidget(slider); hlayout->addWidget(slider);
TQLabel *fast = new TQLabel(i18n("Fast"), this); TQLabel *fast = new TQLabel(i18n("Fast"), this);
htqlayout->addWidget(fast); hlayout->addWidget(fast);
tqlayout->addStretch(); layout->addStretch();
connect(slider, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(switchEveryChanged(int))); connect(slider, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(switchEveryChanged(int)));
} }

@ -13,11 +13,11 @@ PrintDialogPage::PrintDialogPage(TQWidget *parent, const char *name)
{ {
setTitle(i18n("Kolf Options")); setTitle(i18n("Kolf Options"));
TQVBoxLayout *tqlayout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint()); TQVBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
titleCheck = new TQCheckBox(i18n("Draw title text"), this); titleCheck = new TQCheckBox(i18n("Draw title text"), this);
titleCheck->setChecked(true); titleCheck->setChecked(true);
tqlayout->addWidget(titleCheck); layout->addWidget(titleCheck);
} }
void PrintDialogPage::getOptions(TQMap<TQString, TQString> &opts, bool /*incldef*/) void PrintDialogPage::getOptions(TQMap<TQString, TQString> &opts, bool /*incldef*/)

@ -521,7 +521,7 @@ SlopeConfig::SlopeConfig(Slope *slope, TQWidget *parent)
: Config(parent) : Config(parent)
{ {
this->slope = slope; this->slope = slope;
TQVBoxLayout *tqlayout = new TQVBoxLayout(this, marginHint(), spacingHint()); TQVBoxLayout *layout = new TQVBoxLayout(this, marginHint(), spacingHint());
KComboBox *gradient = new KComboBox(this); KComboBox *gradient = new KComboBox(this);
TQStringList items; TQStringList items;
TQString curText; TQString curText;
@ -533,28 +533,28 @@ SlopeConfig::SlopeConfig(Slope *slope, TQWidget *parent)
} }
gradient->insertStringList(items); gradient->insertStringList(items);
gradient->setCurrentText(curText); gradient->setCurrentText(curText);
tqlayout->addWidget(gradient); layout->addWidget(gradient);
connect(gradient, TQT_SIGNAL(activated(const TQString &)), this, TQT_SLOT(setGradient(const TQString &))); connect(gradient, TQT_SIGNAL(activated(const TQString &)), this, TQT_SLOT(setGradient(const TQString &)));
tqlayout->addStretch(); layout->addStretch();
TQCheckBox *reversed = new TQCheckBox(i18n("Reverse direction"), this); TQCheckBox *reversed = new TQCheckBox(i18n("Reverse direction"), this);
reversed->setChecked(slope->isReversed()); reversed->setChecked(slope->isReversed());
tqlayout->addWidget(reversed); layout->addWidget(reversed);
connect(reversed, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(setReversed(bool))); connect(reversed, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(setReversed(bool)));
TQHBoxLayout *htqlayout = new TQHBoxLayout(tqlayout, spacingHint()); TQHBoxLayout *hlayout = new TQHBoxLayout(layout, spacingHint());
htqlayout->addWidget(new TQLabel(i18n("Grade:"), this)); hlayout->addWidget(new TQLabel(i18n("Grade:"), this));
KDoubleNumInput *grade = new KDoubleNumInput(this); KDoubleNumInput *grade = new KDoubleNumInput(this);
grade->setRange(0, 8, 1, true); grade->setRange(0, 8, 1, true);
grade->setValue(slope->curGrade()); grade->setValue(slope->curGrade());
htqlayout->addWidget(grade); hlayout->addWidget(grade);
connect(grade, TQT_SIGNAL(valueChanged(double)), this, TQT_SLOT(gradeChanged(double))); connect(grade, TQT_SIGNAL(valueChanged(double)), this, TQT_SLOT(gradeChanged(double)));
TQCheckBox *stuck = new TQCheckBox(i18n("Unmovable"), this); TQCheckBox *stuck = new TQCheckBox(i18n("Unmovable"), this);
TQWhatsThis::add(stuck, i18n("Whether or not this slope can be moved by other objects, like floaters.")); TQWhatsThis::add(stuck, i18n("Whether or not this slope can be moved by other objects, like floaters."));
stuck->setChecked(slope->isStuckOnGround()); stuck->setChecked(slope->isStuckOnGround());
tqlayout->addWidget(stuck); layout->addWidget(stuck);
connect(stuck, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(setStuckOnGround(bool))); connect(stuck, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(setStuckOnGround(bool)));
} }

@ -52,15 +52,15 @@ FleetDlg::FleetDlg( TQWidget *parent, AttackFleetList *fleets )
okButton->setMinimumSize( okButton->sizeHint() ); okButton->setMinimumSize( okButton->sizeHint() );
okButton->setDefault(true); okButton->setDefault(true);
TQVBoxLayout *tqlayout1 = new TQVBoxLayout( this ); TQVBoxLayout *layout1 = new TQVBoxLayout( this );
TQHBoxLayout *tqlayout2 = new TQHBoxLayout; TQHBoxLayout *layout2 = new TQHBoxLayout;
tqlayout1->addWidget( fleetTable, 1 ); layout1->addWidget( fleetTable, 1 );
tqlayout1->addLayout( tqlayout2 ); layout1->addLayout( layout2 );
tqlayout2->addStretch( 2 ); layout2->addStretch( 2 );
tqlayout2->addWidget( okButton ); layout2->addWidget( okButton );
tqlayout2->addStretch( 2 ); layout2->addStretch( 2 );
connect( okButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(accept()) ); connect( okButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(accept()) );

@ -88,33 +88,33 @@ GameBoard::GameBoard( TQWidget *parent )
//******************************************************************** //********************************************************************
// Layout the main window // Layout the main window
//******************************************************************** //********************************************************************
TQHBoxLayout *tqlayout1 = new TQHBoxLayout( this ); TQHBoxLayout *layout1 = new TQHBoxLayout( this );
TQVBoxLayout *tqlayout2 = new TQVBoxLayout; TQVBoxLayout *layout2 = new TQVBoxLayout;
TQHBoxLayout *tqlayout3 = new TQHBoxLayout; TQHBoxLayout *layout3 = new TQHBoxLayout;
TQVBoxLayout *tqlayout4 = new TQVBoxLayout; TQVBoxLayout *layout4 = new TQVBoxLayout;
tqlayout1->addLayout( tqlayout2 ); layout1->addLayout( layout2 );
tqlayout2->addLayout( tqlayout3 ); layout2->addLayout( layout3 );
tqlayout3->addSpacing( 5 ); layout3->addSpacing( 5 );
tqlayout3->addWidget( gameMessage, 10 ); layout3->addWidget( gameMessage, 10 );
tqlayout3->addWidget( shipCountEdit, 1 ); layout3->addWidget( shipCountEdit, 1 );
tqlayout3->addWidget( endTurn, 1 ); layout3->addWidget( endTurn, 1 );
tqlayout2->addSpacing( 5 ); layout2->addSpacing( 5 );
tqlayout2->addWidget( mapWidget, 0, AlignTop ); layout2->addWidget( mapWidget, 0, AlignTop );
tqlayout2->addWidget( msgWidget ); layout2->addWidget( msgWidget );
tqlayout2->addStretch( 1 ); layout2->addStretch( 1 );
tqlayout1->addSpacing( 5 ); layout1->addSpacing( 5 );
tqlayout1->addLayout( tqlayout4, 10 ); layout1->addLayout( layout4, 10 );
tqlayout4->addWidget( planetInfo, 1 ); layout4->addWidget( planetInfo, 1 );
tqlayout4->addSpacing( 10 ); layout4->addSpacing( 10 );
tqlayout4->addWidget( turnCounter, 1 ); layout4->addWidget( turnCounter, 1 );
tqlayout4->addStretch( 1 ); layout4->addStretch( 1 );
tqlayout1->addStretch( 1 ); layout1->addStretch( 1 );
//********************************************************************** //**********************************************************************
// Set up signal/slot connections // Set up signal/slot connections

@ -18,7 +18,7 @@
</property> </property>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout9</cstring> <cstring>layout9</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -26,7 +26,7 @@
</property> </property>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout4</cstring> <cstring>layout4</cstring>
</property> </property>
<vbox> <vbox>
<property name="name"> <property name="name">
@ -97,7 +97,7 @@
</widget> </widget>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout3</cstring> <cstring>layout3</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -131,7 +131,7 @@
</widget> </widget>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout2</cstring> <cstring>layout2</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -202,7 +202,7 @@
</spacer> </spacer>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout8</cstring> <cstring>layout8</cstring>
</property> </property>
<vbox> <vbox>
<property name="name"> <property name="name">
@ -246,7 +246,7 @@
</widget> </widget>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout7</cstring> <cstring>layout7</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -312,7 +312,7 @@
</spacer> </spacer>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout5</cstring> <cstring>layout5</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">

@ -27,14 +27,14 @@ PlanetInfo::PlanetInfo( TQWidget *parent, TQPalette palette )
clearDisplay(); clearDisplay();
TQVBoxLayout *tqlayout1 = new TQVBoxLayout( this ); TQVBoxLayout *layout1 = new TQVBoxLayout( this );
tqlayout1->addWidget( name ); layout1->addWidget( name );
tqlayout1->addWidget( owner ); layout1->addWidget( owner );
tqlayout1->addWidget( ships ); layout1->addWidget( ships );
tqlayout1->addWidget( production ); layout1->addWidget( production );
tqlayout1->addWidget( kill_percent ); layout1->addWidget( kill_percent );
tqlayout1->addStretch(1); layout1->addStretch(1);
setMouseTracking( true ); setMouseTracking( true );

@ -45,15 +45,15 @@ ScoreDlg::ScoreDlg( TQWidget *parent, const TQString& title, PlayerList *players
okButton->setMinimumSize( okButton->sizeHint() ); okButton->setMinimumSize( okButton->sizeHint() );
okButton->setDefault(true); okButton->setDefault(true);
TQVBoxLayout *tqlayout1 = new TQVBoxLayout( this ); TQVBoxLayout *layout1 = new TQVBoxLayout( this );
TQHBoxLayout *tqlayout2 = new TQHBoxLayout; TQHBoxLayout *layout2 = new TQHBoxLayout;
tqlayout1->addWidget( scoreTable, 1 ); layout1->addWidget( scoreTable, 1 );
tqlayout1->addLayout( tqlayout2 ); layout1->addLayout( layout2 );
tqlayout2->addStretch( 2 ); layout2->addStretch( 2 );
tqlayout2->addWidget( okButton ); layout2->addWidget( okButton );
tqlayout2->addStretch( 2 ); layout2->addStretch( 2 );
connect( okButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(accept()) ); connect( okButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(accept()) );

@ -24,7 +24,7 @@
</property> </property>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout3</cstring> <cstring>layout3</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -63,7 +63,7 @@
</widget> </widget>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout5</cstring> <cstring>layout5</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -71,7 +71,7 @@
</property> </property>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout2</cstring> <cstring>layout2</cstring>
</property> </property>
<grid> <grid>
<property name="name"> <property name="name">

@ -21,7 +21,7 @@
// ---------------------------------------------------------------- // ----------------------------------------------------------------
// Graphical tqlayout // Graphical layout
#define cardHeight 96 #define cardHeight 96

@ -173,7 +173,7 @@ void CardWidget::repaintDeck()
setPixmap(*m_pm); setPixmap(*m_pm);
setFixedSize(cardImages->getWidth(), cardImages->getHeight()); setFixedSize(cardImages->getWidth(), cardImages->getHeight());
((TQWidget*) parent())->tqlayout()->invalidate(); ((TQWidget*) parent())->layout()->invalidate();
((TQWidget*) parent())->setFixedSize( ((TQWidget*) parent())->sizeHint()); ((TQWidget*) parent())->setFixedSize( ((TQWidget*) parent())->sizeHint());
} }

@ -325,7 +325,7 @@ class kpok : public TQWidget
int drawDelay; int drawDelay;
// Graphical tqlayout. // Graphical layout.
TQVBoxLayout *topLayout; TQVBoxLayout *topLayout;
TQHBoxLayout *inputLayout; TQHBoxLayout *inputLayout;
TQLabel *potLabel; TQLabel *potLabel;

@ -156,30 +156,30 @@ QReversiGameView::~QReversiGameView()
void QReversiGameView::createView() void QReversiGameView::createView()
{ {
TQGridLayout *tqlayout = new TQGridLayout(this, 4, 2); TQGridLayout *layout = new TQGridLayout(this, 4, 2);
// The board // The board
m_boardView = new QReversiBoardView(this, m_game); m_boardView = new QReversiBoardView(this, m_game);
m_boardView->loadSettings(); // Load the pixmaps used in the status widgets. m_boardView->loadSettings(); // Load the pixmaps used in the status widgets.
tqlayout->addMultiCellWidget(m_boardView, 0, 3, 0, 0); layout->addMultiCellWidget(m_boardView, 0, 3, 0, 0);
// The status widgets // The status widgets
m_blackStatus = new StatusWidget(TQString(), this); m_blackStatus = new StatusWidget(TQString(), this);
m_blackStatus->setPixmap(m_boardView->chipPixmap(Black, 20)); m_blackStatus->setPixmap(m_boardView->chipPixmap(Black, 20));
tqlayout->addWidget(m_blackStatus, 0, 1); layout->addWidget(m_blackStatus, 0, 1);
m_whiteStatus = new StatusWidget(TQString(), this); m_whiteStatus = new StatusWidget(TQString(), this);
m_whiteStatus->setPixmap(m_boardView->chipPixmap(White, 20)); m_whiteStatus->setPixmap(m_boardView->chipPixmap(White, 20));
tqlayout->addWidget(m_whiteStatus, 1, 1); layout->addWidget(m_whiteStatus, 1, 1);
// The "Moves" label // The "Moves" label
TQLabel *movesLabel = new TQLabel( i18n("Moves"), this); TQLabel *movesLabel = new TQLabel( i18n("Moves"), this);
movesLabel->setAlignment(AlignCenter); movesLabel->setAlignment(AlignCenter);
tqlayout->addWidget(movesLabel, 2, 1); layout->addWidget(movesLabel, 2, 1);
// The list of moves. // The list of moves.
m_movesView = new TQListBox(this, "moves"); m_movesView = new TQListBox(this, "moves");
m_movesView->setMinimumWidth(150); m_movesView->setMinimumWidth(150);
tqlayout->addWidget(m_movesView, 3, 1); layout->addWidget(m_movesView, 3, 1);
} }

@ -375,7 +375,7 @@ TQString App::getPlayerName()
connect(b, TQT_SIGNAL(released()), dlg, TQT_SLOT(accept())); connect(b, TQT_SIGNAL(released()), dlg, TQT_SLOT(accept()));
connect(e, TQT_SIGNAL(returnPressed()), dlg, TQT_SLOT(accept())); connect(e, TQT_SIGNAL(returnPressed()), dlg, TQT_SLOT(accept()));
// create tqlayout // create layout
TQVBoxLayout *tl = new TQVBoxLayout(dlg, 10); TQVBoxLayout *tl = new TQVBoxLayout(dlg, 10);
TQHBoxLayout *tl1 = new TQHBoxLayout(); TQHBoxLayout *tl1 = new TQHBoxLayout();
tl->addWidget(l1); tl->addWidget(l1);
@ -608,7 +608,7 @@ void App::showHighscore(int focusitem)
l->setAlignment(AlignCenter); l->setAlignment(AlignCenter);
tl->addWidget(l); tl->addWidget(l);
// insert highscores in a gridtqlayout // insert highscores in a gridlayout
TQGridLayout *table = new TQGridLayout(12, 5, 5); TQGridLayout *table = new TQGridLayout(12, 5, 5);
tl->addLayout(table, 1); tl->addLayout(table, 1);
@ -727,7 +727,7 @@ void App::showHighscore(int focusitem)
b->setDefault(true); b->setDefault(true);
b->setFocus(); b->setFocus();
// make tqlayout // make layout
tl->addSpacing(10); tl->addSpacing(10);
tl->addWidget(b); tl->addWidget(b);
tl->activate(); tl->activate();

@ -40,16 +40,16 @@ StartRoom::StartRoom( TQWidget *parent, const char *name)
TQSpacerItem* spacer = new TQSpacerItem( 20, 61, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); TQSpacerItem* spacer = new TQSpacerItem( 20, 61, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
Form1Layout->addItem( spacer, 2, 1 ); Form1Layout->addItem( spacer, 2, 1 );
TQHBoxLayout *tqlayout1 = new TQHBoxLayout( 0, 0, 6, "tqlayout1"); TQHBoxLayout *layout1 = new TQHBoxLayout( 0, 0, 6, "layout1");
TQSpacerItem* spacer_2 = new TQSpacerItem( 91, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum ); TQSpacerItem* spacer_2 = new TQSpacerItem( 91, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
tqlayout1->addItem( spacer_2 ); layout1->addItem( spacer_2 );
picture = new TQLabel( this, "picture" ); picture = new TQLabel( this, "picture" );
tqlayout1->addWidget( picture ); layout1->addWidget( picture );
TQSpacerItem* spacer_3 = new TQSpacerItem( 41, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum ); TQSpacerItem* spacer_3 = new TQSpacerItem( 41, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
tqlayout1->addItem( spacer_3 ); layout1->addItem( spacer_3 );
Form1Layout->addMultiCellLayout( tqlayout1, 0, 0, 0, 1 ); Form1Layout->addMultiCellLayout( layout1, 0, 0, 0, 1 );
roomRange = new TQSpinBox( this, "kcfg_StartingRoom" ); roomRange = new TQSpinBox( this, "kcfg_StartingRoom" );
roomRange->setMaxValue( 25 ); roomRange->setMaxValue( 25 );

@ -130,7 +130,7 @@ ConfigSetup::ConfigSetup(SConfig *custom,TQWidget *parent,const char *name)
//box=new TQGroupBox(i18n("Config"),this); //box=new TQGroupBox(i18n("Config"),this);
//setMainWidget( box ); //setMainWidget( box );
TQVBoxLayout *boxtqlayout = new TQVBoxLayout( this, 6 ); TQVBoxLayout *boxlayout = new TQVBoxLayout( this, 6 );
tabs=new TQTabWidget(this); tabs=new TQTabWidget(this);
for(i=0;i<TabNum;i++) for(i=0;i<TabNum;i++)
@ -157,9 +157,9 @@ ConfigSetup::ConfigSetup(SConfig *custom,TQWidget *parent,const char *name)
configCombo->insertItem(i18n(predefinedConfigName[i])); configCombo->insertItem(i18n(predefinedConfigName[i]));
configCombo->insertItem(i18n("Custom")); configCombo->insertItem(i18n("Custom"));
boxtqlayout->addSpacing( 2 * 6 ); boxlayout->addSpacing( 2 * 6 );
boxtqlayout->addWidget(configCombo); boxlayout->addWidget(configCombo);
boxtqlayout->addWidget(tabs); boxlayout->addWidget(tabs);
for(i=0;i<EditNum;i++) for(i=0;i<EditNum;i++)
{ {

@ -25,11 +25,11 @@ void MyTopLevelWidget::initGameWidgets( ){
playerinfo[1]=new PlayerInfo(1,w); playerinfo[1]=new PlayerInfo(1,w);
playfield=new MyMainView(w); playfield=new MyMainView(w);
TQBoxLayout *toptqlayout=new TQHBoxLayout(w); TQBoxLayout *toplayout=new TQHBoxLayout(w);
toptqlayout->addWidget(playerinfo[0]); toplayout->addWidget(playerinfo[0]);
toptqlayout->addWidget(playfield); toplayout->addWidget(playfield);
toptqlayout->addWidget(playerinfo[1]); toplayout->addWidget(playerinfo[1]);
toptqlayout->activate(); toplayout->activate();
playfield->setFocusPolicy(TQ_StrongFocus); playfield->setFocusPolicy(TQ_StrongFocus);
playfield->setFocus(); playfield->setFocus();

@ -154,7 +154,7 @@
</widget> </widget>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout1</cstring> <cstring>layout1</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">

@ -1,6 +1,6 @@
/* ------------------------------------------------------------- /* -------------------------------------------------------------
KDE Tuberling KDE Tuberling
List of strings in tqlayout.xml that are translatable List of strings in layout.xml that are translatable
mailto:e.bischoff@noos.fr mailto:e.bischoff@noos.fr
------------------------------------------------------------- */ ------------------------------------------------------------- */

@ -5,7 +5,7 @@
Modify this file if you want to add new playgrounds, new sounds, Modify this file if you want to add new playgrounds, new sounds,
or modify existing ones. If you do that, don't forget to update: or modify existing ones. If you do that, don't forget to update:
- tqlayout.i18n (strings that might be translated) - layout.i18n (strings that might be translated)
- ktuberlingui.rc (actions associated with menu items). - ktuberlingui.rc (actions associated with menu items).
--> -->

@ -189,7 +189,7 @@ void TopLevel::changeLanguage(uint newLanguage)
// Load the layouts file // Load the layouts file
bool TopLevel::loadLayout(TQDomDocument &layoutDocument) bool TopLevel::loadLayout(TQDomDocument &layoutDocument)
{ {
TQFile layoutFile(TQFile::encodeName(locate("data", "ktuberling/pics/tqlayout.xml"))); TQFile layoutFile(TQFile::encodeName(locate("data", "ktuberling/pics/layout.xml")));
if (!layoutFile.open(IO_ReadOnly)) if (!layoutFile.open(IO_ReadOnly))
return false; return false;
@ -422,7 +422,7 @@ void TopLevel::filePrint()
// Copy modified area to clipboard // Copy modified area to clipboard
void TopLevel::editCopy() void TopLevel::editCopy()
{ {
TQClipboard *clipboard = TQApplication::tqclipboard(); TQClipboard *clipboard = TQApplication::clipboard();
TQPixmap picture(playGround->getPicture()); TQPixmap picture(playGround->getPicture());
clipboard->setPixmap(picture); clipboard->setPixmap(picture);

@ -23,7 +23,7 @@ NetMeeting::NetMeeting(const cId &_id, Socket *socket,
sm.append(socket, SocketManager::ReadWrite); sm.append(socket, SocketManager::ReadWrite);
sm[0]->notifier()->setEnabled(TRUE); sm[0]->notifier()->setEnabled(TRUE);
/* top tqlayout */ /* top layout */
TQVBoxLayout *top = new TQVBoxLayout(plainPage(), spacingHint()); TQVBoxLayout *top = new TQVBoxLayout(plainPage(), spacingHint());
top->setResizeMode(TQLayout::Fixed); top->setResizeMode(TQLayout::Fixed);

@ -28,7 +28,7 @@
* changed. In addition you'll need to implement the method @ref #saveData * changed. In addition you'll need to implement the method @ref #saveData
* to save the configuration in the config file ; so that it will be available * to save the configuration in the config file ; so that it will be available
* for the initialisation of @ref LocalBoard. * for the initialisation of @ref LocalBoard.
* It seems a good idea that the widget have the same tqlayout * It seems a good idea that the widget have the same layout
* on both (server and client) sides but with the inner widgets all disabled * on both (server and client) sides but with the inner widgets all disabled
* on the client side. * on the client side.
*/ */

@ -14,7 +14,7 @@ MeetingLine::MeetingLine(bool isOwner, bool serverIsReader, bool serverLine,
{ {
setFrameStyle(Panel | (serverLine ? Raised : Plain)); setFrameStyle(Panel | (serverLine ? Raised : Plain));
// Top tqlayout // Top layout
hbl = new TQHBoxLayout(this, THIN_BORDER + frameWidth()); hbl = new TQHBoxLayout(this, THIN_BORDER + frameWidth());
/* TriCheckBox */ /* TriCheckBox */
@ -89,7 +89,7 @@ PlayerLine::PlayerLine(PlayerComboBox::Type type, const TQString &txt,
{ {
setFrameStyle(Panel | Raised); setFrameStyle(Panel | Raised);
// Top tqlayout // Top layout
TQHBoxLayout *hbl; TQHBoxLayout *hbl;
hbl = new TQHBoxLayout(this, THIN_BORDER + frameWidth()); hbl = new TQHBoxLayout(this, THIN_BORDER + frameWidth());

@ -120,7 +120,7 @@ StatisticsTab::StatisticsTab(TQWidget *parent)
: AdditionalTab(parent, "statistics_tab") : AdditionalTab(parent, "statistics_tab")
{ {
// construct GUI // construct GUI
TQVBoxLayout *top = static_cast<TQVBoxLayout *>(tqlayout()); TQVBoxLayout *top = static_cast<TQVBoxLayout *>(layout());
TQHBoxLayout *hbox = new TQHBoxLayout(top); TQHBoxLayout *hbox = new TQHBoxLayout(top);
TQVBoxLayout *vbox = new TQVBoxLayout(hbox); TQVBoxLayout *vbox = new TQVBoxLayout(hbox);
@ -209,7 +209,7 @@ HistogramTab::HistogramTab(TQWidget *parent)
: AdditionalTab(parent, "histogram_tab") : AdditionalTab(parent, "histogram_tab")
{ {
// construct GUI // construct GUI
TQVBoxLayout *top = static_cast<TQVBoxLayout *>(tqlayout()); TQVBoxLayout *top = static_cast<TQVBoxLayout *>(layout());
_list = new KListView(this); _list = new KListView(this);
_list->setSelectionMode(TQListView::NoSelection); _list->setSelectionMode(TQListView::NoSelection);

@ -44,7 +44,7 @@ class KScoreDialog::KScoreDialogPrivate
public: public:
TQPtrList<FieldInfo> scores; TQPtrList<FieldInfo> scores;
TQWidget *page; TQWidget *page;
TQGridLayout *tqlayout; TQGridLayout *layout;
TQLineEdit *edit; TQLineEdit *edit;
TQPtrVector<TQWidgetStack> stack; TQPtrVector<TQWidgetStack> stack;
TQPtrVector<TQLabel> labels; TQPtrVector<TQLabel> labels;
@ -126,36 +126,36 @@ void KScoreDialog::setupDialog()
d->col[field] = d->nrCols++; d->col[field] = d->nrCols++;
} }
d->tqlayout = new TQGridLayout(d->page, 15, d->nrCols, marginHint() + 20, spacingHint()); d->layout = new TQGridLayout(d->page, 15, d->nrCols, marginHint() + 20, spacingHint());
d->tqlayout->addRowSpacing(4, 15); d->layout->addRowSpacing(4, 15);
d->commentLabel = new TQLabel(d->page); d->commentLabel = new TQLabel(d->page);
d->commentLabel->setAlignment(AlignVCenter | AlignHCenter); d->commentLabel->setAlignment(AlignVCenter | AlignHCenter);
d->tqlayout->addMultiCellWidget(d->commentLabel, 1, 1, 0, d->nrCols-1); d->layout->addMultiCellWidget(d->commentLabel, 1, 1, 0, d->nrCols-1);
TQFont bold = font(); TQFont bold = font();
bold.setBold(true); bold.setBold(true);
TQLabel *label; TQLabel *label;
d->tqlayout->addColSpacing(0, 50); d->layout->addColSpacing(0, 50);
label = new TQLabel(i18n("Rank"), d->page); label = new TQLabel(i18n("Rank"), d->page);
d->tqlayout->addWidget(label, 3, 0); d->layout->addWidget(label, 3, 0);
label->setFont(bold); label->setFont(bold);
for(int field = 1; field < d->fields; field = field * 2) for(int field = 1; field < d->fields; field = field * 2)
{ {
if (d->fields & field) if (d->fields & field)
{ {
d->tqlayout->addColSpacing(d->col[field], 50); d->layout->addColSpacing(d->col[field], 50);
label = new TQLabel(d->header[field], d->page); label = new TQLabel(d->header[field], d->page);
d->tqlayout->addWidget(label, 3, d->col[field], field <= Name ? AlignLeft : AlignRight); d->layout->addWidget(label, 3, d->col[field], field <= Name ? AlignLeft : AlignRight);
label->setFont(bold); label->setFont(bold);
} }
} }
KSeparator *sep = new KSeparator(Qt::Horizontal, d->page); KSeparator *sep = new KSeparator(Qt::Horizontal, d->page);
d->tqlayout->addMultiCellWidget(sep, 4, 4, 0, d->nrCols-1); d->layout->addMultiCellWidget(sep, 4, 4, 0, d->nrCols-1);
d->labels.resize(d->nrCols * 10); d->labels.resize(d->nrCols * 10);
d->stack.resize(10); d->stack.resize(10);
@ -166,12 +166,12 @@ void KScoreDialog::setupDialog()
num.setNum(i); num.setNum(i);
label = new TQLabel(i18n("#%1").arg(num), d->page); label = new TQLabel(i18n("#%1").arg(num), d->page);
d->labels.insert((i-1)*d->nrCols + 0, label); d->labels.insert((i-1)*d->nrCols + 0, label);
d->tqlayout->addWidget(label, i+4, 0); d->layout->addWidget(label, i+4, 0);
if (d->fields & Name) if (d->fields & Name)
{ {
TQWidgetStack *stack = new TQWidgetStack(d->page); TQWidgetStack *stack = new TQWidgetStack(d->page);
d->stack.insert(i-1, stack); d->stack.insert(i-1, stack);
d->tqlayout->addWidget(stack, i+4, d->col[Name]); d->layout->addWidget(stack, i+4, d->col[Name]);
label = new TQLabel(d->page); label = new TQLabel(d->page);
d->labels.insert((i-1)*d->nrCols + d->col[Name], label); d->labels.insert((i-1)*d->nrCols + d->col[Name], label);
stack->addWidget(label); stack->addWidget(label);
@ -183,7 +183,7 @@ void KScoreDialog::setupDialog()
{ {
label = new TQLabel(d->page); label = new TQLabel(d->page);
d->labels.insert((i-1)*d->nrCols + d->col[field], label); d->labels.insert((i-1)*d->nrCols + d->col[field], label);
d->tqlayout->addWidget(label, i+4, d->col[field], AlignRight); d->layout->addWidget(label, i+4, d->col[field], AlignRight);
} }
} }
} }
@ -202,15 +202,15 @@ void KScoreDialog::aboutToShow()
{ {
d->commentLabel->setMinimumSize(TQSize(1,1)); d->commentLabel->setMinimumSize(TQSize(1,1));
d->commentLabel->hide(); d->commentLabel->hide();
d->tqlayout->addRowSpacing(0, -15); d->layout->addRowSpacing(0, -15);
d->tqlayout->addRowSpacing(2, -15); d->layout->addRowSpacing(2, -15);
} }
else else
{ {
d->commentLabel->setMinimumSize(d->commentLabel->sizeHint()); d->commentLabel->setMinimumSize(d->commentLabel->sizeHint());
d->commentLabel->show(); d->commentLabel->show();
d->tqlayout->addRowSpacing(0, -10); d->layout->addRowSpacing(0, -10);
d->tqlayout->addRowSpacing(2, 10); d->layout->addRowSpacing(2, 10);
} }
d->comment = TQString(); d->comment = TQString();

@ -271,11 +271,11 @@ void KCardDialog::setupDialog(bool showResizeBox)
if (! (flags() & NoDeck)) if (! (flags() & NoDeck))
{ {
TQHBoxLayout* tqlayout = new TQHBoxLayout(cardLayout); TQHBoxLayout* layout = new TQHBoxLayout(cardLayout);
// Deck iconview // Deck iconview
TQGroupBox* grp1 = new TQGroupBox(1,Qt::Horizontal, i18n("Choose Backside"), plainPage()); TQGroupBox* grp1 = new TQGroupBox(1,Qt::Horizontal, i18n("Choose Backside"), plainPage());
tqlayout->addWidget(grp1); layout->addWidget(grp1);
d->deckIconView = new KIconView(grp1,"decks"); d->deckIconView = new KIconView(grp1,"decks");
d->deckIconView->setSpacing(8); d->deckIconView->setSpacing(8);
@ -293,7 +293,7 @@ void KCardDialog::setupDialog(bool showResizeBox)
d->deckIconView->showToolTips(); d->deckIconView->showToolTips();
// deck select // deck select
TQVBoxLayout* l = new TQVBoxLayout(tqlayout); TQVBoxLayout* l = new TQVBoxLayout(layout);
TQGroupBox* grp3 = new TQGroupBox(i18n("Backside"), plainPage()); TQGroupBox* grp3 = new TQGroupBox(i18n("Backside"), plainPage());
grp3->setFixedSize(100, 130); grp3->setFixedSize(100, 130);
l->addWidget(grp3, 0, AlignTop|AlignHCenter); l->addWidget(grp3, 0, AlignTop|AlignHCenter);
@ -325,9 +325,9 @@ void KCardDialog::setupDialog(bool showResizeBox)
if (! (flags() & NoCards)) if (! (flags() & NoCards))
{ {
// Cards iconview // Cards iconview
TQHBoxLayout* tqlayout = new TQHBoxLayout(cardLayout); TQHBoxLayout* layout = new TQHBoxLayout(cardLayout);
TQGroupBox* grp2 = new TQGroupBox(1,Qt::Horizontal, i18n("Choose Frontside"), plainPage()); TQGroupBox* grp2 = new TQGroupBox(1,Qt::Horizontal, i18n("Choose Frontside"), plainPage());
tqlayout->addWidget(grp2); layout->addWidget(grp2);
d->cardIconView =new KIconView(grp2,"cards"); d->cardIconView =new KIconView(grp2,"cards");
/* /*
@ -343,7 +343,7 @@ void KCardDialog::setupDialog(bool showResizeBox)
d->cardIconView->showToolTips(); d->cardIconView->showToolTips();
// Card select // Card select
TQVBoxLayout* l = new TQVBoxLayout(tqlayout); TQVBoxLayout* l = new TQVBoxLayout(layout);
TQGroupBox* grp4 = new TQGroupBox(i18n("Frontside"), plainPage()); TQGroupBox* grp4 = new TQGroupBox(i18n("Frontside"), plainPage());
grp4->setFixedSize(100, 130); grp4->setFixedSize(100, 130);
l->addWidget(grp4, 0, AlignTop|AlignHCenter); l->addWidget(grp4, 0, AlignTop|AlignHCenter);
@ -422,10 +422,10 @@ void KCardDialog::setupDialog(bool showResizeBox)
// large. This is desired behaviour as i don't want to make the box even // large. This is desired behaviour as i don't want to make the box even
// larger but i want the complete pixmap to be displayed. the dialog is not // larger but i want the complete pixmap to be displayed. the dialog is not
// resized if you make the pixmap smaller again. // resized if you make the pixmap smaller again.
TQVBoxLayout* tqlayout = new TQVBoxLayout(topLayout); TQVBoxLayout* layout = new TQVBoxLayout(topLayout);
TQGroupBox* grp = new TQGroupBox(1,Qt::Horizontal, i18n("Resize Cards"), plainPage()); TQGroupBox* grp = new TQGroupBox(1,Qt::Horizontal, i18n("Resize Cards"), plainPage());
tqlayout->setResizeMode(TQLayout::Fixed); layout->setResizeMode(TQLayout::Fixed);
tqlayout->addWidget(grp); layout->addWidget(grp);
TQWidget* box = new TQWidget(grp); TQWidget* box = new TQWidget(grp);
TQHBoxLayout* hbox = new TQHBoxLayout(box, 0, spacingHint()); TQHBoxLayout* hbox = new TQHBoxLayout(box, 0, spacingHint());
TQVBoxLayout* boxLayout = new TQVBoxLayout(hbox); TQVBoxLayout* boxLayout = new TQVBoxLayout(hbox);

@ -80,42 +80,42 @@ void KChatDialog::init()
d = new KChatDialogPrivate; d = new KChatDialogPrivate;
// d->mTextPage = addPage(i18n("&Messages"));// not a good name - game Messages? // d->mTextPage = addPage(i18n("&Messages"));// not a good name - game Messages?
d->mTextPage = plainPage(); d->mTextPage = plainPage();
TQGridLayout* tqlayout = new TQGridLayout(d->mTextPage, 7, 2, KDialog::marginHint(), KDialog::spacingHint()); TQGridLayout* layout = new TQGridLayout(d->mTextPage, 7, 2, KDialog::marginHint(), KDialog::spacingHint());
// General fonts // General fonts
TQPushButton* nameFont = new TQPushButton(i18n("Name Font..."), d->mTextPage); TQPushButton* nameFont = new TQPushButton(i18n("Name Font..."), d->mTextPage);
connect(nameFont, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotGetNameFont())); connect(nameFont, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotGetNameFont()));
tqlayout->addWidget(nameFont, 0, 0); layout->addWidget(nameFont, 0, 0);
TQPushButton* textFont = new TQPushButton(i18n("Text Font..."), d->mTextPage); TQPushButton* textFont = new TQPushButton(i18n("Text Font..."), d->mTextPage);
connect(textFont, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotGetTextFont())); connect(textFont, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotGetTextFont()));
tqlayout->addWidget(textFont, 0, 1); layout->addWidget(textFont, 0, 1);
TQFrame* messagePreview = new TQFrame(d->mTextPage); TQFrame* messagePreview = new TQFrame(d->mTextPage);
messagePreview->setFrameStyle(TQFrame::StyledPanel | TQFrame::Sunken); messagePreview->setFrameStyle(TQFrame::StyledPanel | TQFrame::Sunken);
TQHBoxLayout* messageLayout = new TQHBoxLayout(messagePreview); TQHBoxLayout* messageLayout = new TQHBoxLayout(messagePreview);
tqlayout->addMultiCellWidget(messagePreview, 1, 1, 0, 1); layout->addMultiCellWidget(messagePreview, 1, 1, 0, 1);
d->mNamePreview = new TQLabel(i18n("Player: "), messagePreview); d->mNamePreview = new TQLabel(i18n("Player: "), messagePreview);
messageLayout->addWidget(d->mNamePreview, 0); messageLayout->addWidget(d->mNamePreview, 0);
d->mTextPreview = new TQLabel(i18n("This is a player message"), messagePreview); d->mTextPreview = new TQLabel(i18n("This is a player message"), messagePreview);
messageLayout->addWidget(d->mTextPreview, 1); messageLayout->addWidget(d->mTextPreview, 1);
tqlayout->addRowSpacing(2, 10); layout->addRowSpacing(2, 10);
// System Message fonts // System Message fonts
TQLabel* systemMessages = new TQLabel(i18n("System Messages - Messages directly sent from the game"), d->mTextPage); TQLabel* systemMessages = new TQLabel(i18n("System Messages - Messages directly sent from the game"), d->mTextPage);
tqlayout->addMultiCellWidget(systemMessages, 3, 3, 0, 1); layout->addMultiCellWidget(systemMessages, 3, 3, 0, 1);
TQPushButton* systemNameFont = new TQPushButton(i18n("Name Font..."), d->mTextPage); TQPushButton* systemNameFont = new TQPushButton(i18n("Name Font..."), d->mTextPage);
connect(systemNameFont, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotGetSystemNameFont())); connect(systemNameFont, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotGetSystemNameFont()));
tqlayout->addWidget(systemNameFont, 4, 0); layout->addWidget(systemNameFont, 4, 0);
TQPushButton* systemTextFont = new TQPushButton(i18n("Text Font..."), d->mTextPage); TQPushButton* systemTextFont = new TQPushButton(i18n("Text Font..."), d->mTextPage);
connect(systemTextFont, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotGetSystemTextFont())); connect(systemTextFont, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotGetSystemTextFont()));
tqlayout->addWidget(systemTextFont, 4, 1); layout->addWidget(systemTextFont, 4, 1);
TQFrame* systemMessagePreview = new TQFrame(d->mTextPage); TQFrame* systemMessagePreview = new TQFrame(d->mTextPage);
systemMessagePreview->setFrameStyle(TQFrame::StyledPanel | TQFrame::Sunken); systemMessagePreview->setFrameStyle(TQFrame::StyledPanel | TQFrame::Sunken);
TQHBoxLayout* systemMessageLayout = new TQHBoxLayout(systemMessagePreview); TQHBoxLayout* systemMessageLayout = new TQHBoxLayout(systemMessagePreview);
tqlayout->addMultiCellWidget(systemMessagePreview, 5, 5, 0, 1); layout->addMultiCellWidget(systemMessagePreview, 5, 5, 0, 1);
d->mSystemNamePreview = new TQLabel(i18n("--- Game: "), systemMessagePreview); d->mSystemNamePreview = new TQLabel(i18n("--- Game: "), systemMessagePreview);
systemMessageLayout->addWidget(d->mSystemNamePreview, 0); systemMessageLayout->addWidget(d->mSystemNamePreview, 0);
@ -124,10 +124,10 @@ void KChatDialog::init()
// message count // message count
TQLabel* maxMessages = new TQLabel(i18n("Maximal number of messages (-1 = unlimited):"), d->mTextPage); TQLabel* maxMessages = new TQLabel(i18n("Maximal number of messages (-1 = unlimited):"), d->mTextPage);
tqlayout->addWidget(maxMessages, 6, 0); layout->addWidget(maxMessages, 6, 0);
d->mMaxMessages = new TQLineEdit(d->mTextPage); d->mMaxMessages = new TQLineEdit(d->mTextPage);
d->mMaxMessages->setText(TQString::number(-1)); d->mMaxMessages->setText(TQString::number(-1));
tqlayout->addWidget(d->mMaxMessages, 6, 1); layout->addWidget(d->mMaxMessages, 6, 1);
} }
void KChatDialog::slotGetNameFont() void KChatDialog::slotGetNameFont()

@ -38,7 +38,7 @@
too! too!
The API stays the same. The API stays the same.
11.10.2001 KGameDialogGeneralConfig now doesn't provide setMin/maxPlayers() 11.10.2001 KGameDialogGeneralConfig now doesn't provide setMin/maxPlayers()
anymore. The game should manage this internally. tqlayout() is anymore. The game should manage this internally. layout() is
obsolete as well obsolete as well
18.10.2001 KPlayer::signalNetworkData contained QDataStream& instead of const 18.10.2001 KPlayer::signalNetworkData contained QDataStream& instead of const
QByteArray& parameter (oops!). This is fixed now. All apps which QByteArray& parameter (oops!). This is fixed now. All apps which

@ -142,18 +142,18 @@ void KGameDebugDialog::initGamePage()
{ {
d->mGamePage = addPage(i18n("Debug &KGame")); d->mGamePage = addPage(i18n("Debug &KGame"));
TQVBoxLayout* topLayout = new TQVBoxLayout(d->mGamePage, marginHint(), spacingHint()); TQVBoxLayout* topLayout = new TQVBoxLayout(d->mGamePage, marginHint(), spacingHint());
TQHBoxLayout* tqlayout = new TQHBoxLayout(topLayout); TQHBoxLayout* layout = new TQHBoxLayout(topLayout);
KListView* v = new KListView(d->mGamePage); KListView* v = new KListView(d->mGamePage);
v->addColumn(i18n("Data")); v->addColumn(i18n("Data"));
v->addColumn(i18n("Value")); v->addColumn(i18n("Value"));
tqlayout->addWidget(v); layout->addWidget(v);
d->mGameProperties = new KListView(d->mGamePage); d->mGameProperties = new KListView(d->mGamePage);
d->mGameProperties->addColumn(i18n("Property")); d->mGameProperties->addColumn(i18n("Property"));
d->mGameProperties->addColumn(i18n("Value")); d->mGameProperties->addColumn(i18n("Value"));
d->mGameProperties->addColumn(i18n("Policy")); d->mGameProperties->addColumn(i18n("Policy"));
tqlayout->addWidget(d->mGameProperties); layout->addWidget(d->mGameProperties);
TQPushButton* b = new TQPushButton(i18n("Update"), d->mGamePage); TQPushButton* b = new TQPushButton(i18n("Update"), d->mGamePage);
connect(b, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotUpdateGameData())); connect(b, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotUpdateGameData()));
@ -177,10 +177,10 @@ void KGameDebugDialog::initPlayerPage()
{ {
d->mPlayerPage = addPage(i18n("Debug &Players")); d->mPlayerPage = addPage(i18n("Debug &Players"));
TQVBoxLayout* topLayout = new TQVBoxLayout(d->mPlayerPage, marginHint(), spacingHint()); TQVBoxLayout* topLayout = new TQVBoxLayout(d->mPlayerPage, marginHint(), spacingHint());
TQHBoxLayout* tqlayout = new TQHBoxLayout(topLayout); TQHBoxLayout* layout = new TQHBoxLayout(topLayout);
//TODO: connect to the KGame signals for joined/removed players!!! //TODO: connect to the KGame signals for joined/removed players!!!
TQVBoxLayout* listLayout = new TQVBoxLayout(tqlayout); TQVBoxLayout* listLayout = new TQVBoxLayout(layout);
TQLabel* listLabel = new TQLabel(i18n("Available Players"), d->mPlayerPage); TQLabel* listLabel = new TQLabel(i18n("Available Players"), d->mPlayerPage);
listLayout->addWidget(listLabel); listLayout->addWidget(listLabel);
d->mPlayerList = new KListBox(d->mPlayerPage); d->mPlayerList = new KListBox(d->mPlayerPage);
@ -189,7 +189,7 @@ void KGameDebugDialog::initPlayerPage()
d->mPlayerList->setSizePolicy(TQSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Expanding)); d->mPlayerList->setSizePolicy(TQSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Expanding));
KListView* v = new KListView(d->mPlayerPage); KListView* v = new KListView(d->mPlayerPage);
tqlayout->addWidget(v); layout->addWidget(v);
v->addColumn(i18n("Data")); v->addColumn(i18n("Data"));
v->addColumn(i18n("Value")); v->addColumn(i18n("Value"));
@ -197,7 +197,7 @@ void KGameDebugDialog::initPlayerPage()
d->mPlayerProperties->addColumn(i18n("Property")); d->mPlayerProperties->addColumn(i18n("Property"));
d->mPlayerProperties->addColumn(i18n("Value")); d->mPlayerProperties->addColumn(i18n("Value"));
d->mPlayerProperties->addColumn(i18n("Policy")); d->mPlayerProperties->addColumn(i18n("Policy"));
tqlayout->addWidget(d->mPlayerProperties); layout->addWidget(d->mPlayerProperties);
TQPushButton* b = new TQPushButton(i18n("Update"), d->mPlayerPage); TQPushButton* b = new TQPushButton(i18n("Update"), d->mPlayerPage);
connect(b, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotUpdatePlayerList())); connect(b, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotUpdatePlayerList()));
@ -220,9 +220,9 @@ void KGameDebugDialog::initPlayerPage()
void KGameDebugDialog::initMessagePage() void KGameDebugDialog::initMessagePage()
{ {
d->mMessagePage = addPage(i18n("Debug &Messages")); d->mMessagePage = addPage(i18n("Debug &Messages"));
TQGridLayout* tqlayout = new TQGridLayout(d->mMessagePage, 11, 7, marginHint(), spacingHint()); TQGridLayout* layout = new TQGridLayout(d->mMessagePage, 11, 7, marginHint(), spacingHint());
d->mMessageList = new KListView(d->mMessagePage); d->mMessageList = new KListView(d->mMessagePage);
tqlayout->addMultiCellWidget(d->mMessageList, 0, 9, 0, 3); layout->addMultiCellWidget(d->mMessageList, 0, 9, 0, 3);
d->mMessageList->addColumn(i18n("Time")); d->mMessageList->addColumn(i18n("Time"));
d->mMessageList->addColumn(i18n("ID")); d->mMessageList->addColumn(i18n("ID"));
d->mMessageList->addColumn(i18n("Receiver")); d->mMessageList->addColumn(i18n("Receiver"));
@ -231,20 +231,20 @@ void KGameDebugDialog::initMessagePage()
TQPushButton* hide = new TQPushButton(i18n("&>>"), d->mMessagePage); TQPushButton* hide = new TQPushButton(i18n("&>>"), d->mMessagePage);
connect(hide, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotHideId())); connect(hide, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotHideId()));
tqlayout->addWidget(hide, 4, 4); layout->addWidget(hide, 4, 4);
TQPushButton* show = new TQPushButton(i18n("&<<"), d->mMessagePage); TQPushButton* show = new TQPushButton(i18n("&<<"), d->mMessagePage);
connect(show, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotShowId())); connect(show, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotShowId()));
tqlayout->addWidget(show, 6, 4); layout->addWidget(show, 6, 4);
TQLabel* l = new TQLabel(i18n("Do not show IDs:"), d->mMessagePage); TQLabel* l = new TQLabel(i18n("Do not show IDs:"), d->mMessagePage);
tqlayout->addMultiCellWidget(l, 0, 0, 5, 6); layout->addMultiCellWidget(l, 0, 0, 5, 6);
d->mHideIdList = new KListBox(d->mMessagePage); d->mHideIdList = new KListBox(d->mMessagePage);
tqlayout->addMultiCellWidget(d->mHideIdList, 1, 8, 5, 6); layout->addMultiCellWidget(d->mHideIdList, 1, 8, 5, 6);
TQPushButton* clear = new KPushButton(KStdGuiItem::clear(), d->mMessagePage); TQPushButton* clear = new KPushButton(KStdGuiItem::clear(), d->mMessagePage);
connect(clear, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotClearMessages())); connect(clear, TQT_SIGNAL(pressed()), this, TQT_SLOT(slotClearMessages()));
tqlayout->addMultiCellWidget(clear, 10, 10, 0, 6); layout->addMultiCellWidget(clear, 10, 10, 0, 6);
//TODO: "show all but..." and "show nothing but..." //TODO: "show all but..." and "show nothing but..."
} }

@ -122,7 +122,7 @@ KGameDialogNetworkConfig::KGameDialogNetworkConfig(TQWidget* parent)
// kdDebug(11001) << k_funcinfo << ": this=" << this << endl; // kdDebug(11001) << k_funcinfo << ": this=" << this << endl;
d = new KGameDialogNetworkConfigPrivate(); d = new KGameDialogNetworkConfigPrivate();
TQVBoxLayout* topLayout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint(), "toptqlayout"); TQVBoxLayout* topLayout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint(), "toplayout");
TQHBoxLayout *hb = new TQHBoxLayout(topLayout, KDialog::spacingHint()); TQHBoxLayout *hb = new TQHBoxLayout(topLayout, KDialog::spacingHint());

@ -157,7 +157,7 @@ public:
* *
* @param parent Parent widget for this dialog. * @param parent Parent widget for this dialog.
* @param initializeGUI If you really don't want to use the * @param initializeGUI If you really don't want to use the
* predefined widget and/or tqlayout use FALSE here. Note that then none * predefined widget and/or layout use FALSE here. Note that then none
* of the predefined widgets (currently only the name of the player) * of the predefined widgets (currently only the name of the player)
* will exist anymore. * will exist anymore.
* *

@ -232,11 +232,11 @@ void KGameLCDList::append(const TQString &leading, TQLCDNumber *lcd)
TQLabel *label = 0; TQLabel *label = 0;
if ( !leading.isEmpty() ) { if ( !leading.isEmpty() ) {
label = new TQLabel(leading, this); label = new TQLabel(leading, this);
static_cast<TQGridLayout *>(tqlayout())->addWidget(label, i+1, 0); static_cast<TQGridLayout *>(layout())->addWidget(label, i+1, 0);
} }
d->_leadings.push_back(label); d->_leadings.push_back(label);
_lcds.push_back(lcd); _lcds.push_back(lcd);
static_cast<TQGridLayout *>(tqlayout())->addWidget(lcd, i+1, 1); static_cast<TQGridLayout *>(layout())->addWidget(lcd, i+1, 1);
} }
void KGameLCDList::clear() void KGameLCDList::clear()

@ -184,7 +184,7 @@ private:
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
/** /**
* This widget holds a list of @ref TQLCDNumber arranged in a vertical tqlayout. * This widget holds a list of @ref TQLCDNumber arranged in a vertical layout.
* It also shows a label at the top of the list. * It also shows a label at the top of the list.
* *
* @since 3.2 * @since 3.2

@ -213,7 +213,7 @@ void KGameProgress::styleChange(TQStyle&)
void KGameProgress::adjustStyle() void KGameProgress::adjustStyle()
{ {
switch (tqstyle().styleHint(TQStyle::SH_GUIStyle)) { switch (style().styleHint(TQStyle::SH_GUIStyle)) {
case WindowsStyle: case WindowsStyle:
setFrameStyle(TQFrame::WinPanel | TQFrame::Sunken); setFrameStyle(TQFrame::WinPanel | TQFrame::Sunken);
break; break;

@ -202,7 +202,7 @@ TQString KEMessage::StringToEntry(TQString str,KMessageEntry *entry)
cnt=size.toInt(); cnt=size.toInt();
entry->SetType((KGM_TYPE)type.toInt()); entry->SetType((KGM_TYPE)type.toInt());
// I hope this works with tqunicode strings as well // I hope this works with unicode strings as well
p=data.latin1(); p=data.latin1();
q=(char *)calloc(data.length()/2,sizeof(char)); q=(char *)calloc(data.length()/2,sizeof(char));
if (!q) return TQString(); if (!q) return TQString();

@ -45,9 +45,9 @@ NameDlg::NameDlg( TQWidget *parent, const char *name,bool /* modal */, WFlags /*
player_names = new TQGroupBox( page, "player_names" ); player_names = new TQGroupBox( page, "player_names" );
player_names->setTitle(i18n("Player Names") ); player_names->setTitle(i18n("Player Names") );
player_names->setColumnLayout(0, Qt::Vertical ); player_names->setColumnLayout(0, Qt::Vertical );
player_names->tqlayout()->setSpacing( 0 ); player_names->layout()->setSpacing( 0 );
player_names->tqlayout()->setMargin( 0 ); player_names->layout()->setMargin( 0 );
vbox_2 = new TQVBoxLayout( player_names->tqlayout() ); vbox_2 = new TQVBoxLayout( player_names->layout() );
vbox_2->setAlignment( TQt::AlignTop ); vbox_2->setAlignment( TQt::AlignTop );
vbox_2->setSpacing( 6 ); vbox_2->setSpacing( 6 );
vbox_2->setMargin( 11 ); vbox_2->setMargin( 11 );

@ -144,7 +144,7 @@
</widget> </widget>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout9</cstring> <cstring>layout9</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">
@ -220,7 +220,7 @@
</widget> </widget>
<widget class="TQLayoutWidget"> <widget class="TQLayoutWidget">
<property name="name"> <property name="name">
<cstring>tqlayout11</cstring> <cstring>layout11</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">

@ -202,7 +202,7 @@ TQString KEMessage::StringToEntry(TQString str,KMessageEntry *entry)
cnt=size.toInt(); cnt=size.toInt();
entry->SetType((KGM_TYPE)type.toInt()); entry->SetType((KGM_TYPE)type.toInt());
// I hope this works with tqunicode strings as well // I hope this works with unicode strings as well
p=data.latin1(); p=data.latin1();
q=(char *)calloc(data.length()/2,sizeof(char)); q=(char *)calloc(data.length()/2,sizeof(char));
if (!q) return TQString(); if (!q) return TQString();

@ -135,7 +135,7 @@
</widget> </widget>
<widget class="TQLayoutWidget" row="6" column="0" rowspan="1" colspan="6"> <widget class="TQLayoutWidget" row="6" column="0" rowspan="1" colspan="6">
<property name="name"> <property name="name">
<cstring>tqlayout1</cstring> <cstring>layout1</cstring>
</property> </property>
<hbox> <hbox>
<property name="name"> <property name="name">

@ -539,7 +539,7 @@ void Kwin4App::slotInitNetwork()
dlg.networkConfig()->setDiscoveryInfo("_twin4._tcp",Prefs::gamename()); dlg.networkConfig()->setDiscoveryInfo("_twin4._tcp",Prefs::gamename());
TQVBox *box=dlg.configPage(KGameDialog::NetworkConfig); TQVBox *box=dlg.configPage(KGameDialog::NetworkConfig);
TQVBoxLayout *l=(TQVBoxLayout *)(box->tqlayout()); TQVBoxLayout *l=(TQVBoxLayout *)(box->layout());
mColorGroup=new TQVButtonGroup(box); mColorGroup=new TQVButtonGroup(box);
connect(mColorGroup, TQT_SIGNAL(clicked(int)), TQT_TQOBJECT(this), TQT_SLOT(slotRemoteChanged(int))); connect(mColorGroup, TQT_SIGNAL(clicked(int)), TQT_TQOBJECT(this), TQT_SLOT(slotRemoteChanged(int)));

Loading…
Cancel
Save