void Ut_WallpaperEditorSheet::testConstruct () { WallpaperEditorSheet *sheet = new WallpaperEditorSheet (m_BusinessLogic); QVERIFY (!sheet->m_Saving); SYS_DEBUG ("*** doneActivated *************"); sheet->doneActivated (); QVERIFY (sheet->m_Saving); SYS_DEBUG ("*** wallpaperSaved ************"); sheet->wallpaperSaved (); QVERIFY (!sheet->m_Saving); SYS_DEBUG ("*** cancelActivated ***********"); sheet->cancelActivated (); }
int system ( const char *command) { SYS_DEBUG ("*** command = %s", command); lastExecutedCommand = command; return commandSuccess; }
/* * Overloaded version that accepts integer for paramater. */ QVariant AlertToneAppletMaps::mapToUiString ( int integer) { const QString translated = qtTrId (AlertToneAppletMaps::map (integer)); SYS_DEBUG ("%d -> %s", SYS_STR (integer), SYS_STR (translated)); return QVariant (translated); }
void AlertTonePreview::rewind () { SYS_DEBUG (""); if (!gst_element_seek_simple ( m_gstPipeline, GST_FORMAT_TIME, (GstSeekFlags) (GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_KEY_UNIT), 0l)) SYS_WARNING ("seek failed"); }
void UtThemeListModelPrivate::dataChanged ( const QModelIndex &first, const QModelIndex &last) { SYS_DEBUG (""); m_FirstChanged = first; m_LastChanged = last; }
SYS_STATUS DRV_USART_Status( SYS_MODULE_OBJ object) { /* Check if we have a valid object */ if(object == SYS_MODULE_OBJ_INVALID) { SYS_DEBUG(0, "Invalid system object handle"); return(SYS_STATUS_UNINITIALIZED); } if(object > DRV_USART_INSTANCES_NUMBER) { SYS_DEBUG(0, "Invalid system object handle"); return(SYS_STATUS_UNINITIALIZED); } /* Return the system status of the hardware instance object */ return (gDrvUSARTObj[object].status); }
SliderContainer::SliderContainer ( MWidget *parent) : MWidgetController (parent), m_PSMSlider (0), m_SliderExists (false) { SYS_DEBUG (""); createWidgets (parent); }
DvevmStRetCode dvtb_DVREncDecMpeg4spDec2ProcessOutBuff(DvevmStThreadInfo *T, DvevmStMPEG4SPDecInfo *vd, FILE *fp, DvevmStBool fileBased, int nFrames, int *displayFrame) { int validOutIds = 0, frames = 0; DvevmStRetCode retCode = DVEVM_ST_SUCCESS; frames = *displayFrame; //Check for Frame ready via outputID array and display buffer pointers validOutIds = 0; while(vd->mpeg4sp_vdecOutArgs.viddecOutArgs.outputID[validOutIds] > 0) { SYS_DEBUG("Valid output id = %d\n",validOutIds); if(DVEVM_ST_TRUE == fileBased) { SYS_DEBUG("Frame #%d, OutputId %d.\n", nFrames, (int)vd->mpeg4sp_vdecOutArgs.viddecOutArgs.outputID[validOutIds]); if(DVEVM_ST_FAIL == dvtb_DVREncDecMpeg4spDec2WriteOutputData(&vd->mpeg4sp_vdecOutArgs.viddecOutArgs.displayBufs[validOutIds], fp)) { SYS_ERROR("Unable to Dump frame # %d. \n",frames); retCode = DVEVM_ST_FAIL; break; } SYS_OUT("Dumped Frame# <%d>.\n", frames); frames++; } else { if(DVEVM_ST_FAIL == dvtb_DVREncDecMpeg4spDec2DisplayOutputData(T, (char *)vd->mpeg4sp_vdecOutArgs.viddecOutArgs.displayBufs[validOutIds].bufDesc[0].buf, vd->mpeg4sp_vdecOutArgs.viddecOutArgs.displayBufs[validOutIds].bufDesc[0].bufSize)) { SYS_ERROR("Unable to display frame # %d .\n",frames); retCode = DVEVM_ST_FAIL; break; } SYS_OUT("Displayed Frame# %d.\n", frames); frames++; } validOutIds++; } *displayFrame = frames; return retCode; }
/*! * This test will go around and check the data it finds in the model. The data * that is actually there created by our stub implementations... */ void Ut_ThemeListModel::testAvailableThemes () { QModelIndex index; QString dataDisplayRole, dataSearchRole, dataCodeNameRole; QString dataNameRole, dataIconNameRole, dataChangingNameRole; int rows = m_Api->rowCount (); QVariant data; SYS_DEBUG ("*** rows = %d", rows); // This much theme is stored in the stub we use. QVERIFY (rows == 2); index = m_Api->index (0, 0); dataDisplayRole = m_Api->data (index, Qt::DisplayRole).toString(); dataSearchRole = m_Api->data (index, ThemeListModel::SearchRole).toString(); dataCodeNameRole = m_Api->data (index, ThemeListModel::CodeNameRole).toString(); dataNameRole = m_Api->data (index, ThemeListModel::NameRole).toString(); dataIconNameRole = m_Api->data (index, ThemeListModel::IconNameRole).toString(); dataChangingNameRole = m_Api->data (index, ThemeListModel::ChangingNameRole).toString(); SYS_DEBUG ("*** dataDisplayRole = %s", SYS_STR(dataDisplayRole)); SYS_DEBUG ("*** dataSearchRole = %s", SYS_STR(dataSearchRole)); SYS_DEBUG ("*** dataCodeNameRole = %s", SYS_STR(dataCodeNameRole)); SYS_DEBUG ("*** dataNameRole = %s", SYS_STR(dataNameRole)); SYS_DEBUG ("*** dataIconNameRole = %s", SYS_STR(dataIconNameRole)); SYS_DEBUG ("*** dataChangingNameRole = %s", SYS_STR(dataChangingNameRole)); QVERIFY (dataDisplayRole == NAMEDesktopFilePerfect); QVERIFY (dataSearchRole == NAMEDesktopFilePerfect); QVERIFY (dataCodeNameRole == CODENAMEDesktopFilePerfect); QVERIFY (dataNameRole == NAMEDesktopFilePerfect); QVERIFY (dataChangingNameRole.isEmpty()); /* * Invalid role. */ data = m_Api->data (index, ThemeListModel::ChangingNameRole + 12); QVERIFY (!data.isValid()); /* * Invalid index. */ index = m_Api->index (100, 100); data = m_Api->data (index, Qt::DisplayRole); QVERIFY (!data.isValid()); /* * Finding an index by the theme code name. */ index = m_Api->indexOfCodeName (CODENAMEDesktopFilePerfect); QVERIFY (index.isValid()); QVERIFY (index.row() == 0); dataCodeNameRole = m_Api->data ( index, ThemeListModel::CodeNameRole).toString(); QVERIFY (dataCodeNameRole == CODENAMEDesktopFilePerfect); }
DvevmStRetCode dvtb_jpegDec1Init(DvevmStJpegDec1Info *jpeg1) { DvevmStRetCode retCode = DVEVM_ST_SUCCESS; ASSERT(jpeg1 != NULL); ASSERT(jpeg1->ceHdl != NULL); ASSERT(jpeg1->idec1Name[0] != 0); jpeg1->idec1Cmd = XDM_SETPARAMS; dvtb_jpegDec1InitDebug(&jpeg1->idec1Params); if (NULL == (jpeg1->idec1Hdl = IMGDEC1_create(jpeg1->ceHdl, jpeg1->idec1Name, (IIMGDEC1_Params *) &jpeg1->idec1Params))) { SYS_ERROR("Unable to initialize JPEG Decoder\n"); retCode = DVEVM_ST_FAIL; } else { if (DVEVM_ST_FAIL == dvtb_jpegDec1Control(jpeg1)) { SYS_ERROR("Unable to set JPEG Decoder dynamic parameters\n"); retCode = DVEVM_ST_FAIL; } else { jpeg1->idec1Cmd = XDM_GETBUFINFO; if (DVEVM_ST_FAIL == dvtb_jpegDec1Control(jpeg1)) { SYS_ERROR("Unable to get buffer info\n"); retCode = DVEVM_ST_FAIL; } else if (DVEVM_ST_FAIL == dvtb_allocCmemSingleChunk(&jpeg1->inBuf)) { SYS_ERROR("Unable to allocate memory for input buffer\n"); retCode = DVEVM_ST_FAIL; } else if (DVEVM_ST_FAIL == dvtb_allocCmemSingleChunk(&jpeg1->outBuf)) { SYS_ERROR("Unable to allocate memory for output buffer\n"); retCode = DVEVM_ST_FAIL; } else { SYS_DEBUG("JPEG Decoder <%s> initialized\n", jpeg1->idec1Name); dvtb_jpegDec1InitDebug(&jpeg1->idec1Params); } } } if (DVEVM_ST_FAIL == retCode) dvtb_jpegDec1Cleanup(jpeg1); return retCode; }
HRESULT memTest(uint32 type, uint32 baseAddr, uint32 rangeSize, uint32 bitWidth, uint32 step, BOOL verbose) { HRESULT hResult = NO_ERROR; uint32 i; uint32 tests = 0; uint32 width = 0; uint32 error = 0; uint32 mask = 0; switch (bitWidth) { case MEM_TEST_8_BIT: case MEM_TEST_16_BIT: case MEM_TEST_32_BIT: width = bitWidth; tests = 1; break; case MEM_TEST_ALL_BIT: width = MEM_TEST_8_BIT; tests = 3; break; default: return E_BAD_INPUT_PARAMETERS; } if (step == 0) step = 4; if (step % 4 != 0) return E_BAD_INPUT_PARAMETERS; if (type == 0) type = TEST_TYPE_ALL; if (verbose) { mask = sysDebugGetEnabled(); sysDebugSetEnabled(SYSDEBUG_TRACE_TESTS); } for (i = 0; i < tests; i++) { error = memTestRun(type, baseAddr, rangeSize, width, step); if (error) { SYS_DEBUG(SYSDEBUG_TRACE_TESTS, "error: 0x%08x\n\r", error); } width *= 2; } if (verbose) { sysDebugSetEnabled(mask); } if (error) hResult = E_FAIL; return hResult; }
/*! * This slot will be called when the device power save mode is changed. The * method will send the PSMValueReceived() signal. */ void BatteryBusinessLogic::PSMStateChanged ( MeeGo::QmDeviceMode::PSMState state) { m_PowerSaveMode = (state == MeeGo::QmDeviceMode::PSMStateOn); SYS_DEBUG ("Emitting PSMValueReceived (%s)", SYS_BOOL (m_PowerSaveMode)); emit PSMValueReceived (m_PowerSaveMode); }
bool QDBusAbstractInterface::callWithCallback ( const QString &method, const QList<QVariant> &args, QObject *receiver, const char *returnMethod, const char *errorMethod) { Q_UNUSED (args); Q_UNUSED (receiver); Q_UNUSED (errorMethod); Q_UNUSED (returnMethod); SYS_DEBUG ("*** method = %s", SYS_STR(method)); SYS_DEBUG ("*** returnMethod = %s", returnMethod); lastCalledMethod = method; return true; }
void dvtb_jpegDec1InitDebug(IJPEGDEC_Params *idp) { SYS_DEBUG("\n<======== JPEG Decoder Params Debug Start ==========>\n"); SYS_DEBUG("Size : %d\n", (int) idp->imgdecParams.size); SYS_DEBUG("Max Height : %d\n", (int) idp->imgdecParams.maxHeight); SYS_DEBUG("Max Width : %d\n", (int) idp->imgdecParams.maxWidth); SYS_DEBUG("Max Scans : %d\n", (int) idp->imgdecParams.maxScans); SYS_DEBUG("Data Endianness : %d\n", (int) idp->imgdecParams.dataEndianness); SYS_DEBUG("Force Chroma Format: %d\n", (int) idp->imgdecParams.forceChromaFormat); SYS_DEBUG("\n<======== JPEG Decoder Params Debug End ============>\n\n"); }
/* * FIXME: This slot is only called when the dialog is accepted... * Re-name this at once... */ void OfflineBrief::processDialogResult () { #ifdef HAVE_QMSYSTEM bool success = m_DevMode->setMode (QmDeviceMode::Normal); SYS_DEBUG ("m_DevMode->setMode (Normal) success: %s", SYS_BOOL (success)); emit valuesChanged(); #endif }
/** * If you consider to call this function multiple times * (for example because you want to update the theme list), * pay attention to freeing ThemeDescriptor objects and * m_ThemeListModel. * * Apparently multiple calls of setItemModel() with the same * model doesn't update MList. * * You also have to deal with disconnection and reconnection of * itemClicked() signal because MList::selectItem() emits that! */ void ThemeWidget::readLocalThemes () { /* * Creating the model and connecting it to the businesslogic so we can show * the spinner while the theme change is in progress. */ m_ThemeListModel = new ThemeListModel (m_ThemeBusinessLogic); m_ThemeListModel->setObjectName ("ThemeListModel"); SYS_DEBUG ("*** m_ThemeListModel = %p", m_ThemeListModel); m_List->setItemModel (m_ThemeListModel); if (m_ThemeBusinessLogic) { connect (m_ThemeBusinessLogic, SIGNAL(themeChangeStarted(QString)), m_ThemeListModel, SLOT(themeChangeStarted(QString))); connect (m_ThemeBusinessLogic, SIGNAL(themeChanged(QString)), m_ThemeListModel, SLOT(themeChanged(QString))); } /* * Enabling the live filter feature for the list. From this moment on the * list will use a QSortFilterProxyModel object as model. */ m_List->filtering()->setEnabled (true); m_List->filtering()->setFilterRole (ThemeListModel::SearchRole); m_Proxy = m_List->filtering()->proxy(); m_Proxy->setSortRole (ThemeListModel::SearchRole); m_Proxy->setSortCaseSensitivity(Qt::CaseInsensitive); // Seems that the sort() method simply will not sort when the // ThemeListModel::SearchRole is used. m_Proxy->sort(Qt::DisplayRole); m_Proxy->setFilterKeyColumn(0); m_LiveFilterEditor = m_List->filtering()->editor(); connect(m_List, SIGNAL(itemClicked(QModelIndex)), this, SLOT(themeActivated(QModelIndex))); SYS_DEBUG ("*** calling selectCurrentTheme()"); selectCurrentTheme (); }
static void dvtb_vidDecInitDebug(VIDDEC_Params *vdp) { SYS_DEBUG("\n<======== Video Decoder Initialize Debug Start ==========>\n"); SYS_DEBUG("Max Height : %d\n", (int) vdp->maxHeight); SYS_DEBUG("Max Width : %d\n", (int) vdp->maxWidth); SYS_DEBUG("Max Frame Rate : %d\n", (int) vdp->maxFrameRate); SYS_DEBUG("Max Bit Rate : %d\n", (int) vdp->maxBitRate); SYS_DEBUG("Endianness : %d\n", (int) vdp->dataEndianness); SYS_DEBUG("Chroma Format : %d\n", (int) vdp->forceChromaFormat); SYS_DEBUG("\n<======== Video Decoder Initialize Debug End ============>\n\n"); }
/*! * This slot is called when the backend returns the PSM value so we have to set * the slider accordingly. */ void SliderContainer::updateSlider (int value) { SYS_DEBUG ("*** value = %d", value); // Store the actual value for later // (eg for the case when slider isn't ready yet...) value = m_SliderValues.indexOf (QString ("%1").arg (value)); if (value >= 0) { m_PSMSlider->setValue (value); } else { SYS_WARNING ("ERROR: got an invalid PSM value: %d", value); foreach (QString str, m_SliderValues) SYS_DEBUG ("Available slider value: %s", SYS_STR (str)); } updateSliderValueLabel (value); }
HRESULT lhlStatusQueueCreate(STATUS_INFO **statusInfo) { HRESULT hResult = NO_ERROR; uint32 index; uint32 ptr; BOOL bFound = FALSE; // exclusive access for the statusInfoQueue (mutex) hResult = TCMutexLock(lhlStatusQueueMutexSemID); if (hResult != NO_ERROR) return hResult; *statusInfo = NULL; // find a free statusInfo from the pool ptr = statusInfoQueue.ptr; for (index = 0; index < STATUS_INFO_ITEMS; index++) { if (statusInfoQueue.allocated[ptr] == FALSE) { *statusInfo = &statusInfoQueue.statusInfo[ptr]; lhlStatusQueueResetInfo(*statusInfo); statusInfoQueue.allocated[ptr] = TRUE; bFound = TRUE; #ifdef _STATISTICS lhlStatistics.statusInfoInuse++; if (lhlStatistics.statusInfoInuseMax < lhlStatistics.statusInfoInuse) { lhlStatistics.statusInfoInuseMax = lhlStatistics.statusInfoInuse; } #endif //_STATISTICS } ptr = (ptr + 1) % STATUS_INFO_ITEMS; if (bFound == TRUE) { statusInfoQueue.ptr = ptr; break; } } if (bFound == FALSE) { SYS_DEBUG(SYSDEBUG_TRACE_WARNINGS, "lhlStatusQueue: No more free status info items\n\r"); hResult = E_NULL_PTR; sysLogError(hResult, __LINE__, moduleName); } // exclusive access for the statusInfoQueue (mutex) TCMutexUnlock(lhlStatusQueueMutexSemID); return hResult; }
void ThemeWidget::themeActivated ( const QModelIndex &index) { QString codeName; ThemeDescriptor *descr = 0; SYS_DEBUG ("*** index at %d, %d", index.row(), index.column()); if (m_ThemeDialog) { SYS_DEBUG ("We already have a dialog, returning."); return; } codeName = m_Proxy->data(index, ThemeListModel::CodeNameRole).toString(); /* * If the user selects the current theme we don't do anything. */ if (codeName == m_ThemeBusinessLogic->currentThemeCodeName()) return; #if 0 /* * For debugging purposes it is possible to leave out the dialog and change * the theme here. */ m_ThemeBusinessLogic->changeTheme (codeName); return; #endif descr = m_ThemeBusinessLogic->themeByCodename (codeName); if (descr == 0) { SYS_CRITICAL("codename not found: %s", SYS_STR(codeName)); return; } m_ThemeDialog = new ThemeDialog (m_ThemeBusinessLogic, descr); connect (m_ThemeDialog, SIGNAL(themeChangeCancelled()), this, SLOT(selectCurrentTheme())); m_ThemeDialog->showDialog (); }
DcpWidget * ThemeApplet::constructWidget ( int widgetId) { static int i = 0; Q_UNUSED(widgetId); SYS_DEBUG ("We are called: %d", i); ++i; return pageMain (); }
/* * We call this function when the whole model needs to be refreshed on the * screen, for example when the highlight is changed because the user typed a * search string. */ void ThemeListModel::refresh() { if (m_ThemeDescList.size() != 0) { QModelIndex first = index (0, 0); QModelIndex last = index (m_ThemeDescList.size() - 1, 0); SYS_DEBUG ("Emitting dataChanged()"); emit dataChanged (first, last); } }
void GridImageLayout::addItem ( QGraphicsLayoutItem *layoutItem, GridImageLayoutRole role) { switch (role) { case Image: SYS_DEBUG ("Adding image"); m_Image = layoutItem; break; case ProgressIndicator: SYS_DEBUG ("Adding progress indicator"); m_ProgressBar = layoutItem; break; } addChildLayoutItem (layoutItem); invalidate (); }
uint32 memTestDataBus32 (volatile uint32 *baseAddr) { uint32 pattern; uint32 read; SYS_DEBUG(SYSDEBUG_TRACE_TESTS, "memTestDataBus32: base:0x%08x\n\r", baseAddr); SYS_DEBUG(SYSDEBUG_TRACE_TESTS, "memTestDataBus32: wr/rd single address with single bit set values\n\r"); for (pattern = 1; pattern != 0; pattern <<= 1 ) { *baseAddr = pattern; if ((read = *baseAddr) != pattern) { SYS_DEBUG(SYSDEBUG_TRACE_TESTS, "memTestDataBus32: ERROR addr:0x%08x expected:0x%08x read:0x%08x\n\r", baseAddr, pattern, read); return ((uint32) baseAddr); } } SYS_DEBUG(SYSDEBUG_TRACE_TESTS, "memTestDataBus32: done\n\r"); return 0; }
void OfflineBrief::devModeChanged ( MeeGo::QmDeviceMode::DeviceMode mode) { #ifdef DEBUG switch (mode) { case MeeGo::QmDeviceMode::Flight: SYS_DEBUG ("mode = Flight mode"); break; case MeeGo::QmDeviceMode::Normal: SYS_DEBUG ("mode = Normal"); break; default: SYS_DEBUG ("mode = Error!!!"); break; } #endif m_LastMode = mode; emit valuesChanged(); }
void ThemeListModel::themeChangeStarted ( QString themeCodeName) { QModelIndex index = indexOfCodeName (themeCodeName); SYS_DEBUG ("*** themeCodeName = %s", SYS_STR(themeCodeName)); m_ChangingTheme = themeCodeName; if (index.isValid()) emit dataChanged (index, index); }
void Ut_AlertToneTests::alerttonesAlertTones() { QList<AlertTone *> tones; tones = AlertTone::alertTones(); for ( int i = 0 ; i <tones.size() ; ++i) { SYS_DEBUG ("%s\n\n\n", SYS_STR (tones[i]->key ())); QVERIFY(checkIfAlarmTone (tones[i]->key()) ); } }
DvevmStRetCode dvtb_MPEG4Enc1Init(DvevmStMPEG4Enc1Info *ve) { DvevmStRetCode retCode = DVEVM_ST_SUCCESS; ASSERT(ve != NULL); ASSERT(ve->ceHdl != NULL); ASSERT(ve->venc1Name[0] != 0); dvtb_MPEG4Enc1InitDebug(&ve->venc1Params); if (NULL == (ve->venc1Hdl = VIDENC1_create(ve->ceHdl, ve->venc1Name, (IVIDENC1_Params *) (&ve->venc1Params)))) { dvtb_MPEG4Enc1InitDebug(&ve->venc1Params); SYS_ERROR("Unable to initialize Video Encoder\n"); retCode = DVEVM_ST_FAIL; } else { ve->venc1Cmd = XDM_GETSTATUS; if (DVEVM_ST_FAIL == dvtb_MPEG4Enc1Control(ve)) { SYS_ERROR("Unable to get status \n"); retCode = DVEVM_ST_FAIL; } else { ve->venc1Cmd = XDM_SETPARAMS; if (DVEVM_ST_FAIL == dvtb_MPEG4Enc1Control(ve)) { SYS_ERROR("Unable to set encoder dynamic parameters\n"); retCode = DVEVM_ST_FAIL; } else { ve->venc1Cmd = XDM_GETBUFINFO; if (DVEVM_ST_FAIL == dvtb_MPEG4Enc1Control(ve)) { SYS_ERROR("Unable to get encoder buffer requirements\n"); retCode = DVEVM_ST_FAIL; } else { SYS_DEBUG("Video Encoder <%s> initialized\n", ve->venc1Name); dvtb_MPEG4Enc1InitDebug(&ve->venc1Params); } } } } if(DVEVM_ST_FAIL == retCode) dvtb_MPEG4Enc1Cleanup(ve); return retCode; }
void gprsBusinessLogic::defaultGprsAdapterAddressReceived ( QMap<QString, QVariant> properties) { SYS_DEBUG(""); m_GprsAccesPointName = properties["AccessPointName"].toString(); m_GprsUser = properties["Username"].toString(); m_GprsPasswd = properties["Password"].toString(); m_GprsActive = properties["Active"].toString(); SYS_DEBUG ("Active = %s", SYS_STR(m_GprsActive)); delete m_AdapterDBusIf; m_AdapterDBusIfNetworkRegistration->callWithCallback ( QString ("GetProperties"), QList<QVariant>(), this, SLOT (defaultGprsNetworkRegistrationInfoReceived(QMap<QString, QVariant>)), SLOT (DBusMessagingFailure (QDBusError))); //emit refreshNeeded (); }
void ThemeCellCreator::updateCell ( const QModelIndex &index, MWidget *cell) const { CustomListItem *listItem; QString title; QString codeName; QString iconName; QString changingTheme; bool isChangingTheme; if(!cell || !index.isValid()) return; listItem = qobject_cast<CustomListItem *>(cell); changingTheme = index.data (ThemeListModel::ChangingNameRole).toString(); title = index.data (ThemeListModel::NameRole).toString(); codeName = index.data (ThemeListModel::CodeNameRole).toString(); iconName = index.data (ThemeListModel::IconNameRole).toString(); isChangingTheme = !codeName.isEmpty() && changingTheme == codeName; #if 1 SYS_DEBUG ("************** %d ***************", index.row()); SYS_DEBUG ("title = %s", SYS_STR(title)); SYS_DEBUG ("changingTheme = %s", SYS_STR(changingTheme)); SYS_DEBUG ("codeName = %s", SYS_STR(codeName)); SYS_DEBUG ("iconName = %s", SYS_STR(iconName)); SYS_DEBUG ("isChangingTheme = %s", SYS_BOOL(isChangingTheme)); #endif // The title if (m_HighlightText.isEmpty()) { listItem->setTitle(title); } else { int matchingIndex = title.indexOf ( m_HighlightText, 0, Qt::CaseInsensitive); if (matchingIndex != -1) { title.insert (matchingIndex + m_HighlightText.length(), SelectionEndTag); title.insert (matchingIndex, SelectionStartTag); } listItem->setTitle (title); } // The icon if (listItem->imageWidget()->image() != iconName) listItem->imageWidget()->setImage (iconName); // The spinner. if (isChangingTheme) { listItem->progressIndicator()->show(); } else { listItem->progressIndicator()->hide(); } updateListItemMode(index, listItem); }