summaryrefslogtreecommitdiffstats
path: root/ksokoban/ModalLabel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ksokoban/ModalLabel.cpp')
-rw-r--r--ksokoban/ModalLabel.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/ksokoban/ModalLabel.cpp b/ksokoban/ModalLabel.cpp
index c0ccbbad..cf813779 100644
--- a/ksokoban/ModalLabel.cpp
+++ b/ksokoban/ModalLabel.cpp
@@ -28,9 +28,9 @@
#include "ModalLabel.moc"
-ModalLabel::ModalLabel(const TQString &text, TQWidget *parent,
+ModalLabel::ModalLabel(const TQString &text, TQWidget *tqparent,
const char *name, WFlags f)
- : TQLabel(text, parent, name, f) {
+ : TQLabel(text, tqparent, name, f) {
TQFont font(KGlobalSettings::generalFont().family(), 24, TQFont::Bold);
TQFontMetrics fontMet(font);
@@ -40,7 +40,7 @@ ModalLabel::ModalLabel(const TQString &text, TQWidget *parent,
for (int linePos=0; linePos < (int) text.length(); linePos += lineLen+1) {
- lineLen = text.find('\n', linePos);
+ lineLen = text.tqfind('\n', linePos);
if (lineLen < 0) lineLen = text.length() - linePos;
else lineLen -= linePos;
@@ -57,15 +57,15 @@ ModalLabel::ModalLabel(const TQString &text, TQWidget *parent,
if (width < 300) width = 300;
if (height < 75) height = 75;
- setAlignment (AlignCenter);
+ tqsetAlignment (AlignCenter);
setFrameStyle (TQFrame::Panel | TQFrame::Raised);
setLineWidth (4);
setFont (font);
- move (parent->width ()/2 - width/2, parent->height ()/2 - height/2);
+ move (tqparent->width ()/2 - width/2, tqparent->height ()/2 - height/2);
resize (width, height);
show ();
- TQWidgetList *list = TQApplication::allWidgets();
+ TQWidgetList *list = TQApplication::tqallWidgets();
TQWidgetListIt it( *list );
while (it.current()) {
it.current()->installEventFilter (this);
@@ -107,9 +107,9 @@ ModalLabel::eventFilter (TQObject *, TQEvent *e) {
}
void
-ModalLabel::message (const TQString &text, TQWidget *parent) {
+ModalLabel::message (const TQString &text, TQWidget *tqparent) {
KApplication *app = KApplication::kApplication ();
- ModalLabel cl (text, parent);
+ ModalLabel cl (text, tqparent);
while (!cl.completed_) app->processOneEvent ();
}