* Fix FTBFS on Slackware

* Added a few Chakra project patches; more are coming shortly


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1172412 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 14 years ago
parent 4c1ea1ee0d
commit eaa51fec10

@ -18,6 +18,7 @@
#include <tqlayout.h>
#include <tqslider.h>
#include <kapplication.h>
#include <kcolorbutton.h>
#include <kconfig.h>
#include <kdebug.h>

@ -18,6 +18,7 @@
#include <kcmodule.h>
#include <kdialogbase.h>
#include <ksimpleconfig.h>
class TQCheckBox;
class TQColor;

@ -24,6 +24,7 @@
#include <tqradiobutton.h>
#include <tqcombobox.h>
#include <tqbuttongroup.h>
#include <tqlineedit.h>
#include <dcopref.h>
#include <kapplication.h>

@ -33,6 +33,7 @@
#include <kdebug.h>
#include <kdialog.h>
#include <kprocess.h>
#include <kiconloader.h>
#include <klanguagebutton.h>
#include <ksimpleconfig.h>

@ -17,6 +17,7 @@
*/
#include <tqtimer.h>
#include <tqimage.h>
#include <tqtooltip.h>
#include <kaction.h>
@ -32,6 +33,7 @@
#include <kglobal.h>
#include <kmessagebox.h>
#include <cstdlib>
#include <unistd.h>
#include "configdialog.h"

@ -160,7 +160,9 @@ KParts::ReadOnlyPart* KWebDesktop::createPart( const TQString& mimeType )
htmlPart->setMetaRefreshEnabled(false);
htmlPart->setJScriptEnabled(false);
htmlPart->setJavaEnabled(false);
htmlPart->setPluginsEnabled(false);
((TQScrollView *)htmlPart->widget())->setFrameStyle( TQFrame::NoFrame );
((TQScrollView *)htmlPart->widget())->setHScrollBarMode( TQScrollView::AlwaysOff );
((TQScrollView *)htmlPart->widget())->setVScrollBarMode( TQScrollView::AlwaysOff );

@ -621,6 +621,20 @@ static int directCommand(KCmdLineArgs *args)
context = KIcon::Application;
else if ( contextStr == TQString::fromLatin1( "Actions" ) )
context = KIcon::Action;
else if ( contextStr == QString::fromLatin1( "Animations" ) )
context = KIcon::Animation;
else if ( contextStr == QString::fromLatin1( "Categories" ) )
context = KIcon::Category;
else if ( contextStr == QString::fromLatin1( "Emblems" ) )
context = KIcon::Emblem;
else if ( contextStr == QString::fromLatin1( "Emotes" ) )
context = KIcon::Emote;
else if ( contextStr == QString::fromLatin1( "International" ) )
context = KIcon::International;
else if ( contextStr == QString::fromLatin1( "Places" ) )
context = KIcon::Place;
else if ( contextStr == QString::fromLatin1( "Status" ) )
context = KIcon::StatusIcon;
KIconDialog dlg(0, "icon dialog");
kapp->setTopWidget( &dlg );

@ -972,6 +972,13 @@ TQStringList HALBackend::mountoptions(const TQString &name)
result << tmp;
}
if ( valids.contains("locale") )
{
value = config.readBoolEntry( "locale", true );
tmp = QString( "locale=%1" ).arg( value ? "true" : "false" );
result << tmp;
}
if (valids.contains("utf8"))
{
value = config.readBoolEntry("utf8", true);
@ -1056,7 +1063,7 @@ bool HALBackend::setMountoptions(const TQString &name, const TQStringList &optio
TQMap<TQString,TQString> valids = MediaManagerUtils::splitOptions(options);
const char *names[] = { "ro", "quiet", "atime", "uid", "utf8", "flush", "sync", 0 };
const char *names[] = { "ro", "quiet", "atime", "uid", "utf8", "flush", "sync", "locale", 0 };
for (int index = 0; names[index]; ++index)
if (valids.contains(names[index]))
config.writeEntry(names[index], valids[names[index]] == "true");
@ -1076,6 +1083,10 @@ bool HALBackend::setMountoptions(const TQString &name, const TQStringList &optio
config.writeEntry("automount", valids["automount"]);
}
if (valids.contains("locale") ) {
config.writeEntry("locale", valids["locale"]);
}
return true;
}
@ -1425,6 +1436,11 @@ TQString HALBackend::mount(const Medium *medium)
soptions << TQString("uid=%1").arg(getuid());
}
if (valids["locale"] == "true")
{
soptions << QString("locale=%1").arg( KGlobal::locale()->language() );
}
if (valids["ro"] == "true")
soptions << "ro";

Loading…
Cancel
Save