}
void TranslationWidget::show(QStringList translations) {
+
show();
textEdit->clear();
QWidget*w = new QWidget;
verticalLayout = new QVBoxLayout(w);
- //verticalLayout->addLayout(horizontalLayout);
verticalLayout->addWidget(textEdit);
+ textEdit->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
+ textEdit->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
+
+
this->setWidget(w);
this->setWidgetResizable(true);
connect(zoomInToolButton, SIGNAL(clicked()),
this, SIGNAL(updateSize()));
+ /* #ifdef Q_WS_MAEMO_5
+ fullScreenButton = new QToolButton(this);
+ fullScreenButton->setIcon(QIcon::fromTheme("general_fullsize"));
+ fullScreenButton->setMinimumSize(fullScreenButton->sizeHint());
+ int x = QApplication::desktop()->screenGeometry(this).width() -
+ fullScreenButton->sizeHint().width();
+ int y = QApplication::desktop()->screenGeometry(this).height() -
+ fullScreenButton->sizeHint().height();
+ fullScreenButton->move(QPoint(x,y));
+ fullScreenButton->show();
+ fullScreenButton->setWindowOpacity(0.5);
+
+
+ backButton = new QToolButton(this);
+ backButton->setIcon(QIcon::fromTheme("general_overlay_back"));
+ backButton->setMinimumSize(fullScreenButton->sizeHint());
+ x = QApplication::desktop()->screenGeometry(this).width() -
+ backButton->sizeHint().width();
+ y = 0;
+ backButton->move(QPoint(x,y));
+ backButton->show();
+ backButton->setWindowOpacity(0.5);
+
+ connect(backButton, SIGNAL(clicked()),
+ this, SLOT(hide()));
+ #endif*/
}