src/hbcore/inputfw/hbinputmainwindow.cpp
changeset 7 923ff622b8b9
parent 6 c3690ec91ef8
child 21 4633027730f5
child 34 ed14f46c0e55
equal deleted inserted replaced
6:c3690ec91ef8 7:923ff622b8b9
    68 };
    68 };
    69 
    69 
    70 HbInputTransparentWindow::HbInputTransparentWindow(QGraphicsItem *parent) :
    70 HbInputTransparentWindow::HbInputTransparentWindow(QGraphicsItem *parent) :
    71     HbWidget(parent)
    71     HbWidget(parent)
    72 {
    72 {
    73     setFlag(QGraphicsItem::ItemHasNoContents, false);
    73 	setFlag(QGraphicsItem::ItemUsesExtendedStyleOption, true);
    74 }
    74 }
    75 
    75 
    76 
    76 
    77 /*!
    77 /*!
    78     Destructs the transparent window.
    78     Destructs the transparent window.
   298 
   298 
   299 #if defined(Q_OS_SYMBIAN)
   299 #if defined(Q_OS_SYMBIAN)
   300     // this is done to come on top of all the controls in symbian OS, done to overlap soft keys as well.
   300     // this is done to come on top of all the controls in symbian OS, done to overlap soft keys as well.
   301     RWindow *rWindow = static_cast<RWindow *>(effectiveWinId()->DrawableWindow());
   301     RWindow *rWindow = static_cast<RWindow *>(effectiveWinId()->DrawableWindow());
   302     const int positionForeground(0);
   302     const int positionForeground(0);
   303     rWindow->SetOrdinalPosition(positionForeground,
   303     rWindow->SetOrdinalPosition(positionForeground);
   304                                 ECoeWinPriorityAlwaysAtFront);
       
   305 #endif
   304 #endif
   306 }
   305 }
   307 
   306 
   308 void HbInputMainWindow::hideInputWindow()
   307 void HbInputMainWindow::hideInputWindow()
   309 {
   308 {
   314     if (isVisible()) {
   313     if (isVisible()) {
   315         hide();
   314         hide();
   316 #if defined(Q_OS_SYMBIAN)
   315 #if defined(Q_OS_SYMBIAN)
   317         RWindow *rWindow = static_cast<RWindow *>(effectiveWinId()->DrawableWindow());
   316         RWindow *rWindow = static_cast<RWindow *>(effectiveWinId()->DrawableWindow());
   318         const int positionBackground(-1);
   317         const int positionBackground(-1);
   319         rWindow->SetOrdinalPosition(positionBackground, ECoeWinPriorityNormal);
   318         rWindow->SetOrdinalPosition(positionBackground);
   320 #endif
   319 #endif
   321     }
   320     }
   322 
   321 
   323     HbInputRegionCollector::instance()->setEnabled(false);
   322     HbInputRegionCollector::instance()->setEnabled(false);
   324 
   323