From f7e71d47719ab6094cf4a9fafffa5ea351973522 Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 13 Jan 2011 08:32:36 +0000 Subject: Initial conversion for TQt for Qt4 3.4.0 TP2 This will also compile with TQt for Qt3, and should not cause any problems with dependent modules such as kdebase. If it does then it needs to be fixed! git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1214149 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdeui/tests/kmessageboxtest.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'kdeui/tests/kmessageboxtest.cpp') diff --git a/kdeui/tests/kmessageboxtest.cpp b/kdeui/tests/kmessageboxtest.cpp index 1b926739f..e63d24fca 100644 --- a/kdeui/tests/kmessageboxtest.cpp +++ b/kdeui/tests/kmessageboxtest.cpp @@ -25,18 +25,18 @@ ExampleWidget::ExampleWidget( TQWidget *parent, const char *name ) // and sub-layouts. TQSize sh; setText("

Hello.

"); - sh = sizeHint(); + sh = tqsizeHint(); qWarning("SizeHint = %d x %d", sh.width(), sh.height()); setText("Hello."); - sh = sizeHint(); + sh = tqsizeHint(); qWarning("SizeHint = %d x %d", sh.width(), sh.height()); setText("

Hello
World

"); - sh = sizeHint(); + sh = tqsizeHint(); qWarning("SizeHint = %d x %d", sh.width(), sh.height()); // setText("Hello\nWorld"); - sh = sizeHint(); + sh = tqsizeHint(); qWarning("SizeHint = %d x %d", sh.width(), sh.height()); - setMinimumSize(sizeHint()); + setMinimumSize(tqsizeHint()); } @@ -79,11 +79,11 @@ case 1: i = KMessageBox::warningContinueCancel(w, "You are about to .\n" "Are you sure?", - "Print", TQString::fromLatin1("&Print"), "dontask", false); + "Print", TQString::tqfromLatin1("&Print"), "dontask", false); i = KMessageBox::warningContinueCancel(0, "You are about to .\n" "Are you sure?", - "Print", TQString::fromLatin1("&Print"), "dontask", KMessageBox::AllowLink); + "Print", TQString::tqfromLatin1("&Print"), "dontask", KMessageBox::AllowLink); i = KMessageBox::questionYesNo(0, "

Do you have a printer? thisisaverylongdkldhklghklghklashgkllasghkdlsghkldfghklsabla bla bbla bla. It also has this URL.

", TQString("Bla"), TQString("Yes"), TQString("No"), "bla", KMessageBox::AllowLink); break; @@ -96,7 +96,7 @@ case 2: case 3: i = KMessageBox::questionYesNo(0, "Does your printer support color or only black and white?", - "Printer setup", TQString::fromLatin1("&Color"), TQString::fromLatin1("&Black & White")); + "Printer setup", TQString::tqfromLatin1("&Color"), TQString::tqfromLatin1("&Black & White")); break; case 4: @@ -123,13 +123,13 @@ case 6: i = KMessageBox::warningContinueCancel(0, "You are about to print.\n" "Are you sure?", - "Print", TQString::fromLatin1("&Print")); + "Print", TQString::tqfromLatin1("&Print")); break; case 7: i = KMessageBox::warningContinueCancel(0, "You are about to .\n" "Are you sure?", - "Print", TQString::fromLatin1("&Print"), "dontask", false); + "Print", TQString::tqfromLatin1("&Print"), "dontask", false); break; case 8: @@ -142,14 +142,14 @@ case 9: i = KMessageBox::warningYesNoCancel(0, "Your document contains unsaved changes.\n" "Do you want to save your changes?\n", - TQString::fromLatin1("Close")); + TQString::tqfromLatin1("Close")); break; case 10: i = KMessageBox::warningYesNoCancel(0, "Your document contains unsaved changes.\n" "Do you want to save or discard your changes?\n", - "Close", TQString::fromLatin1("&Save"), TQString::fromLatin1("&Discard") ); + "Close", TQString::tqfromLatin1("&Save"), TQString::tqfromLatin1("&Discard") ); break; case 11: -- cgit v1.2.1