summaryrefslogtreecommitdiffstats
path: root/libreoffice/3.3.3/patches/libreoffice-trinity.diff
diff options
context:
space:
mode:
Diffstat (limited to 'libreoffice/3.3.3/patches/libreoffice-trinity.diff')
-rw-r--r--libreoffice/3.3.3/patches/libreoffice-trinity.diff18
1 files changed, 9 insertions, 9 deletions
diff --git a/libreoffice/3.3.3/patches/libreoffice-trinity.diff b/libreoffice/3.3.3/patches/libreoffice-trinity.diff
index 3f717cd..605462f 100644
--- a/libreoffice/3.3.3/patches/libreoffice-trinity.diff
+++ b/libreoffice/3.3.3/patches/libreoffice-trinity.diff
@@ -8693,14 +8693,14 @@ diff -urN libreoffice-build/patches/dev300/trinity-modules.diff libreoffice-buil
++KURL TDEFileDialog::mostLocalURL( const KURL &rURL ) const
++{
++#if KDE_IS_VERSION(3,5,0)
-++ KURL qMostLocalURL( KIO::NetAccess::mostLocalURL( rURL, const_cast<TDEFileDialog*>( this ) ) );
+++ KURL qMostLocalURL( TDEIO::NetAccess::mostLocalURL( rURL, const_cast<TDEFileDialog*>( this ) ) );
++ if ( qMostLocalURL.isLocalFile() )
++ return qMostLocalURL;
++ else
++ {
++ // Terrible hack to get even non-existing media:// files right
++ qMostLocalURL.cd( ".." );
-++ KURL qMostLocalPath( KIO::NetAccess::mostLocalURL( qMostLocalURL, const_cast<TDEFileDialog*>( this ) ) );
+++ KURL qMostLocalPath( TDEIO::NetAccess::mostLocalURL( qMostLocalURL, const_cast<TDEFileDialog*>( this ) ) );
++ if ( qMostLocalPath.isLocalFile() )
++ {
++ qMostLocalPath.addPath( rURL.fileName() );
@@ -8729,9 +8729,9 @@ diff -urN libreoffice-build/patches/dev300/trinity-modules.diff libreoffice-buil
++ KURL qDestURL;
++ qDestURL.setPath( qTempFile.name() );
++
-++ if ( !KIO::NetAccess::file_copy( rFileName, qDestURL, 0600, true, false, NULL ) )
+++ if ( !TDEIO::NetAccess::file_copy( rFileName, qDestURL, 0600, true, false, NULL ) )
++ {
-++ KMessageBox::error( 0, KIO::NetAccess::lastErrorString() );
+++ KMessageBox::error( 0, TDEIO::NetAccess::lastErrorString() );
++ return TQString::null;
++ }
++
@@ -14751,16 +14751,16 @@ diff -urN libreoffice-build/patches/dev300/trinity-modules.diff libreoffice-buil
++ return Color( rColor.red(), rColor.green(), rColor.blue() );
++}
++
-++/** Helper function to read untranslated text entry from KConfig configuration repository.
+++/** Helper function to read untranslated text entry from TDEConfig configuration repository.
++*/
-++static OUString readEntryUntranslated( KConfig *pConfig, const char *pKey )
+++static OUString readEntryUntranslated( TDEConfig *pConfig, const char *pKey )
++{
++ return OUString::createFromAscii( pConfig->readEntryUntranslated( pKey ).ascii() );
++}
++
-++/** Helper function to read color from KConfig configuration repository.
+++/** Helper function to read color from TDEConfig configuration repository.
++*/
-++static Color readColor( KConfig *pConfig, const char *pKey )
+++static Color readColor( TDEConfig *pConfig, const char *pKey )
++{
++ return toColor( pConfig->readColorEntry( pKey ) );
++}
@@ -14856,7 +14856,7 @@ diff -urN libreoffice-build/patches/dev300/trinity-modules.diff libreoffice-buil
++ aStyleSettings.SetToolbarIconSize( STYLE_TOOLBAR_ICONSIZE_LARGE );
++
++ // WM settings
-++ KConfig *pConfig = TDEGlobal::config();
+++ TDEConfig *pConfig = TDEGlobal::config();
++ if ( pConfig )
++ {
++ pConfig->setGroup( "WM" );