diff options
author | Timothy Pearson <[email protected]> | 2011-12-21 14:20:47 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-21 14:20:47 -0600 |
commit | 36770452958a79a095f9d9e605e79f66cfa79a2b (patch) | |
tree | 8c5656dfa9510a332be71bc62e896540eaf76b52 /kolf/newgame.cpp | |
parent | c0f375feba0103bed2bac1b1f05e76e9ae28fa89 (diff) | |
download | tdegames-36770452958a79a095f9d9e605e79f66cfa79a2b.tar.gz tdegames-36770452958a79a095f9d9e605e79f66cfa79a2b.zip |
Rename obsolete tq methods to standard names
Diffstat (limited to 'kolf/newgame.cpp')
-rw-r--r-- | kolf/newgame.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/kolf/newgame.cpp b/kolf/newgame.cpp index 7251fa0c..493b00fd 100644 --- a/kolf/newgame.cpp +++ b/kolf/newgame.cpp @@ -56,14 +56,14 @@ NewGameDialog::NewGameDialog(bool enableCourses, TQWidget *parent, const char *_ scroller = new TQScrollView(playerPage); bigLayout->addWidget(scroller); - tqlayout = new TQVBox(scroller->viewport()); + layout = new TQVBox(scroller->viewport()); if (!TQPixmapCache::find("grass", grass)) { grass.load(locate("appdata", "pics/grass.png")); TQPixmapCache::insert("grass", grass); } scroller->viewport()->setBackgroundPixmap(grass); - scroller->addChild(tqlayout); + scroller->addChild(layout); TQMap<TQString, TQString> entries = config->entryMap("New Game Dialog"); 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 &))); coursePageLayout->addWidget(coursesLink); - TQHBoxLayout *htqlayout = new TQHBoxLayout(coursePageLayout, spacingHint()); + TQHBoxLayout *hlayout = new TQHBoxLayout(coursePageLayout, spacingHint()); // following use this group config->setGroup("New Game Dialog Mode"); @@ -128,13 +128,13 @@ NewGameDialog::NewGameDialog(bool enableCourses, TQWidget *parent, const char *_ nameList.append(newName); courseList = new KListBox(coursePage); - htqlayout->addWidget(courseList); + hlayout->addWidget(courseList); courseList->insertStringList(nameList); courseList->setCurrentItem(curItem); connect(courseList, TQT_SIGNAL(highlighted(int)), this, TQT_SLOT(courseSelected(int))); 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); detailLayout->addWidget(name); author = new TQLabel(coursePage); @@ -170,15 +170,15 @@ NewGameDialog::NewGameDialog(bool enableCourses, TQWidget *parent, const char *_ // options page 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); - vtqlayout->addWidget(mode); + vlayout->addWidget(mode); 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); desc->setTextFormat(RichText); - vtqlayout->addWidget(desc); + vlayout->addWidget(desc); } void NewGameDialog::slotOk() @@ -287,7 +287,7 @@ void NewGameDialog::addPlayer() if (editors.count() >= startColors.count()) 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(); 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) : TQWidget(parent, _name) { - TQHBoxLayout *tqlayout = new TQHBoxLayout(this, KDialogBase::spacingHint()); + TQHBoxLayout *layout = new TQHBoxLayout(this, KDialogBase::spacingHint()); if (!TQPixmapCache::find("grass", grass)) { @@ -324,17 +324,17 @@ PlayerEditor::PlayerEditor(TQString startName, TQColor startColor, TQWidget *par setBackgroundPixmap(grass); editor = new KLineEdit(this); - tqlayout->addWidget(editor); + layout->addWidget(editor); editor->setFrame(false); editor->setText(startName); - tqlayout->addStretch(); - tqlayout->addWidget(colorButton = new KColorButton(startColor, this)); + layout->addStretch(); + layout->addWidget(colorButton = new KColorButton(startColor, this)); colorButton->setAutoMask(true); colorButton->setBackgroundPixmap(grass); KPushButton *remove = new KPushButton(i18n("Remove"), this); remove->setAutoMask(true); - tqlayout->addWidget(remove); + layout->addWidget(remove); remove->setBackgroundPixmap(grass); connect(remove, TQT_SIGNAL(clicked()), this, TQT_SLOT(removeMe())); } |