src/hbcore/utils/hbthetestutility_p.cpp
changeset 5 627c4a0fd0e7
parent 1 f7ac710697a9
child 7 923ff622b8b9
equal deleted inserted replaced
3:11d3954df52a 5:627c4a0fd0e7
   169     \internal
   169     \internal
   170 */
   170 */
   171 
   171 
   172 QObject *HbTheTestUtilityPrivate::receiver(const QString& name)
   172 QObject *HbTheTestUtilityPrivate::receiver(const QString& name)
   173 {
   173 {
   174     QGraphicsScene* scene = mMainWindow->scene();
   174     QGraphicsScene* scene = mMainWindow->scene(); //krazy:exclude=qclasses
   175     QList<QGraphicsItem*> sceneItems = scene->items();
   175     QList<QGraphicsItem*> sceneItems = scene->items();
   176     foreach (QGraphicsItem* sceneItem, sceneItems ) {
   176     foreach (QGraphicsItem* sceneItem, sceneItems ) {
   177         if (sceneItem->isWidget()) {
   177         if (sceneItem->isWidget()) {
   178             QGraphicsWidget *obj = static_cast<QGraphicsWidget *>(sceneItem);
   178             QGraphicsWidget *obj = static_cast<QGraphicsWidget *>(sceneItem);
   179             // in 4.6 this code could be used
   179             // in 4.6 this code could be used
   259     This method parses configuration file and calls all available slots.
   259     This method parses configuration file and calls all available slots.
   260     \internal
   260     \internal
   261 */
   261 */
   262 void HbTheTestUtility::invokeSlots(const int button)
   262 void HbTheTestUtility::invokeSlots(const int button)
   263 {
   263 {
   264 #if defined (Q_OS_LINUX) || defined(Q_OS_MAC)
   264 #if defined (Q_OS_SYMBIAN)
   265     QString filePath(QDir::tempPath());
       
   266 #else
       
   267     QString filePath;
   265     QString filePath;
   268     if (d->useF) {
   266     if (d->useF) {
   269         filePath = "F:\\data\\log\\";
   267         filePath = "F:\\data\\log\\";
   270     } else if (d->useE) {
   268     } else if (d->useE) {
   271         filePath = "E:\\data\\log\\";
   269         filePath = "E:\\data\\log\\";
   272     } else {
   270     } else {
   273         filePath = "C:\\data\\log\\";
   271         filePath = "C:\\data\\log\\";
   274     }
   272     }
       
   273 #elif defined (Q_OS_WIN)
       
   274     QString filePath("C:\\data\\log\\");
       
   275 #else
       
   276     QString filePath(QDir::tempPath());
   275 #endif
   277 #endif
   276 
   278 
   277     filePath = QDir::toNativeSeparators(filePath);
   279     filePath = QDir::toNativeSeparators(filePath);
   278 
   280 
   279     filePath.append(KTheConfigureFile);
   281     filePath.append(KTheConfigureFile);