Typelocking

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1164527 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 14 years ago
parent a525727406
commit 54241a1f0a

@ -111,12 +111,22 @@ bool KBufferedIO::setBufferSize(int rsize, int wsize /* = -2 */)
return true;
}
#ifdef USE_QT3
int KBufferedIO::bytesAvailable() const
#endif // USE_QT3
#ifdef USE_QT4
qint64 KBufferedIO::bytesAvailable() const
#endif // USE_QT4
{
return readBufferSize();
}
#ifdef USE_QT3
int KBufferedIO::bytesToWrite() const
#endif // USE_QT3
#ifdef USE_QT4
qint64 KBufferedIO::bytesToWrite() const
#endif // USE_QT4
{
return writeBufferSize();
}

@ -1178,7 +1178,7 @@ bool KConfigBackEnd::checkConfigFilesWritable(bool warnUser)
if (!cmdToExec.isEmpty() && app)
{
KProcess lprocess;
lprocess << cmdToExec << "--title" << app->instanceName() << "--msgbox" << errorMsg.local8Bit();
lprocess << cmdToExec << "--title" << app->instanceName() << "--msgbox" << TQCString(errorMsg.local8Bit());
lprocess.start( KProcess::Block );
}
}

@ -222,7 +222,12 @@ KExtendedSocket::~KExtendedSocket()
delete d;
}
#ifdef USE_QT3
void KExtendedSocket::reset()
#endif // USE_QT3
#ifdef USE_QT4
bool KExtendedSocket::reset()
#endif // USE_QT4
{
closeNow();
release();
@ -1552,7 +1557,12 @@ int KExtendedSocket::unreadBlock(const char *, uint)
return -1;
}
#ifdef USE_QT3
int KExtendedSocket::bytesAvailable() const
#endif // USE_QT3
#ifdef USE_QT4
qint64 KExtendedSocket::bytesAvailable() const
#endif // USE_QT4
{
if (d->status < connected || d->flags & passiveSocket)
return -2;

@ -54,10 +54,10 @@ void KGlobalAccel::clear()
{ d->clearActions(); }
*/
KAccelActions& KGlobalAccel::actions()
{ return d->actions(); }
{ return d->KAccelBase::actions(); }
const KAccelActions& KGlobalAccel::actions() const
{ return d->actions(); }
{ return d->KAccelBase::actions(); }
bool KGlobalAccel::isEnabled()
{ return ((KAccelBase*)d)->isEnabled(); }
@ -95,7 +95,7 @@ bool KGlobalAccel::remove( const TQString& sAction )
const KShortcut& KGlobalAccel::shortcut( const TQString& sAction ) const
{
const KAccelAction* pAction = d->actions().actionPtr( sAction );
const KAccelAction* pAction = d->KAccelBase::actions().actionPtr( sAction );
return (pAction) ? pAction->shortcut() : KShortcut::null();
}
@ -105,7 +105,7 @@ bool KGlobalAccel::setSlot( const TQString& sAction, const TQObject* pObjSlot, c
{ return d->setActionSlot( sAction, pObjSlot, psMethodSlot ); }
TQString KGlobalAccel::label( const TQString& sAction ) const
{
const KAccelAction* pAction = d->actions().actionPtr( sAction );
const KAccelAction* pAction = d->KAccelBase::actions().actionPtr( sAction );
return (pAction) ? pAction->label() : TQString();
}
bool KGlobalAccel::setActionEnabled( const TQString& sAction, bool bEnable )

@ -431,7 +431,7 @@ void KGlobalAccelPrivate::activate( KAccelAction* pAction, const KKeySequence& s
void KGlobalAccelPrivate::slotActivated( int iAction )
{
KAccelAction* pAction = actions().actionPtr( iAction );
KAccelAction* pAction = KAccelBase::actions().actionPtr( iAction );
if( pAction )
activate( pAction, KKeySequence() );
}

@ -2077,12 +2077,22 @@ void KLocale::initFileNameEncoding(KConfig *)
// which, on Unix platforms, use the locale's codec.
}
#ifdef USE_QT3
TQCString KLocale::encodeFileNameUTF8( const TQString & fileName )
#endif // USE_QT3
#ifdef USE_QT4
TQByteArray KLocale::encodeFileNameUTF8( const TQString & fileName )
#endif // USE_QT4
{
return fileName.utf8();
}
#ifdef USE_QT3
TQString KLocale::decodeFileNameUTF8( const TQCString & localFileName )
#endif // USE_QT3
#ifdef USE_QT4
TQString KLocale::decodeFileNameUTF8( const TQByteArray & localFileName )
#endif // USE_QT4
{
return TQString::fromUtf8(localFileName);
}

@ -1221,12 +1221,22 @@ private:
/**
* @internal A TQFile filename encoding function (TQFile::encodeFn).
*/
#ifdef USE_QT3
static TQCString encodeFileNameUTF8( const TQString & fileName );
#endif // USE_QT3
#ifdef USE_QT4
static TQByteArray encodeFileNameUTF8( const TQString & fileName );
#endif // USE_QT4
/**
* @internal TQFile filename decoding function (TQFile::decodeFn).
*/
#ifdef USE_QT3
static TQString decodeFileNameUTF8( const TQCString & localFileName );
#endif // USE_QT3
#ifdef USE_QT4
static TQString decodeFileNameUTF8( const TQByteArray & localFileName );
#endif // USE_QT4
/**
* @internal Changes the file name of the catalog to the correct

Loading…
Cancel
Save