Remove qt3_support into qstring
svn path=/trunk/KDE/kdebase/workspace/; revision=463544
This commit is contained in:
parent
2fd363c03d
commit
5de42c4b68
6 changed files with 17 additions and 17 deletions
|
@ -1111,7 +1111,7 @@ void Client::killProcess( bool ask, Time timestamp )
|
|||
process_killer = new KProcess( this );
|
||||
*process_killer << KStandardDirs::findExe( "kwin_killer_helper" )
|
||||
<< "--pid" << QByteArray().setNum( pid ) << "--hostname" << machine
|
||||
<< "--windowname" << caption().utf8()
|
||||
<< "--windowname" << caption().toUtf8()
|
||||
<< "--applicationname" << resourceClass()
|
||||
<< "--wid" << QString::number( window() )
|
||||
<< "--timestamp" << QString::number( timestamp );
|
||||
|
@ -1329,7 +1329,7 @@ void Client::setCaption( const QString& _s, bool force )
|
|||
cap_suffix = machine_suffix + " <" + QString::number(i) + ">" + shortcut_suffix;
|
||||
i++;
|
||||
} while ( workspace()->findClient( FetchNameInternalPredicate( this )));
|
||||
info->setVisibleName( caption().utf8() );
|
||||
info->setVisibleName( caption().toUtf8() );
|
||||
reset_name = false;
|
||||
}
|
||||
if(( was_suffix && cap_suffix.isEmpty()
|
||||
|
@ -1339,7 +1339,7 @@ void Client::setCaption( const QString& _s, bool force )
|
|||
info->setVisibleIconName( "" ); // remove
|
||||
}
|
||||
else if( !cap_suffix.isEmpty() && !cap_iconic.isEmpty()) // keep the same suffix in iconic name if it's set
|
||||
info->setVisibleIconName( ( cap_iconic + cap_suffix ).utf8() );
|
||||
info->setVisibleIconName( ( cap_iconic + cap_suffix ).toUtf8() );
|
||||
|
||||
if( isManaged() && decoration != NULL )
|
||||
decoration->captionChange();
|
||||
|
@ -1365,7 +1365,7 @@ void Client::fetchIconicName()
|
|||
if( !cap_suffix.isEmpty())
|
||||
{
|
||||
if( !cap_iconic.isEmpty()) // keep the same suffix in iconic name if it's set
|
||||
info->setVisibleIconName( ( s + cap_suffix ).utf8() );
|
||||
info->setVisibleIconName( ( s + cap_suffix ).toUtf8() );
|
||||
else if( was_set )
|
||||
info->setVisibleIconName( "" ); //remove
|
||||
}
|
||||
|
|
|
@ -113,7 +113,7 @@ RulesWidget::RulesWidget( QWidget* parent, const char* name )
|
|||
for( i = 1;
|
||||
i <= module.numberOfDesktops();
|
||||
++i )
|
||||
desktop->insertItem( QString::number( i ).rightJustify( 2 ) + ":" + module.desktopName( i ));
|
||||
desktop->insertItem( QString::number( i ).rightJustified( 2 ) + ":" + module.desktopName( i ));
|
||||
desktop->insertItem( i18n( "All Desktops" ));
|
||||
}
|
||||
|
||||
|
@ -460,10 +460,10 @@ Rules* RulesWidget::rules() const
|
|||
{
|
||||
Rules* rules = new Rules();
|
||||
rules->description = description->text();
|
||||
rules->wmclass = wmclass->text().utf8();
|
||||
rules->wmclass = wmclass->text().toUtf8();
|
||||
rules->wmclasscomplete = whole_wmclass->isChecked();
|
||||
rules->wmclassmatch = static_cast< Rules::StringMatch >( wmclass_match->currentItem());
|
||||
rules->windowrole = role->text().utf8();
|
||||
rules->windowrole = role->text().toUtf8();
|
||||
rules->windowrolematch = static_cast< Rules::StringMatch >( role_match->currentItem());
|
||||
rules->types = 0;
|
||||
bool all_types = true;
|
||||
|
@ -489,9 +489,9 @@ Rules* RulesWidget::rules() const
|
|||
}
|
||||
rules->title = title->text();
|
||||
rules->titlematch = static_cast< Rules::StringMatch >( title_match->currentItem());
|
||||
rules->extrarole = extra->text().utf8();
|
||||
rules->extrarole = extra->text().toUtf8();
|
||||
rules->extrarolematch = static_cast< Rules::StringMatch >( extra_match->currentItem());
|
||||
rules->clientmachine = machine->text().utf8();
|
||||
rules->clientmachine = machine->text().toUtf8();
|
||||
rules->clientmachinematch = static_cast< Rules::StringMatch >( machine_match->currentItem());
|
||||
LINEEDIT_SET_RULE( position, strToPosition );
|
||||
LINEEDIT_SET_RULE( size, strToSize );
|
||||
|
|
8
main.cpp
8
main.cpp
|
@ -59,7 +59,7 @@ int x11ErrorHandler(Display *d, XErrorEvent *e)
|
|||
)
|
||||
&& (e->error_code == BadAccess))
|
||||
{
|
||||
fputs(i18n("kwin: it looks like there's already a window manager running. kwin not started.\n").local8Bit(), stderr);
|
||||
fputs(i18n("kwin: it looks like there's already a window manager running. kwin not started.\n").toLocal8Bit(), stderr);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
@ -74,7 +74,7 @@ int x11ErrorHandler(Display *d, XErrorEvent *e)
|
|||
|
||||
if (initting)
|
||||
{
|
||||
fputs(i18n("kwin: failure during initialization; aborting").local8Bit(), stderr);
|
||||
fputs(i18n("kwin: failure during initialization; aborting").toLocal8Bit(), stderr);
|
||||
exit(1);
|
||||
}
|
||||
return 0;
|
||||
|
@ -95,7 +95,7 @@ Application::Application( )
|
|||
|
||||
if( !owner.claim( args->isSet( "replace" ), true ))
|
||||
{
|
||||
fputs(i18n("kwin: unable to claim manager selection, another wm running? (try using --replace)\n").local8Bit(), stderr);
|
||||
fputs(i18n("kwin: unable to claim manager selection, another wm running? (try using --replace)\n").toLocal8Bit(), stderr);
|
||||
::exit(1);
|
||||
}
|
||||
connect( &owner, SIGNAL( lostOwnership()), SLOT( lostSelection()));
|
||||
|
@ -211,7 +211,7 @@ KDE_EXPORT int kdemain( int argc, char * argv[] )
|
|||
XCloseDisplay( dpy );
|
||||
dpy = 0;
|
||||
|
||||
if ((pos = display_name.findRev('.')) != -1 )
|
||||
if ((pos = display_name.lastIndexOf('.')) != -1 )
|
||||
display_name.remove(pos,10); // 10 is enough to be sure we removed ".s"
|
||||
|
||||
QString envir;
|
||||
|
|
|
@ -30,7 +30,7 @@ PluginMgr::PluginMgr()
|
|||
void PluginMgr::error( const QString &error_msg )
|
||||
{
|
||||
qWarning( "%s", (i18n("KWin: ") + error_msg +
|
||||
i18n("\nKWin will now exit...")).local8Bit().data() );
|
||||
i18n("\nKWin will now exit...")).toLocal8Bit().data() );
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
|
|
@ -71,7 +71,7 @@ Rules::Rules( const QString& str, bool temporary )
|
|||
QFile* f = file.file();
|
||||
if( f != NULL )
|
||||
{
|
||||
QByteArray s = str.utf8();
|
||||
QByteArray s = str.toUtf8();
|
||||
f->writeBlock( s.data(), s.length());
|
||||
}
|
||||
file.close();
|
||||
|
|
|
@ -919,7 +919,7 @@ void Workspace::loadDesktopSettings()
|
|||
{
|
||||
QString s = c->readEntry(QString("Name_%1").arg(i),
|
||||
i18n("Desktop %1").arg(i));
|
||||
rootInfo->setDesktopName( i, s.utf8().data() );
|
||||
rootInfo->setDesktopName( i, s.toUtf8().data() );
|
||||
desktop_focus_chain[i-1] = i;
|
||||
}
|
||||
}
|
||||
|
@ -942,7 +942,7 @@ void Workspace::saveDesktopSettings()
|
|||
if ( s.isEmpty() )
|
||||
{
|
||||
s = defaultvalue;
|
||||
rootInfo->setDesktopName( i, s.utf8().data() );
|
||||
rootInfo->setDesktopName( i, s.toUtf8().data() );
|
||||
}
|
||||
|
||||
if (s != defaultvalue)
|
||||
|
|
Loading…
Reference in a new issue