summaryrefslogtreecommitdiffstats
path: root/libtdegames/kgame
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:12:46 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:12:46 -0600
commit58a97ed3af5e4df6c4a58d043b0c267bd97056a9 (patch)
tree5a2fde6842fd422cae2d8670d382be965098cc32 /libtdegames/kgame
parent2ce15ee76fd2d9d18a63c035a0f5b00b94c60cdc (diff)
downloadtdegames-58a97ed3af5e4df6c4a58d043b0c267bd97056a9.tar.gz
tdegames-58a97ed3af5e4df6c4a58d043b0c267bd97056a9.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'libtdegames/kgame')
-rw-r--r--libtdegames/kgame/dialogs/kgamedebugdialog.cpp24
-rw-r--r--libtdegames/kgame/dialogs/kgamedialogconfig.cpp4
2 files changed, 14 insertions, 14 deletions
diff --git a/libtdegames/kgame/dialogs/kgamedebugdialog.cpp b/libtdegames/kgame/dialogs/kgamedebugdialog.cpp
index ca95226e..e9ff7232 100644
--- a/libtdegames/kgame/dialogs/kgamedebugdialog.cpp
+++ b/libtdegames/kgame/dialogs/kgamedebugdialog.cpp
@@ -86,7 +86,7 @@ public:
const KGame* mGame;
TQFrame* mGamePage;
- KListView* mGameProperties;
+ TDEListView* mGameProperties;
TQListViewItem* mGameAddress;
TQListViewItem* mGameId;
TQListViewItem* mGameCookie;
@@ -100,8 +100,8 @@ public:
TQListViewItem* mGamePlayerCount;
TQFrame* mPlayerPage;
- KListBox* mPlayerList;
- KListView* mPlayerProperties;
+ TDEListBox* mPlayerList;
+ TDEListView* mPlayerProperties;
TQListViewItem* mPlayerAddress;
TQListViewItem* mPlayerId;
TQListViewItem* mPlayerName;
@@ -116,8 +116,8 @@ public:
TQListViewItem* mPlayerNetworkPriority;
TQFrame* mMessagePage;
- KListView* mMessageList;
- KListBox* mHideIdList;
+ TDEListView* mMessageList;
+ TDEListBox* mHideIdList;
};
KGameDebugDialog::KGameDebugDialog(KGame* g, TQWidget* parent, bool modal) :
@@ -144,12 +144,12 @@ void KGameDebugDialog::initGamePage()
TQVBoxLayout* topLayout = new TQVBoxLayout(d->mGamePage, marginHint(), spacingHint());
TQHBoxLayout* layout = new TQHBoxLayout(topLayout);
- KListView* v = new KListView(d->mGamePage);
+ TDEListView* v = new TDEListView(d->mGamePage);
v->addColumn(i18n("Data"));
v->addColumn(i18n("Value"));
layout->addWidget(v);
- d->mGameProperties = new KListView(d->mGamePage);
+ d->mGameProperties = new TDEListView(d->mGamePage);
d->mGameProperties->addColumn(i18n("Property"));
d->mGameProperties->addColumn(i18n("Value"));
d->mGameProperties->addColumn(i18n("Policy"));
@@ -183,17 +183,17 @@ void KGameDebugDialog::initPlayerPage()
TQVBoxLayout* listLayout = new TQVBoxLayout(layout);
TQLabel* listLabel = new TQLabel(i18n("Available Players"), d->mPlayerPage);
listLayout->addWidget(listLabel);
- d->mPlayerList = new KListBox(d->mPlayerPage);
+ d->mPlayerList = new TDEListBox(d->mPlayerPage);
connect(d->mPlayerList, TQT_SIGNAL(executed(TQListBoxItem*)), this, TQT_SLOT(slotUpdatePlayerData(TQListBoxItem*)));
listLayout->addWidget(d->mPlayerList);
d->mPlayerList->setSizePolicy(TQSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Expanding));
- KListView* v = new KListView(d->mPlayerPage);
+ TDEListView* v = new TDEListView(d->mPlayerPage);
layout->addWidget(v);
v->addColumn(i18n("Data"));
v->addColumn(i18n("Value"));
- d->mPlayerProperties = new KListView(d->mPlayerPage);
+ d->mPlayerProperties = new TDEListView(d->mPlayerPage);
d->mPlayerProperties->addColumn(i18n("Property"));
d->mPlayerProperties->addColumn(i18n("Value"));
d->mPlayerProperties->addColumn(i18n("Policy"));
@@ -221,7 +221,7 @@ void KGameDebugDialog::initMessagePage()
{
d->mMessagePage = addPage(i18n("Debug &Messages"));
TQGridLayout* layout = new TQGridLayout(d->mMessagePage, 11, 7, marginHint(), spacingHint());
- d->mMessageList = new KListView(d->mMessagePage);
+ d->mMessageList = new TDEListView(d->mMessagePage);
layout->addMultiCellWidget(d->mMessageList, 0, 9, 0, 3);
d->mMessageList->addColumn(i18n("Time"));
d->mMessageList->addColumn(i18n("ID"));
@@ -239,7 +239,7 @@ void KGameDebugDialog::initMessagePage()
TQLabel* l = new TQLabel(i18n("Do not show IDs:"), d->mMessagePage);
layout->addMultiCellWidget(l, 0, 0, 5, 6);
- d->mHideIdList = new KListBox(d->mMessagePage);
+ d->mHideIdList = new TDEListBox(d->mMessagePage);
layout->addMultiCellWidget(d->mHideIdList, 1, 8, 5, 6);
TQPushButton* clear = new KPushButton(KStdGuiItem::clear(), d->mMessagePage);
diff --git a/libtdegames/kgame/dialogs/kgamedialogconfig.cpp b/libtdegames/kgame/dialogs/kgamedialogconfig.cpp
index 11fc94d5..fee9a48b 100644
--- a/libtdegames/kgame/dialogs/kgamedialogconfig.cpp
+++ b/libtdegames/kgame/dialogs/kgamedialogconfig.cpp
@@ -596,7 +596,7 @@ public:
}
TQPtrDict<KPlayer> mItem2Player;
- KListBox* mPlayerBox;
+ TDEListBox* mPlayerBox;
};
KGameDialogConnectionConfig::KGameDialogConnectionConfig(TQWidget* parent)
@@ -607,7 +607,7 @@ KGameDialogConnectionConfig::KGameDialogConnectionConfig(TQWidget* parent)
TQVBoxLayout* topLayout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
topLayout->setAutoAdd(true);
TQHGroupBox* b = new TQHGroupBox(i18n("Connected Players"), this);
- d->mPlayerBox = new KListBox(b);
+ d->mPlayerBox = new TDEListBox(b);
setMinimumHeight(100);
}