[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/work/kde4/kdebase/kcontrol/kded
From:       Wilco Greven <greven () kde ! org>
Date:       2005-05-26 9:15:53
Message-ID: 1117098953.782628.21269.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 418312 by wgreven:

Fix Q3GroupBox layout. Use DCOPCString and DCOPCStringList appropriately.


 M  +10 -11    kcmkded.cpp  


--- branches/work/kde4/kdebase/kcontrol/kded/kcmkded.cpp #418311:418312
@@ -72,8 +72,7 @@
 
 	QVBoxLayout *lay = new QVBoxLayout( this, 0, KDialog::spacingHint() );
 
-	Q3GroupBox *gb = new Q3GroupBox(i18n("Load-on-Demand Services"), this );
-	gb->setOrientation(Qt::Vertical);
+	Q3GroupBox *gb = new Q3GroupBox(1, Qt::Vertical, i18n("Load-on-Demand Services"), this );
 	Q3WhatsThis::add(gb, i18n("This is a list of available KDE services which will "
 			"be started on demand. They are only listed for convenience, as you "
 			"cannot manipulate these services."));
@@ -86,7 +85,7 @@
 	_lvLoD->setAllColumnsShowFocus(true);
 	_lvLoD->header()->setStretchEnabled(true, 1);
 
- 	gb = new Q3GroupBox(i18n("Startup Services"), this );
+ 	gb = new Q3GroupBox(1, Qt::Vertical, i18n("Startup Services"), this );
 	gb->setOrientation(Qt::Vertical);
 	Q3WhatsThis::add(gb, i18n("This shows all KDE services that can be loaded "
 				"on KDE startup. Checked services will be invoked on next startup. "
@@ -231,8 +230,8 @@
 
 void KDEDConfig::getServiceStatus()
 {
-	QList<Q3CString> modules;
-	Q3CString replyType;
+	DCOPCStringList modules;
+	DCOPCString replyType;
 	QByteArray replyData;
 
 
@@ -256,15 +255,15 @@
                 it.current()->setText(2, NOT_RUNNING);
 	for( Q3ListViewItemIterator it( _lvStartup); it.current() != 0; ++it )
                 it.current()->setText(3, NOT_RUNNING);
-	for ( QList<Q3CString>::Iterator it = modules.begin(); it != modules.end(); ++it )
+	foreach( DCOPCString module, modules )
 	{
-		Q3ListViewItem *item = _lvLoD->findItem(*it, 4);
+		Q3ListViewItem *item = _lvLoD->findItem(module, 4);
 		if ( item )
 		{
 			item->setText(2, RUNNING);
 		}
 
-		item = _lvStartup->findItem(*it, 4);
+		item = _lvStartup->findItem(module, 4);
 		if ( item )
 		{
 			item->setText(3, RUNNING);
@@ -311,10 +310,10 @@
 
 void KDEDConfig::slotStartService()
 {
-	Q3CString service = _lvStartup->currentItem()->text(4).latin1();
+	DCOPCString service = _lvStartup->currentItem()->text(4).latin1();
 
 	QByteArray data, replyData;
-	Q3CString replyType;
+	DCOPCString replyType;
 	QDataStream arg( &data, QIODevice::WriteOnly );
 	arg << service;
 	if (kapp->dcopClient()->call( "kded", "kded", "loadModule(QCString)", data, replyType, replyData ) ) {
@@ -338,7 +337,7 @@
 
 void KDEDConfig::slotStopService()
 {
-	Q3CString service = _lvStartup->currentItem()->text(4).latin1();
+	DCOPCString service = _lvStartup->currentItem()->text(4).latin1();
 	kdDebug() << "Stopping: " << service << endl;
 	QByteArray data;
 	QDataStream arg( &data, QIODevice::WriteOnly );
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic