--- a/telutils/dialpad/tsrc/dialpadtest/dialpadtestview.cpp Wed Aug 18 10:19:22 2010 +0300
+++ b/telutils/dialpad/tsrc/dialpadtest/dialpadtestview.cpp Thu Sep 02 21:00:29 2010 +0300
@@ -105,21 +105,14 @@
if (mMainWindow.orientation() == Qt::Horizontal) {
// dialpad takes half of the screen
- if (layoutDirection() == Qt::LeftToRight) {
- mDialpad->setPos(QPointF(screenRect.width()/2,
- this->scenePos().y()));
- mDialpad->setPreferredSize(screenRect.width()/2,
- (screenRect.height()-scenePos().y()));
- } else {
- mDialpad->setPos(QPointF(0,this->scenePos().y()));
- mDialpad->setPreferredSize(screenRect.width()/2,
- (screenRect.height()-scenePos().y()));
- }
+ mDialpad->setPos(QPointF(screenRect.width()/2,
+ this->scenePos().y()));
+ mDialpad->resize(screenRect.width()/2,
+ (screenRect.height()-scenePos().y()));
} else {
qreal screenHeight = screenRect.height();
mDialpad->setPos(0, screenHeight/2.25);
- mDialpad->setPreferredSize(screenRect.width(),
- screenHeight - screenHeight/2.25);
+ mDialpad->resize(screenRect.width(),screenHeight - screenHeight/2.25);
}
}