rename the following methods:

tqparent parent
tqmask mask


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 14 years ago
parent 24c5cdc273
commit a13e26c2f1

@ -20,7 +20,7 @@
#include "atlanticclient.h"
#include "atlanticclient.moc"
AtlanticClient::AtlanticClient(TQObject *tqparent, const char *name) : TQSocket(tqparent, name)
AtlanticClient::AtlanticClient(TQObject *parent, const char *name) : TQSocket(parent, name)
{
connect(this, TQT_SIGNAL(readyRead()), this, TQT_SLOT(readData()));
}

@ -25,7 +25,7 @@ Q_OBJECT
TQ_OBJECT
public:
AtlanticClient(TQObject *tqparent = 0, const char *name = 0);
AtlanticClient(TQObject *parent = 0, const char *name = 0);
void sendData(const TQString &data);
private slots:

@ -64,7 +64,7 @@
#include "selectgame_widget.h"
#include "selectconfiguration_widget.h"
LogTextEdit::LogTextEdit( TQWidget *tqparent, const char *name ) : TQTextEdit( tqparent, name )
LogTextEdit::LogTextEdit( TQWidget *parent, const char *name ) : TQTextEdit( parent, name )
{
#ifdef KDE_3_2_FEATURES
m_clear = KStdAction::clear( TQT_TQOBJECT(this), TQT_SLOT( clear() ), 0 );

@ -74,7 +74,7 @@ Q_OBJECT
TQ_OBJECT
public:
LogTextEdit( TQWidget *tqparent = 0, const char *name = 0 );
LogTextEdit( TQWidget *parent = 0, const char *name = 0 );
virtual ~LogTextEdit();
TQPopupMenu *createPopupMenu( const TQPoint & pos );

@ -40,9 +40,9 @@
#include "atlantik.h"
#include "configdlg.moc"
ConfigDialog::ConfigDialog(Atlantik* tqparent, const char *name) : KDialogBase(IconList, i18n("Configure Atlantik"), Ok|Cancel, Ok, tqparent, "config_atlantik", false, name)
ConfigDialog::ConfigDialog(Atlantik* parent, const char *name) : KDialogBase(IconList, i18n("Configure Atlantik"), Ok|Cancel, Ok, parent, "config_atlantik", false, name)
{
m_parent = tqparent;
m_parent = parent;
p_general = addPage(i18n("General"), i18n("General"), BarIcon("configure", KIcon::SizeMedium));
p_p13n = addPage(i18n("Personalization"), i18n("Personalization"), BarIcon("personal", KIcon::SizeMedium));
p_board = addPage(i18n("Board"), i18n("Board"), BarIcon("monop_board", KIcon::SizeMedium));
@ -111,21 +111,21 @@ AtlantikConfig ConfigDialog::config()
return m_parent->config();
}
ConfigPlayer::ConfigPlayer(ConfigDialog* configDialog, TQWidget *tqparent, const char *name) : TQWidget(tqparent, name)
ConfigPlayer::ConfigPlayer(ConfigDialog* configDialog, TQWidget *parent, const char *name) : TQWidget(parent, name)
{
m_configDialog = configDialog;
TQVBoxLayout *tqlayout = new TQVBoxLayout(tqparent, KDialog::marginHint(), KDialog::spacingHint());
TQVBoxLayout *tqlayout = new TQVBoxLayout(parent, KDialog::marginHint(), KDialog::spacingHint());
TQLabel *label = new TQLabel(i18n("Player name:"), tqparent);
TQLabel *label = new TQLabel(i18n("Player name:"), parent);
tqlayout->addWidget(label);
m_playerName = new TQLineEdit(tqparent);
m_playerName = new TQLineEdit(parent);
tqlayout->addWidget(m_playerName);
TQLabel *label2 = new TQLabel(i18n("Player image:"), tqparent);
TQLabel *label2 = new TQLabel(i18n("Player image:"), parent);
tqlayout->addWidget(label2);
m_playerIcon = new KPushButton(tqparent, "playerIcon");
m_playerIcon = new KPushButton(parent, "playerIcon");
tqlayout->addWidget(m_playerIcon);
connect( m_playerIcon, TQT_SIGNAL(clicked()), this, TQT_SLOT(chooseImage()) );
@ -182,12 +182,12 @@ void ConfigPlayer::reset()
setImage();
}
ConfigMonopigator::ConfigMonopigator(ConfigDialog *configDialog, TQWidget *tqparent, const char *name) : TQWidget(tqparent, name)
ConfigMonopigator::ConfigMonopigator(ConfigDialog *configDialog, TQWidget *parent, const char *name) : TQWidget(parent, name)
{
m_configDialog = configDialog;
TQVBoxLayout *tqlayout = new TQVBoxLayout(tqparent, KDialog::marginHint(), KDialog::spacingHint());
TQVBoxLayout *tqlayout = new TQVBoxLayout(parent, KDialog::marginHint(), KDialog::spacingHint());
m_connectOnStart = new TQCheckBox(i18n("Request list of Internet servers on start-up"), tqparent);
m_connectOnStart = new TQCheckBox(i18n("Request list of Internet servers on start-up"), parent);
tqlayout->addWidget(m_connectOnStart);
TQString message=i18n(
@ -195,7 +195,7 @@ ConfigMonopigator::ConfigMonopigator(ConfigDialog *configDialog, TQWidget *tqpar
"request a list of Internet servers.\n");
TQWhatsThis::add(m_connectOnStart, message);
m_hideDevelopmentServers = new TQCheckBox(i18n("Hide development servers"), tqparent);
m_hideDevelopmentServers = new TQCheckBox(i18n("Hide development servers"), parent);
tqlayout->addWidget(m_hideDevelopmentServers);
message=i18n(
@ -225,12 +225,12 @@ void ConfigMonopigator::reset()
m_hideDevelopmentServers->setChecked(m_configDialog->config().hideDevelopmentServers);
}
ConfigGeneral::ConfigGeneral(ConfigDialog *configDialog, TQWidget *tqparent, const char *name) : TQWidget(tqparent, name)
ConfigGeneral::ConfigGeneral(ConfigDialog *configDialog, TQWidget *parent, const char *name) : TQWidget(parent, name)
{
m_configDialog = configDialog;
TQVBoxLayout *tqlayout = new TQVBoxLayout(tqparent, KDialog::marginHint(), KDialog::spacingHint());
TQVBoxLayout *tqlayout = new TQVBoxLayout(parent, KDialog::marginHint(), KDialog::spacingHint());
m_chatTimestamps = new TQCheckBox(i18n("Show timestamps in chat messages"), tqparent);
m_chatTimestamps = new TQCheckBox(i18n("Show timestamps in chat messages"), parent);
tqlayout->addWidget(m_chatTimestamps);
TQString message=i18n(
@ -253,12 +253,12 @@ void ConfigGeneral::reset()
m_chatTimestamps->setChecked(m_configDialog->config().chatTimestamps);
}
ConfigBoard::ConfigBoard(ConfigDialog *configDialog, TQWidget *tqparent, const char *name) : TQWidget(tqparent, name)
ConfigBoard::ConfigBoard(ConfigDialog *configDialog, TQWidget *parent, const char *name) : TQWidget(parent, name)
{
m_configDialog = configDialog;
TQVBoxLayout *tqlayout = new TQVBoxLayout(tqparent, KDialog::marginHint(), KDialog::spacingHint());
TQVBoxLayout *tqlayout = new TQVBoxLayout(parent, KDialog::marginHint(), KDialog::spacingHint());
TQGroupBox *box = new TQGroupBox(1, Qt::Horizontal, i18n("Game tqStatus Feedback"), tqparent);
TQGroupBox *box = new TQGroupBox(1, Qt::Horizontal, i18n("Game tqStatus Feedback"), parent);
tqlayout->addWidget(box);
m_indicateUnowned = new TQCheckBox(i18n("Display title deed card on unowned properties"), box);
@ -291,7 +291,7 @@ ConfigBoard::ConfigBoard(ConfigDialog *configDialog, TQWidget *tqparent, const c
"will have a Quartz effect similar to the Quartz KWin style.\n");
TQWhatsThis::add(m_quartzEffects, message);
// box = new TQGroupBox(1, Qt::Horizontal, i18n("Size"), tqparent);
// box = new TQGroupBox(1, Qt::Horizontal, i18n("Size"), parent);
// tqlayout->addWidget(box);
tqlayout->addStretch(1);

@ -38,7 +38,7 @@ Q_OBJECT
TQ_OBJECT
public:
ConfigPlayer(ConfigDialog *configDialog, TQWidget *tqparent, const char *name=0);
ConfigPlayer(ConfigDialog *configDialog, TQWidget *parent, const char *name=0);
TQString playerName();
TQString playerImage();
@ -62,7 +62,7 @@ Q_OBJECT
TQ_OBJECT
public:
ConfigBoard(ConfigDialog *configDialog, TQWidget *tqparent, const char *name=0);
ConfigBoard(ConfigDialog *configDialog, TQWidget *parent, const char *name=0);
bool indicateUnowned();
bool highliteUnowned();
@ -83,7 +83,7 @@ Q_OBJECT
TQ_OBJECT
public:
ConfigMonopigator(ConfigDialog *dialog, TQWidget *tqparent, const char *name = 0);
ConfigMonopigator(ConfigDialog *dialog, TQWidget *parent, const char *name = 0);
bool connectOnStart();
bool hideDevelopmentServers();
@ -101,7 +101,7 @@ Q_OBJECT
TQ_OBJECT
public:
ConfigGeneral(ConfigDialog *dialog, TQWidget *tqparent, const char *name = 0);
ConfigGeneral(ConfigDialog *dialog, TQWidget *parent, const char *name = 0);
bool chatTimestamps();
@ -118,7 +118,7 @@ Q_OBJECT
TQ_OBJECT
public:
ConfigDialog(Atlantik *tqparent, const char *name=0);
ConfigDialog(Atlantik *parent, const char *name=0);
bool chatTimestamps();
bool indicateUnowned();

@ -47,8 +47,8 @@ TQPtrList<Event> EventLog::events()
return m_events;
}
EventLogWidget::EventLogWidget(EventLog *eventLog, TQWidget *tqparent, const char *name)
: TQWidget(tqparent, name,
EventLogWidget::EventLogWidget(EventLog *eventLog, TQWidget *parent, const char *name)
: TQWidget(parent, name,
WType_Dialog | WStyle_Customize | WStyle_DialogBorder | WStyle_Title |
WStyle_Minimize | WStyle_ContextHelp )
{

@ -55,7 +55,7 @@ Q_OBJECT
public:
enum EventLogType { Default, Net_In, Net_Out };
EventLogWidget(EventLog *eventLog, TQWidget *tqparent=0, const char *name = 0);
EventLogWidget(EventLog *eventLog, TQWidget *parent=0, const char *name = 0);
public slots:
void addEvent(Event *event);

@ -108,12 +108,12 @@ void Monopigator::processData(const TQByteArray &data, bool okSoFar)
}
}
MonopigatorEntry::MonopigatorEntry(TQListView *tqparent, TQString host, TQString latency, TQString version, TQString users, TQString port, TQString ip) : TQObject(), TQListViewItem(tqparent, host, latency, version, users, port)
MonopigatorEntry::MonopigatorEntry(TQListView *parent, TQString host, TQString latency, TQString version, TQString users, TQString port, TQString ip) : TQObject(), TQListViewItem(parent, host, latency, version, users, port)
{
m_isDev = ( version.find( TQRegExp("(CVS|-dev)") ) != -1 ) ? true : false;
setEnabled(false);
tqparent->sort();
parent->sort();
if ( !ip.isEmpty() )
host = ip;

@ -62,7 +62,7 @@ Q_OBJECT
TQ_OBJECT
public:
MonopigatorEntry(TQListView *tqparent, TQString host, TQString latency, TQString version, TQString users, TQString port, TQString ip);
MonopigatorEntry(TQListView *parent, TQString host, TQString latency, TQString version, TQString users, TQString port, TQString ip);
int compare(TQListViewItem *i, int col, bool ascending) const;
bool isDev() const;

@ -33,7 +33,7 @@
#include "selectconfiguration_widget.moc"
SelectConfiguration::SelectConfiguration(AtlanticCore *atlanticCore, TQWidget *tqparent, const char *name) : TQWidget(tqparent, name)
SelectConfiguration::SelectConfiguration(AtlanticCore *atlanticCore, TQWidget *parent, const char *name) : TQWidget(parent, name)
{
m_atlanticCore = atlanticCore;
m_game = 0;

@ -38,7 +38,7 @@ Q_OBJECT
TQ_OBJECT
public:
SelectConfiguration(AtlanticCore *atlanticCore, TQWidget *tqparent, const char *name=0);
SelectConfiguration(AtlanticCore *atlanticCore, TQWidget *parent, const char *name=0);
void setCanStart(const bool &canStart);
TQString hostToConnect() const;

@ -29,7 +29,7 @@
#include "selectgame_widget.h"
SelectGame::SelectGame(AtlanticCore *atlanticCore, TQWidget *tqparent, const char *name) : TQWidget(tqparent, name)
SelectGame::SelectGame(AtlanticCore *atlanticCore, TQWidget *parent, const char *name) : TQWidget(parent, name)
{
m_atlanticCore = atlanticCore;

@ -33,7 +33,7 @@ Q_OBJECT
TQ_OBJECT
public:
SelectGame(AtlanticCore *atlanticCore, TQWidget *tqparent, const char *name=0);
SelectGame(AtlanticCore *atlanticCore, TQWidget *parent, const char *name=0);
void initPage();
bool validateNext();

@ -28,7 +28,7 @@
#include "selectserver_widget.moc"
SelectServer::SelectServer(bool useMonopigatorOnStart, bool hideDevelopmentServers, TQWidget *tqparent, const char *name) : TQWidget(tqparent, name)
SelectServer::SelectServer(bool useMonopigatorOnStart, bool hideDevelopmentServers, TQWidget *parent, const char *name) : TQWidget(parent, name)
{
m_hideDevelopmentServers = hideDevelopmentServers;

@ -35,7 +35,7 @@ Q_OBJECT
TQ_OBJECT
public:
SelectServer(bool useMonopigatorOnStart, bool hideDevelopmentServers, TQWidget *tqparent, const char *name=0);
SelectServer(bool useMonopigatorOnStart, bool hideDevelopmentServers, TQWidget *parent, const char *name=0);
virtual ~SelectServer();
void initPage();

@ -26,7 +26,7 @@
#include "player.h"
#include "trade.h"
AtlanticCore::AtlanticCore(TQObject *tqparent, const char *name) : TQObject(tqparent, name)
AtlanticCore::AtlanticCore(TQObject *parent, const char *name) : TQObject(parent, name)
{
m_playerSelf = 0;
}

@ -36,7 +36,7 @@ Q_OBJECT
TQ_OBJECT
public:
AtlanticCore(TQObject *tqparent, const char *name);
AtlanticCore(TQObject *parent, const char *name);
void reset(bool deletePermanents = false);

@ -33,7 +33,7 @@
#include "auction_widget.moc"
AuctionWidget::AuctionWidget(AtlanticCore *atlanticCore, Auction *auction, TQWidget *tqparent, const char *name) : TQWidget(tqparent, name)
AuctionWidget::AuctionWidget(AtlanticCore *atlanticCore, Auction *auction, TQWidget *parent, const char *name) : TQWidget(parent, name)
{
m_atlanticCore = atlanticCore;

@ -39,7 +39,7 @@ Q_OBJECT
TQ_OBJECT
public:
AuctionWidget(AtlanticCore *atlanticCore, Auction *auction, TQWidget *tqparent, const char *name=0);
AuctionWidget(AtlanticCore *atlanticCore, Auction *auction, TQWidget *parent, const char *name=0);
private slots:
void auctionChanged();

@ -35,7 +35,7 @@
#include "board.h"
#include "board.moc"
AtlantikBoard::AtlantikBoard(AtlanticCore *atlanticCore, int maxEstates, DisplayMode mode, TQWidget *tqparent, const char *name) : TQWidget(tqparent, name)
AtlantikBoard::AtlantikBoard(AtlanticCore *atlanticCore, int maxEstates, DisplayMode mode, TQWidget *parent, const char *name) : TQWidget(parent, name)
{
m_atlanticCore = atlanticCore;
m_maxEstates = maxEstates;

@ -40,7 +40,7 @@ Q_OBJECT
public:
enum DisplayMode { Play, Edit };
AtlantikBoard(AtlanticCore *atlanticCore, int maxEstates, DisplayMode mode, TQWidget *tqparent, const char *name=0);
AtlantikBoard(AtlanticCore *atlanticCore, int maxEstates, DisplayMode mode, TQWidget *parent, const char *name=0);
~AtlantikBoard();
void reset();

@ -39,7 +39,7 @@
#include "estatedetails.h"
#include "kwrappedlistviewitem.h"
EstateDetails::EstateDetails(Estate *estate, TQString text, TQWidget *tqparent, const char *name) : TQWidget(tqparent, name)
EstateDetails::EstateDetails(Estate *estate, TQString text, TQWidget *parent, const char *name) : TQWidget(parent, name)
{
m_pixmap = 0;
m_quartzBlocks = 0;

@ -38,7 +38,7 @@ class EstateDetails : public TQWidget
TQ_OBJECT
public:
EstateDetails(Estate *estate, TQString text, TQWidget *tqparent, const char *name = 0);
EstateDetails(Estate *estate, TQString text, TQWidget *parent, const char *name = 0);
~EstateDetails();
Estate *estate() { return m_estate; }

@ -36,7 +36,7 @@
#include "estateview.moc"
#include "config.h"
EstateView::EstateView(Estate *estate, EstateOrientation orientation, const TQString &_icon, bool indicateUnowned, bool highliteUnowned, bool darkenMortgaged, bool quartzEffects, TQWidget *tqparent, const char *name) : TQWidget(tqparent, name, WResizeNoErase)
EstateView::EstateView(Estate *estate, EstateOrientation orientation, const TQString &_icon, bool indicateUnowned, bool highliteUnowned, bool darkenMortgaged, bool quartzEffects, TQWidget *parent, const char *name) : TQWidget(parent, name, WResizeNoErase)
{
m_estate = estate;
m_orientation = orientation;

@ -35,7 +35,7 @@ Q_OBJECT
TQ_OBJECT
public:
EstateView(Estate *estate, EstateOrientation orientation, const TQString &, bool indicateUnowned, bool highliteUnowned, bool darkenMortgaged, bool quartzEffects, TQWidget *tqparent, const char *name = 0);
EstateView(Estate *estate, EstateOrientation orientation, const TQString &, bool indicateUnowned, bool highliteUnowned, bool darkenMortgaged, bool quartzEffects, TQWidget *parent, const char *name = 0);
void setViewProperties(bool indicateUnowned, bool highliteUnowned, bool darkenMortgaged, bool quartzEffects);
Estate *estate() { return m_estate; }
void updatePE();

@ -31,16 +31,16 @@
#include "kwrappedlistviewitem.h"
KWrappedListViewItem::KWrappedListViewItem( TQListView *tqparent, TQString text, TQString t2 )
: TQObject(), KListViewItem( tqparent )
KWrappedListViewItem::KWrappedListViewItem( TQListView *parent, TQString text, TQString t2 )
: TQObject(), KListViewItem( parent )
{
init( tqparent, text, t2 );
init( parent, text, t2 );
}
KWrappedListViewItem::KWrappedListViewItem( TQListView *tqparent, TQListViewItem *after, TQString text, TQString t2 )
: TQObject(), KListViewItem( tqparent, after )
KWrappedListViewItem::KWrappedListViewItem( TQListView *parent, TQListViewItem *after, TQString text, TQString t2 )
: TQObject(), KListViewItem( parent, after )
{
init( tqparent, text, t2 );
init( parent, text, t2 );
}
void KWrappedListViewItem::setup()
@ -91,11 +91,11 @@ void KWrappedListViewItem::wrapColumn( int c )
delete wrap;
}
void KWrappedListViewItem::init( TQListView *tqparent, TQString text, TQString t2 )
void KWrappedListViewItem::init( TQListView *parent, TQString text, TQString t2 )
{
m_wrapColumn = 0;
setMultiLinesEnabled( true );
tqparent->setResizeMode( TQListView::LastColumn );
parent->setResizeMode( TQListView::LastColumn );
m_origText = text;
@ -110,7 +110,7 @@ void KWrappedListViewItem::init( TQListView *tqparent, TQString text, TQString t
wrapColumn( m_wrapColumn );
connect( tqparent->header(), TQT_SIGNAL(sizeChange(int, int, int)), this, TQT_SLOT(wrapColumn(int)));
connect( parent->header(), TQT_SIGNAL(sizeChange(int, int, int)), this, TQT_SLOT(wrapColumn(int)));
}
#include "kwrappedlistviewitem.moc"

@ -38,8 +38,8 @@ Q_OBJECT
TQ_OBJECT
public:
KWrappedListViewItem( TQListView *tqparent, TQString text, TQString=TQString() );
KWrappedListViewItem( TQListView *tqparent, TQListViewItem *after, TQString text, TQString=TQString() );
KWrappedListViewItem( TQListView *parent, TQString text, TQString=TQString() );
KWrappedListViewItem( TQListView *parent, TQListViewItem *after, TQString text, TQString=TQString() );
void setup();
// int width(const TQFontMetrics& fm, const TQListView* lv, int c) const;
@ -47,7 +47,7 @@ private slots:
void wrapColumn( int c );
private:
void init( TQListView *tqparent, TQString text, TQString=TQString() );
void init( TQListView *parent, TQString text, TQString=TQString() );
TQString m_origText;
int m_wrapColumn;
};

@ -21,7 +21,7 @@
#include "portfolioestate.moc"
#include "estate.h"
PortfolioEstate::PortfolioEstate(Estate *estate, Player *player, bool alwaysOwned, TQWidget *tqparent, const char *name) : TQWidget(tqparent, name)
PortfolioEstate::PortfolioEstate(Estate *estate, Player *player, bool alwaysOwned, TQWidget *parent, const char *name) : TQWidget(parent, name)
{
m_estate = estate;
m_player = player;

@ -32,7 +32,7 @@ Q_OBJECT
TQ_OBJECT
public:
PortfolioEstate(Estate *estate, Player *player, bool alwaysOwned, TQWidget *tqparent, const char *name = 0);
PortfolioEstate(Estate *estate, Player *player, bool alwaysOwned, TQWidget *parent, const char *name = 0);
Estate *estate() { return m_estate; }
static TQPixmap drawPixmap(Estate *estate, Player *player = 0, bool alwaysOwned = true);

@ -40,7 +40,7 @@
#define PE_MARGINH 2
#define ICONSIZE 48
PortfolioView::PortfolioView(AtlanticCore *core, Player *player, TQColor activeColor, TQColor inactiveColor, TQWidget *tqparent, const char *name) : TQWidget(tqparent, name)
PortfolioView::PortfolioView(AtlanticCore *core, Player *player, TQColor activeColor, TQColor inactiveColor, TQWidget *parent, const char *name) : TQWidget(parent, name)
{
m_atlanticCore = core;
m_player = player;

@ -36,7 +36,7 @@ Q_OBJECT
TQ_OBJECT
public:
PortfolioView(AtlanticCore *core, Player *_player, TQColor activeColor, TQColor inactiveColor, TQWidget *tqparent, const char *name = 0);
PortfolioView(AtlanticCore *core, Player *_player, TQColor activeColor, TQColor inactiveColor, TQWidget *parent, const char *name = 0);
~PortfolioView();
void buildPortfolio();

@ -33,11 +33,11 @@
#define TOKEN_ICONSIZE 32
Token::Token(Player *player, AtlantikBoard *tqparent, const char *name) : TQWidget(tqparent, name)
Token::Token(Player *player, AtlantikBoard *parent, const char *name) : TQWidget(parent, name)
{
setBackgroundMode(NoBackground); // avoid flickering
m_parentBoard = tqparent;
m_parentBoard = parent;
m_player = player;
connect(m_player, TQT_SIGNAL(changed(Player *)), this, TQT_SLOT(playerChanged()));

@ -31,7 +31,7 @@ Q_OBJECT
TQ_OBJECT
public:
Token (Player *player, AtlantikBoard *tqparent, const char *name = 0);
Token (Player *player, AtlantikBoard *parent, const char *name = 0);
~Token();
Player *player();
void setLocation(Estate *estate);

@ -44,8 +44,8 @@
#include "trade_widget.moc"
TradeDisplay::TradeDisplay(Trade *trade, AtlanticCore *atlanticCore, TQWidget *tqparent, const char *name)
: TQWidget(tqparent, name,
TradeDisplay::TradeDisplay(Trade *trade, AtlanticCore *atlanticCore, TQWidget *parent, const char *name)
: TQWidget(parent, name,
WType_Dialog | WStyle_Customize | WStyle_DialogBorder | WStyle_Title |
WStyle_Minimize | WStyle_ContextHelp )
{

@ -42,7 +42,7 @@ Q_OBJECT
TQ_OBJECT
public:
TradeDisplay(Trade *trade, AtlanticCore *atlanticCore, TQWidget *tqparent=0, const char *name = 0);
TradeDisplay(Trade *trade, AtlanticCore *atlanticCore, TQWidget *parent=0, const char *name = 0);
Trade *trade() { return mTrade; }

@ -8,7 +8,7 @@
#include "ledmeter.h"
#include "ledmeter.moc"
KALedMeter::KALedMeter( TQWidget *tqparent ) : TQFrame( tqparent )
KALedMeter::KALedMeter( TQWidget *parent ) : TQFrame( parent )
{
mCRanges.setAutoDelete( true );
mRange = 100;

@ -16,7 +16,7 @@ class KALedMeter : public TQFrame
Q_OBJECT
TQ_OBJECT
public:
KALedMeter( TQWidget *tqparent );
KALedMeter( TQWidget *parent );
int range() const { return mRange; }
void setRange( int r );

@ -63,8 +63,8 @@ kas_animations [] =
KAsteroidsView::KAsteroidsView( TQWidget *tqparent, const char *name )
: TQWidget( tqparent, name ),
KAsteroidsView::KAsteroidsView( TQWidget *parent, const char *name )
: TQWidget( parent, name ),
field(640, 440),
view(&field,this)
{

@ -22,7 +22,7 @@ class KAsteroidsView : public TQWidget
Q_OBJECT
TQ_OBJECT
public:
KAsteroidsView( TQWidget *tqparent = 0, const char *name = 0 );
KAsteroidsView( TQWidget *parent = 0, const char *name = 0 );
virtual ~KAsteroidsView();
int refreshRate;

@ -16,8 +16,8 @@
extern Options settings;
ConfigBox::ConfigBox ( TQWidget *tqparent, const char *name)
: KDialogBase ( tqparent, name, true, i18n("Configure"), Ok | Cancel, Ok, true )
ConfigBox::ConfigBox ( TQWidget *parent, const char *name)
: KDialogBase ( parent, name, true, i18n("Configure"), Ok | Cancel, Ok, true )
{
TQWidget *page = makeMainWidget();

@ -26,8 +26,8 @@
extern Options settings;
Feld::Feld( TQWidget *tqparent, const char *name ) :
TQWidget( tqparent, name ),
Feld::Feld( TQWidget *parent, const char *name ) :
TQWidget( parent, name ),
data(locate("appdata", "pics/abilder.png")),
undoBegin (0), undoSize (0), redoSize (0)
{

@ -33,7 +33,7 @@ class Feld : public TQWidget
TQ_OBJECT
public:
Feld (TQWidget *tqparent=0, const char *name=0);
Feld (TQWidget *parent=0, const char *name=0);
~Feld ();
enum Direction { None = 0,

@ -167,8 +167,8 @@ void GameWidget::restartLevel()
updateLevel(level);
}
GameWidget::GameWidget ( TQWidget *tqparent, const char* name )
: TQWidget( tqparent, name )
GameWidget::GameWidget ( TQWidget *parent, const char* name )
: TQWidget( parent, name )
{
level = 1;
nlevels = KGlobal::dirs()->findAllResources("appdata", "levels/level_*",

@ -17,7 +17,7 @@ class GameWidget : public TQWidget
public:
GameWidget ( TQWidget *tqparent, const char *name=0 );
GameWidget ( TQWidget *parent, const char *name=0 );
~GameWidget();

@ -26,7 +26,7 @@
extern int level;
Molek::Molek( TQWidget *tqparent, const char *name ) : TQWidget( tqparent, name ),
Molek::Molek( TQWidget *parent, const char *name ) : TQWidget( parent, name ),
data(locate("appdata", "pics/molek.png"))
{
setBackgroundColor (TQColor (0, 0, 0));

@ -26,7 +26,7 @@ class Molek : public TQWidget
TQ_OBJECT
public:
Molek (TQWidget *tqparent=0, const char *name=0);
Molek (TQWidget *parent=0, const char *name=0);
~Molek ();
void load(const KSimpleConfig& config);

@ -642,7 +642,7 @@ bool KBgEngineFIBS::queryClose()
if (connection->state() == TQSocket::Idle)
return true;
switch (KMessageBox::warningYesNoCancel((TQWidget *)tqparent(),i18n("Still connected. Log out first?"),TQString(),i18n("Log Out"), i18n("Stay Connected"))) {
switch (KMessageBox::warningYesNoCancel((TQWidget *)parent(),i18n("Still connected. Log out first?"),TQString(),i18n("Log Out"), i18n("Stay Connected"))) {
case KMessageBox::Yes :
disconnectFIBS();
return true;
@ -731,7 +731,7 @@ void KBgEngineFIBS::away()
bool ret;
TQString msg = KLineEditDlg::getText(i18n("Please type the message that should be displayed to other\n"
"users while you are away."),
lastAway, &ret, (TQWidget *)tqparent());
lastAway, &ret, (TQWidget *)parent());
if (ret) {
lastAway = msg;
emit serverString("away " + msg);
@ -1052,7 +1052,7 @@ bool KBgEngineFIBS::queryConnection(const bool newlogin)
msg = KLineEditDlg::getText(i18n("Enter the name of the server you want to connect to.\n"
"This should almost always be \"fibs.com\"."),
infoFIBS[FIBSHost], &ret, (TQWidget *)tqparent());
infoFIBS[FIBSHost], &ret, (TQWidget *)parent());
if (ret)
infoFIBS[FIBSHost] = msg;
@ -1064,7 +1064,7 @@ bool KBgEngineFIBS::queryConnection(const bool newlogin)
msg = KLineEditDlg::getText(i18n("Enter the port number on the server. "
"It should almost always be \"4321\"."),
infoFIBS[FIBSPort], &ret, (TQWidget *)tqparent());
infoFIBS[FIBSPort], &ret, (TQWidget *)parent());
if (ret)
infoFIBS[FIBSPort] = msg;
@ -1088,7 +1088,7 @@ bool KBgEngineFIBS::queryConnection(const bool newlogin)
first = true;
do {
msg = (KLineEditDlg::getText(text, infoFIBS[FIBSUser], &ret,
(TQWidget *)tqparent())).stripWhiteSpace();
(TQWidget *)parent())).stripWhiteSpace();
if (first) {
text += i18n("The login may not contain spaces or colons!");
first = false;
@ -1400,7 +1400,7 @@ void KBgEngineFIBS::handleMessageConnect(const TQString &line, const TQString &r
if (rxCollect.isEmpty()) {
rxtqStatus = RxIgnore;
int ret = KMessageBox::warningContinueCancel
((TQWidget *)tqparent(), i18n("There was a problem with "
((TQWidget *)parent(), i18n("There was a problem with "
"your login and password. "
"You can reenter\n"
"your login and password and "
@ -1574,7 +1574,7 @@ void KBgEngineFIBS::handleMessageNewLogin(const TQString &line)
do {
msg = (KLineEditDlg::getText(text, infoFIBS[FIBSUser], &ret,
(TQWidget *)tqparent())).stripWhiteSpace();
(TQWidget *)parent())).stripWhiteSpace();
if (first) {
text += i18n("\n\nThe login may not contain spaces or colons!");
first = false;
@ -2091,13 +2091,13 @@ void KBgEngineFIBS::handleMessageNormal(TQString &line, TQString &rawline)
/*
* Constructor
*/
KBgEngineFIBS::KBgEngineFIBS(TQWidget *tqparent, TQString *name, TQPopupMenu *pmenu)
: KBgEngine(tqparent, name, pmenu)
KBgEngineFIBS::KBgEngineFIBS(TQWidget *parent, TQString *name, TQPopupMenu *pmenu)
: KBgEngine(parent, name, pmenu)
{
/*
* No connection, not playing, ready for login
*/
connection = new TQSocket(TQT_TQOBJECT(tqparent), "fibs connection");
connection = new TQSocket(TQT_TQOBJECT(parent), "fibs connection");
playing = false;
login = true;

@ -67,7 +67,7 @@ public:
/**
* Constructor
*/
KBgEngineFIBS(TQWidget *tqparent = 0, TQString *name = 0, TQPopupMenu *pmenu = 0);
KBgEngineFIBS(TQWidget *parent = 0, TQString *name = 0, TQPopupMenu *pmenu = 0);
/**
* Destructor

@ -71,10 +71,10 @@ public:
/*
* Constructor
*/
KLBT(TQWidget *tqparent, const TQString &text = TQString(), const TQString &player = TQString())
KLBT(TQWidget *parent, const TQString &text = TQString(), const TQString &player = TQString())
: TQListBoxText(text)
{
w = tqparent;
w = parent;
n = new TQString(player);
t = new TQSimpleRichText(text, w->font());
@ -189,8 +189,8 @@ public:
/*
* Constructor of the chat window.
*/
KBgChat::KBgChat(TQWidget *tqparent, const char *name)
: KChat(tqparent, false)
KBgChat::KBgChat(TQWidget *parent, const char *name)
: KChat(parent, false)
{
d = new KBgChatPrivate();
KActionCollection* actions = new KActionCollection(this);

@ -62,7 +62,7 @@ public:
/**
* Constructor
*/
KBgChat(TQWidget *tqparent = 0, const char *name = 0);
KBgChat(TQWidget *parent = 0, const char *name = 0);
/**
* Destructor

@ -79,7 +79,7 @@ public:
/*
* Constructor
*/
KFibsPlayerListLVI(KFibsPlayerList *tqparent) : KListViewItem(tqparent) { _plist = tqparent; }
KFibsPlayerListLVI(KFibsPlayerList *parent) : KListViewItem(parent) { _plist = parent; }
/*
* Destructor
@ -200,8 +200,8 @@ public:
/*
* Construct the playerlist and do some initial setup
*/
KFibsPlayerList::KFibsPlayerList(TQWidget *tqparent, const char *name)
: KListView(tqparent, name)
KFibsPlayerList::KFibsPlayerList(TQWidget *parent, const char *name)
: KListView(parent, name)
{
d = new KFibsPlayerListPrivate();
KActionCollection* actions = new KActionCollection(this);

@ -64,7 +64,7 @@ public:
/**
* Constructor
*/
KFibsPlayerList(TQWidget *tqparent = 0, const char *name = 0);
KFibsPlayerList(TQWidget *parent = 0, const char *name = 0);
/**
* Destructor

@ -33,8 +33,8 @@
/*
* Constructor initializes the TQObject
*/
KBgEngine::KBgEngine(TQWidget *tqparent, TQString *name, TQPopupMenu *pmenu)
: TQObject(tqparent, name->local8Bit())
KBgEngine::KBgEngine(TQWidget *parent, TQString *name, TQPopupMenu *pmenu)
: TQObject(parent, name->local8Bit())
{
menu = pmenu;
cl = -1;

@ -69,7 +69,7 @@ public:
/**
* Constructor
*/
KBgEngine (TQWidget * tqparent = 0, TQString * name = 0, TQPopupMenu * pmenu = 0);
KBgEngine (TQWidget * parent = 0, TQString * name = 0, TQPopupMenu * pmenu = 0);
/**
* Destructor

@ -275,7 +275,7 @@ void KBgEngineGNU::newGame()
/*
* If there is a game running we warn the user first
*/
if (gameRunning && (KMessageBox::warningYesNo((TQWidget *)tqparent(),
if (gameRunning && (KMessageBox::warningYesNo((TQWidget *)parent(),
i18n("A game is currently in progress. "
"Starting a new one will terminate it."),
TQString(), i18n("Start New Game"), i18n("Continue Old Game"))
@ -422,8 +422,8 @@ void KBgEngineGNU::saveConfig()
/*
* Constructor
*/
KBgEngineGNU::KBgEngineGNU(TQWidget *tqparent, TQString *name, TQPopupMenu *pmenu)
: KBgEngine(tqparent, name, pmenu)
KBgEngineGNU::KBgEngineGNU(TQWidget *parent, TQString *name, TQPopupMenu *pmenu)
: KBgEngine(parent, name, pmenu)
{
// obsolete
nameUS = "US";
@ -503,7 +503,7 @@ void KBgEngineGNU::startGNU()
resAction->setEnabled(false);
if (!gnubg.start(KProcess::NotifyOnExit, KProcess::All))
KMessageBox::information((TQWidget *)tqparent(),
KMessageBox::information((TQWidget *)parent(),
i18n("Could not start the GNU Backgammon process.\n"
"Make sure the program is in your PATH and is "
"called \"gnubg\".\n"

@ -51,7 +51,7 @@ public:
/*
* Constructor and destructor
*/
KBgEngineGNU(TQWidget *tqparent = 0, TQString *name = 0, TQPopupMenu *pmenu = 0);
KBgEngineGNU(TQWidget *parent = 0, TQString *name = 0, TQPopupMenu *pmenu = 0);
virtual ~KBgEngineGNU();
/**

@ -31,8 +31,8 @@
/*
* Constructor
*/
KBgGame::KBgGame(int cookie, TQObject *tqparent)
: KGame(cookie, tqparent)
KBgGame::KBgGame(int cookie, TQObject *parent)
: KGame(cookie, parent)
{
// do nothing...
}

@ -46,7 +46,7 @@ public:
enum MsgID {Text, Cmd, MaxMsg};
KBgGame(int cookie = 42, TQObject *tqparent = 0);
KBgGame(int cookie = 42, TQObject *parent = 0);
protected:

@ -51,8 +51,8 @@
/*
* Constructor
*/
KBgEngineNg::KBgEngineNg(TQWidget *tqparent, TQString *name, TQPopupMenu *pmenu)
: KBgEngine(tqparent, name, pmenu)
KBgEngineNg::KBgEngineNg(TQWidget *parent, TQString *name, TQPopupMenu *pmenu)
: KBgEngine(parent, name, pmenu)
{
// get a new game
initGame();
@ -140,7 +140,7 @@ void KBgEngineNg::setGame()
"65535.");
port_s.setNum(_port);
do {
port_s = KLineEditDlg::getText(label, port_s, &ret, (TQWidget *)tqparent());
port_s = KLineEditDlg::getText(label, port_s, &ret, (TQWidget *)parent());
if (!ret)
return;