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

List:       kde-commits
Subject:    kdenonbeta/kopete/libkopete/ui
From:       Jason Keirstead <jason () keirstead ! org>
Date:       2003-03-10 4:18:03
[Download RAW message or body]

CVS commit by brunes: 

Removing this legacy code. Topace tested the DOM on 3.1 with no
crashes so I am going to go ahead and get rid of this junk, it
has really been a thorn in my side.

If someone else using 3.1 finds KHTML unuseable because of this
we will have to revert :( But for now I am optomistic.


  M +12 -31    chatview.cpp   1.198


--- kdenonbeta/kopete/libkopete/ui/chatview.cpp  #1.197:1.198
@@ -823,6 +823,4 @@ void ChatView::addChatMessage( KopeteMes
         }
 
-        //This code breaks in KDE < HEAD for some reason
-        #if KDE_VERSION > 0x030100
                 HTMLElement newNode = chatView->document().createElement( \
QString::fromLatin1("div") );  newNode.setInnerHTML( resultHTML );
@@ -833,7 +831,4 @@ void ChatView::addChatMessage( KopeteMes
                 if( !scrollPressed )
                         QTimer::singleShot( 1, this, SLOT( slotScrollView() ) );
-        #else
-                refreshView();
-        #endif
 
 }
@@ -866,22 +861,7 @@ void ChatView::setTabBar( KTabWidget *ta
 void ChatView::refreshView()
 {
-        #if KDE_VERSION > 0x030100
                 //This doesn't work well using the DOM, so just use some JS
                 if( bgChanged && !backgroundFile.isNull() )
                         chatView->executeScript( \
                QString::fromLatin1("document.body.background = \"%1\";").arg( \
                backgroundFile ) );
-        #else
-                chatView->begin();
-                if( !backgroundFile.isNull() )
-                {
-                        chatView->write( QString::fromLatin1( "<html><body \
                background=\"" ) + backgroundFile +
-                                QString::fromLatin1( "\" bgproperties=\"fixed\">" ) \
                + viewsText() +
-                                QString::fromLatin1( "</body></html>" ) );
-                }
-                else
-                {
-                        chatView->write( QString::fromLatin1( "<html><body>" ) + \
                viewsText() + QString::fromLatin1( "</body></html>" ) );
-                }
-                chatView->end();
-        #endif
 
         bgChanged = false;


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

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