telutils/dialpad/tsrc/dialpadtest/dialpadtestview.cpp
changeset 15 d7fc66ccd6fb
parent 13 e32024264ebb
child 19 e44a8c097b15
equal deleted inserted replaced
13:e32024264ebb 15:d7fc66ccd6fb
    99         mDialpad->editor().text().length());
    99         mDialpad->editor().text().length());
   100 }
   100 }
   101 
   101 
   102 void DialpadTestView::setDialpadPosition()
   102 void DialpadTestView::setDialpadPosition()
   103 {
   103 {
   104     QRectF screenRect = mMainWindow.layoutRect();
   104     // workaround to tsw error JMKN-83NAPU (fix coming in MCL wk14)
       
   105     // QRectF screenRect(mMainWindow.layoutRect());
       
   106     QRectF screenRect = (mMainWindow.orientation() == Qt::Horizontal) ?
       
   107                         QRectF(0,0,640,360) : QRectF(0,0,360,640);
   105 
   108 
   106     if (mMainWindow.orientation() == Qt::Horizontal) {
   109     if (mMainWindow.orientation() == Qt::Horizontal) {
   107         // dialpad takes half of the screen
   110         // dialpad takes half of the screen
   108         if (layoutDirection() == Qt::LeftToRight) {
   111         if (layoutDirection() == Qt::LeftToRight) {
   109             mDialpad->setPos(QPointF(screenRect.width()/2,
   112             mDialpad->setPos(QPointF(screenRect.width()/2,