75 mSlots->insert( lcActAdjustVideoId, SLOT( notSupported() ) ); |
75 mSlots->insert( lcActAdjustVideoId, SLOT( notSupported() ) ); |
76 mSlots->insert( lcActShareImageId, SLOT( notSupported() ) ); |
76 mSlots->insert( lcActShareImageId, SLOT( notSupported() ) ); |
77 mSlots->insert( lcActSwapViewsId, SLOT( swap() ) ); |
77 mSlots->insert( lcActSwapViewsId, SLOT( swap() ) ); |
78 mSlots->insert( lcActZoomId, SLOT( notSupported() ) ); |
78 mSlots->insert( lcActZoomId, SLOT( notSupported() ) ); |
79 mSlots->insert( lcActSwitchToVoiceCallId, SLOT( switchToVoiceCall() ) ); |
79 mSlots->insert( lcActSwitchToVoiceCallId, SLOT( switchToVoiceCall() ) ); |
80 mSlots->insert( lcActOpenKeypadId, SLOT( notSupported() ) ); |
80 mSlots->insert( lcActOpenKeypadId, SLOT( openDialpad() ) ); |
81 mSlots->insert( lcActDisableCameraId, SLOT( disableCamera() ) ); |
81 mSlots->insert( lcActDisableCameraId, SLOT( disableCamera() ) ); |
82 mSlots->insert( lcActSpeakerId, SLOT( speaker() ) ); |
82 mSlots->insert( lcActSpeakerId, SLOT( speaker() ) ); |
83 |
83 |
84 mSlots->insert( lcActMenuDisableCameraId, SLOT( disableCamera() ) ); |
84 mSlots->insert( lcActMenuDisableCameraId, SLOT( disableCamera() ) ); |
85 mSlots->insert( lcActMenuChangeCameraId, SLOT( notSupported() ) ); |
85 mSlots->insert( lcActMenuChangeCameraId, SLOT( notSupported() ) ); |
164 HbFrameDrawer*frameDrawer = new HbFrameDrawer("qtg_fr_btn_red_normal",HbFrameDrawer::NinePieces); |
164 HbFrameDrawer*frameDrawer = new HbFrameDrawer("qtg_fr_btn_red_normal",HbFrameDrawer::NinePieces); |
165 static_cast<HbPushButton*>(object)->setFrameBackground(frameDrawer); |
165 static_cast<HbPushButton*>(object)->setFrameBackground(frameDrawer); |
166 HbStyleLoader::registerFilePath(":/hbpushbutton_color.css"); |
166 HbStyleLoader::registerFilePath(":/hbpushbutton_color.css"); |
167 } |
167 } |
168 else if ( name == lcWidgetDialpad ){ |
168 else if ( name == lcWidgetDialpad ){ |
169 object = new Dialpad(); |
169 HbMainWindow* pWindow = HbInstance::instance()->allMainWindows().at(0); |
|
170 if( pWindow ){ |
|
171 object = new Dialpad( *pWindow ); |
|
172 } |
170 } |
173 } |
171 else { |
174 else { |
172 object = HbDocumentLoader::createObject( type, name ); |
175 object = HbDocumentLoader::createObject( type, name ); |
173 } |
176 } |
174 if (object) { |
177 if (object) { |
565 bool ok( false ); |
568 bool ok( false ); |
566 |
569 |
567 if ( mLastLoadedView.length() > 0) { |
570 if ( mLastLoadedView.length() > 0) { |
568 LC_QDEBUG_4( "layout = ", layoutName, ", view =", mLastLoadedView ) |
571 LC_QDEBUG_4( "layout = ", layoutName, ", view =", mLastLoadedView ) |
569 |
572 |
570 load( mLastLoadedView, layoutName, &ok ); |
573 QObjectList objects = load( mLastLoadedView, layoutName, &ok ); |
571 if (!ok) { |
574 if (!ok) { |
572 LC_QCRITICAL( "! loading of XML failed !" ) |
575 LC_QCRITICAL( "! loading of XML failed !" ) |
573 } |
576 } |
574 else{ |
577 else{ |
575 mPreviousLayout = mLayout; |
578 mPreviousLayout = mLayout; |
576 mLayout = layoutName; |
579 mLayout = layoutName; |
|
580 setObjectTree( objects ); |
577 } |
581 } |
578 } else { |
582 } else { |
579 LC_QCRITICAL( "! not loading layout, since view is not loaded!" ) |
583 LC_QCRITICAL( "! not loading layout, since view is not loaded!" ) |
580 } |
584 } |
581 |
585 |