QString::null->QString()
.clear() etc svn path=/trunk/KDE/kdebase/workspace/; revision=493536
This commit is contained in:
parent
9d896a7b4e
commit
a48328e5bc
9 changed files with 16 additions and 16 deletions
|
@ -232,7 +232,7 @@ void MyButton::drawButtonLabel(QPainter *p)
|
|||
(pixmap()->height() >= height()))) ? 1 : 0;
|
||||
style().drawItem(p, QRect( offset, offset, width(), height() ),
|
||||
AlignCenter, colorGroup(),
|
||||
true, pixmap(), QString::null);
|
||||
true, pixmap(), QString());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -98,7 +98,7 @@ class KWinDecorationModule : public KCModule, virtual public KWinDecorationIface
|
|||
QString decorationLibName( const QString& name );
|
||||
QString decorationName ( QString& libName );
|
||||
static QString styleToConfigLib( QString& styleLib );
|
||||
void resetPlugin( KConfig* conf, const QString& currentDecoName = QString::null );
|
||||
void resetPlugin( KConfig* conf, const QString& currentDecoName = QString() );
|
||||
void resetKWin();
|
||||
void checkSupportedBorderSizes();
|
||||
static int borderSizeToIndex( BorderSize size, QList< BorderSize > sizes );
|
||||
|
|
|
@ -443,8 +443,8 @@ KDecorationPreviewOptions::KDecorationPreviewOptions()
|
|||
customBorderSize = BordersCount; // invalid
|
||||
customButtonsChanged = false; // invalid
|
||||
customButtons = true;
|
||||
customTitleButtonsLeft = QString::null; // invalid
|
||||
customTitleButtonsRight = QString::null; // invalid
|
||||
customTitleButtonsLeft.clear(); // invalid
|
||||
customTitleButtonsRight.clear(); // invalid
|
||||
|
||||
d = new KDecorationOptionsPrivate;
|
||||
d->defaultKWinSettings();
|
||||
|
|
|
@ -205,7 +205,7 @@ static const Rules::ForceRule combo_to_force_rule[] =
|
|||
static QString positionToStr( const QPoint& p )
|
||||
{
|
||||
if( p == invalidPoint )
|
||||
return QString::null;
|
||||
return QString();
|
||||
return QString::number( p.x()) + "," + QString::number( p.y());
|
||||
}
|
||||
|
||||
|
@ -220,7 +220,7 @@ static QPoint strToPosition( const QString& str )
|
|||
static QString sizeToStr( const QSize& s )
|
||||
{
|
||||
if( !s.isValid())
|
||||
return QString::null;
|
||||
return QString();
|
||||
return QString::number( s.width()) + "," + QString::number( s.height());
|
||||
}
|
||||
|
||||
|
@ -236,7 +236,7 @@ static QSize strToSize( const QString& str )
|
|||
static QString intToStr( const int& s )
|
||||
{
|
||||
if( s < 1 || s > 100 )
|
||||
return QString::null;
|
||||
return QString();
|
||||
return QString::number(s);
|
||||
}
|
||||
|
||||
|
@ -717,7 +717,7 @@ void RulesDialog::displayHints()
|
|||
str += "</p><p>" + i18n( "Consult the documentation for more details." );
|
||||
#endif
|
||||
str += "</p></qt>";
|
||||
KMessageBox::information( this, str, QString::null, "displayhints" );
|
||||
KMessageBox::information( this, str, QString(), "displayhints" );
|
||||
}
|
||||
|
||||
void RulesDialog::accept()
|
||||
|
|
|
@ -74,7 +74,7 @@ int main( int argc, char* argv[] )
|
|||
"Do you wish to terminate this application? (All unsaved data in this application will be lost.)</qt>" )
|
||||
.arg( appname ).arg( caption ).arg( pid ).arg( QString( hostname ) );
|
||||
app.updateUserTimestamp( timestamp );
|
||||
if( KMessageBox::warningYesNoWId( id, question, QString::null, i18n("Terminate"), i18n("Keep Running") ) == KMessageBox::Yes )
|
||||
if( KMessageBox::warningYesNoWId( id, question, QString(), i18n("Terminate"), i18n("Keep Running") ) == KMessageBox::Yes )
|
||||
{
|
||||
if( hostname != "localhost" )
|
||||
{
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
#ifndef NOSLOTS
|
||||
# define DEF2( name, descr, key, fnSlot ) \
|
||||
keys->insert( name, i18n(descr), QString::null, key, this, SLOT(fnSlot) )
|
||||
keys->insert( name, i18n(descr), QString(), key, this, SLOT(fnSlot) )
|
||||
# define DEF( name, key, fnSlot ) \
|
||||
keys->insert( name, i18n(name), QString::null, key, this, SLOT(fnSlot) )
|
||||
keys->insert( name, i18n(name), QString(), key, this, SLOT(fnSlot) )
|
||||
#else
|
||||
# define DEF2( name, descr, key, fnSlot ) \
|
||||
keys->insert( name, i18n(descr), QString::null, key )
|
||||
keys->insert( name, i18n(descr), QString(), key )
|
||||
# define DEF( name, key, fnSlot ) \
|
||||
keys->insert( name, i18n(name), QString::null, key )
|
||||
keys->insert( name, i18n(name), QString(), key )
|
||||
#endif
|
||||
|
||||
#define WIN Qt::META
|
||||
|
|
|
@ -134,7 +134,7 @@ bool Client::manage( Window w, bool isMapped )
|
|||
setUserNoBorder( true );
|
||||
}
|
||||
|
||||
setShortcut( rules()->checkShortcut( session ? session->shortcut : QString::null, true ));
|
||||
setShortcut( rules()->checkShortcut( session ? session->shortcut : QString(), true ));
|
||||
|
||||
init_minimize = rules()->checkMinimize( init_minimize, !isMapped );
|
||||
if( rules()->checkNoBorder( false, !isMapped ))
|
||||
|
|
|
@ -50,7 +50,7 @@ class Notify
|
|||
DesktopChange = 100
|
||||
};
|
||||
|
||||
static bool raise( Event, const QString& message = QString::null, Client* c = NULL );
|
||||
static bool raise( Event, const QString& message = QString(), Client* c = NULL );
|
||||
static bool makeDemandAttention( Event );
|
||||
static void sendPendingEvents();
|
||||
private:
|
||||
|
|
|
@ -551,7 +551,7 @@ void Workspace::removeClient( Client* c, allowed_t )
|
|||
if( client_keys_client == c )
|
||||
setupWindowShortcutDone( false );
|
||||
if( !c->shortcut().isNull())
|
||||
c->setShortcut( QString::null ); // remove from client_keys
|
||||
c->setShortcut( QString() ); // remove from client_keys
|
||||
|
||||
if( c->isDialog())
|
||||
Notify::raise( Notify::TransDelete );
|
||||
|
|
Loading…
Reference in a new issue