* Batch 1/2 of kdemultimedia bugfix patches from the Chakra project

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1172709 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 14 years ago
parent 08d46ebbbb
commit f815711d03

@ -1,6 +1,6 @@
[Desktop Entry] [Desktop Entry]
Exec=kcmshell kcmsambaconf Exec=kcmshell kcmsambaconf
Icon=kcmsambaconf Icon=samba
Type=Application Type=Application
Terminal=false Terminal=false

@ -982,6 +982,8 @@ void KopeteWindow::slotBuildStatusMessageMenu()
/* TQLabel * newMessageLabel = new TQLabel( i18n( "Add " ), newMessageBox );*/ /* TQLabel * newMessageLabel = new TQLabel( i18n( "Add " ), newMessageBox );*/
m_newMessageEdit = new TQLineEdit( newMessageBox, "newmessage" ); m_newMessageEdit = new TQLineEdit( newMessageBox, "newmessage" );
m_newMessageEdit->setText(Kopete::Away::message());
newMessageBox->setFocusProxy( m_newMessageEdit ); newMessageBox->setFocusProxy( m_newMessageEdit );
newMessageBox->setFocusPolicy( TQWidget::ClickFocus ); newMessageBox->setFocusPolicy( TQWidget::ClickFocus );
/* newMessageLabel->setFocusProxy( newMessageEdit ); /* newMessageLabel->setFocusProxy( newMessageEdit );

@ -23,6 +23,7 @@
#include <tqtooltip.h> #include <tqtooltip.h>
#include <tqfile.h> #include <tqfile.h>
#include <tqiconset.h> #include <tqiconset.h>
#include <tqregexp.h>
#include <kconfig.h> #include <kconfig.h>
#include <kdebug.h> #include <kdebug.h>
@ -296,7 +297,10 @@ void JabberChatSession::slotMessageSent ( Kopete::Message &message, Kopete::Chat
//&nbsp; is not a valid XML entity //&nbsp; is not a valid XML entity
xhtmlBody.replace("&nbsp;" , "&#160;"); xhtmlBody.replace("&nbsp;" , "&#160;");
xhtmlBody="<p "+ message.getHtmlStyleAttribute() +">"+ xhtmlBody +"</p>"; // Remove trailing line break
xhtmlBody.remove( TQRegExp( "<br/>$" ) );
xhtmlBody = "<span " + message.getHtmlStyleAttribute() + ">" + xhtmlBody + "</span>";
jabberMessage.setXHTMLBody ( xhtmlBody ); jabberMessage.setXHTMLBody ( xhtmlBody );
} }
} }

@ -438,6 +438,9 @@ void AIMContact::slotSendMsg(Kopete::Message& message, Kopete::ChatSession *)
//30- (and any I missed) are size 7 //30- (and any I missed) are size 7
s.replace ( TQRegExp ( TQString::fromLatin1("<font ptsize=\"[^\"]*\">")),TQString::fromLatin1("<font size=\"7\">")); s.replace ( TQRegExp ( TQString::fromLatin1("<font ptsize=\"[^\"]*\">")),TQString::fromLatin1("<font size=\"7\">"));
// strip left over line break
s.remove(TQRegExp(TQString::fromLatin1("<br\b[^>]*>$")));
s.replace ( TQRegExp ( TQString::fromLatin1("<br[ /]*>")), TQString::fromLatin1("<br>") ); s.replace ( TQRegExp ( TQString::fromLatin1("<br[ /]*>")), TQString::fromLatin1("<br>") );
// strip left over line break // strip left over line break

@ -89,7 +89,7 @@ void OscarVersionUpdater::initICQVersionInfo()
kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << endl; kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << endl;
KConfigGroup config( KGlobal::config(), "ICQVersion" ); KConfigGroup config( KGlobal::config(), "ICQVersion" );
mICQVersion.clientString = config.readEntry( "ClientString", "ICQBasic" ); mICQVersion.clientString = config.readEntry( "ClientString", "ICQ Client" );
mICQVersion.clientId = config.readEntry( "ClientId", "0x010A" ).toUShort( 0, 0 ); mICQVersion.clientId = config.readEntry( "ClientId", "0x010A" ).toUShort( 0, 0 );
mICQVersion.major = config.readEntry( "Major", "0x0006" ).toUShort( 0, 0 ); mICQVersion.major = config.readEntry( "Major", "0x0006" ).toUShort( 0, 0 );
mICQVersion.minor = config.readEntry( "Minor", "0x0000" ).toUShort( 0, 0 ); mICQVersion.minor = config.readEntry( "Minor", "0x0000" ).toUShort( 0, 0 );

Loading…
Cancel
Save