[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE_3_3_BRANCH: kdelibs/khtml/ecma
From:       Lukáš Tinkl <lukas () kde ! org>
Date:       2004-12-10 11:00:30
Message-ID: 20041210110030.1F52F1BBE0 () office ! kde ! org
[Download RAW message or body]

CVS commit by lukas: 

backport CVS commit by faure: 

KMessageBox takes care of the convertFromPlainText already, and does it better (line \
by line). This fixes wrapping of long lines in alert() boxes. (#88860)


  M +2 -2      kjs_window.cpp   1.378.2.7


--- kdelibs/khtml/ecma/kjs_window.cpp  #1.378.2.6:1.378.2.7
@@ -1465,5 +1465,5 @@ Value WindowFunc::tryCall(ExecState *exe
     if ( part )
       emit part->browserExtension()->requestFocus(part);
-    KMessageBox::error(widget, QStyleSheet::convertFromPlainText(str), caption);
+    KMessageBox::error(widget, str, caption);
     return Undefined();
   case Window::Confirm:
@@ -1474,5 +1474,5 @@ Value WindowFunc::tryCall(ExecState *exe
     if ( part )
       emit part->browserExtension()->requestFocus(part);
-    return Boolean((KMessageBox::warningYesNo(widget, \
QStyleSheet::convertFromPlainText(str), caption, +    return \
                Boolean((KMessageBox::warningYesNo(widget, str, caption,
                                                 KStdGuiItem::ok(), \
KStdGuiItem::cancel()) == KMessageBox::Yes));  case Window::Prompt:


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic