systemsettings/accindicatorplugin/src/accindicator.cpp
changeset 76 f5642d05cce0
parent 49 76883296a0d5
--- a/systemsettings/accindicatorplugin/src/accindicator.cpp	Fri Sep 17 08:30:44 2010 +0300
+++ b/systemsettings/accindicatorplugin/src/accindicator.cpp	Mon Oct 04 00:28:21 2010 +0300
@@ -96,8 +96,6 @@
         // If it is 3-pole ( i.e., HeadSet or TTY ) and TV-Out enable the handleInteraction() to change the settings.
         if(mAccMode == EAccModeWiredHeadset || mAccMode == EAccModeWirelessHeadset || mAccMode == EAccModeTextDevice || mAccMode == EAccModeTVOut )
             {
-            QObject::connect( &mProcess, SIGNAL(error(QProcess::ProcessError)),                       
-                              this, SLOT(processError(QProcess::ProcessError)));
 
             QVariant mode,type;
             mode.setValue((int)mAccMode); 
@@ -106,7 +104,8 @@
             mArgs.append(type.toString());
             
             // Launch the process to show the view.
-            mProcess.start("accindicatorsettings" , mArgs);
+            QString program("z://sys//bin//accindicatorsettings.exe");
+		        QProcess::startDetached(program,mArgs);
             handled = true;
             }
         }
@@ -128,7 +127,7 @@
             return type;
             }
         //for displaying the icon in indicator.
-        case MonoDecorationNameRole:
+        case DecorationNameRole:
             {
             QString iconName;
             if(mAccType == KPCWired || mAccType == KPCUSB)
@@ -228,23 +227,3 @@
             mDisplayName.append(QString("Unknown"));
         }
     }
-
-// ----------------------------------------------------------------------------
-// AccIndicator::processError
-// handle the error conditions reurned by the QProcess.
-// ----------------------------------------------------------------------------
-
-void AccIndicatorPlugin::processError(QProcess::ProcessError err)
-    {
-    switch (err) {   
-        case QProcess::FailedToStart: 
-        case QProcess::Crashed: 
-        case QProcess::Timedout: 
-        case QProcess::ReadError: 
-        case QProcess::WriteError: 
-        case QProcess::UnknownError:
-             break;  
-        default:
-            break;
-        }
-    }