X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=logview.cpp;h=0f5d7f5856bc2344376649fea1a53705fcc8ee7b;hb=HEAD;hp=3a548cc8629c048594de7904abb3306e8ce26d12;hpb=24d869f598e285f62d7b27d7a4c66794316eb260;p=fapman diff --git a/logview.cpp b/logview.cpp index 3a548cc..0f5d7f5 100644 --- a/logview.cpp +++ b/logview.cpp @@ -59,11 +59,14 @@ LogView::~LogView() int LogView::exec() { + /* #ifdef Q_WS_MAEMO_5 // workaround for buggy Qt autorotation QRect r = dynamic_cast(this->parent())->rect(); if(r.width() < r.height()) this->setAttribute(Qt::WA_Maemo5PortraitOrientation); #endif + */ + show(); //ui->plainTextEdit->setMinimumHeight( ui->plainTextEdit->contentsRect().height() ); @@ -83,9 +86,12 @@ int LogView::exec() int e = QDialog::exec(); + /* #ifdef Q_WS_MAEMO_5 // workaround for buggy Qt autorotation this->setAttribute(Qt::WA_Maemo5AutoOrientation); #endif + */ + return e; } @@ -114,5 +120,7 @@ void LogView::on_btnCopy_clicked() ui->plainTextEdit->selectAll(); ui->plainTextEdit->copy(); +#ifdef Q_WS_MAEMO_5 QMaemo5InformationBox::information ( this, "Copied" ); +#endif }