X-Git-Url: http://git.maemo.org/git/?p=groove;a=blobdiff_plain;f=topbar.cpp;h=6e19e7ae364697a122d8434a4d412a897a9cff85;hp=81daeefed71c5a4d5f39a67375b6a2e71862f545;hb=21d90a736479e9eb1615db46297dca25115d5ea0;hpb=eda4383dc1a3011c4c70801cb7ca1692b613141f diff --git a/topbar.cpp b/topbar.cpp index 81daeef..6e19e7a 100644 --- a/topbar.cpp +++ b/topbar.cpp @@ -42,6 +42,7 @@ void topBar::resizeEvent(QResizeEvent *e) { if(e->type() == QEvent::Resize) { +#if defined(Q_WS_MAEMO_5) || defined(Q_WS_HILDON) if(((QWidget *)this->parent())->testAttribute(Qt::WA_Maemo5PortraitOrientation)) { ui->sBox->setReadOnly(true); @@ -49,6 +50,7 @@ void topBar::resizeEvent(QResizeEvent *e) } else ui->sBox->setReadOnly(false); +#endif } } @@ -66,4 +68,5 @@ bool topBar::eventFilter(QObject *obj, QEvent *e) } else return QWidget::eventFilter(obj,e); + return true; }