Changeset 0cf220dc33 in tspsg


Ignore:
Timestamp:
May 25, 2013, 6:32:29 AM (11 years ago)
Author:
Oleksii Serdiuk
Branches:
0.1.4.170-beta2-bb10
Children:
ca9cb6dfa5
Parents:
2512bd5a48
Message:

Added scroll area to Output Tab in Settings Dialog on BlackBerry?.

This allows this tab to fit low height screen, like BlackBerry? Q10 has.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/settingsdialog.cpp

    r2512bd5a48 r0cf220dc33  
    7272    cbHQGraph->setCursor(QCursor(Qt::PointingHandCursor));
    7373
    74     box = static_cast<QBoxLayout *>(tabOutput->layout());
     74    box = qobject_cast<QBoxLayout *>(tabOutput->layout());
    7575    hbox = new QHBoxLayout();
    7676    hbox->addSpacing(10);
     
    122122    scrollArea->setWidgetResizable(true);
    123123    scrollArea->setWidget(bgWhite);
     124#elif defined(Q_OS_BLACKBERRY)
     125    QWidget *sac = new QWidget(this);
     126    sac->setLayout(tabOutput->layout());
     127    QScrollArea *sa = new QScrollArea(this);
     128    sa->setWidgetResizable(true);
     129    sa->setWidget(sac);
     130    QVBoxLayout *vbox2 = new QVBoxLayout();
     131    vbox2->addWidget(sa);
     132    tabOutput->setLayout(vbox2);
    124133#else
    125134    buttons->insertStretch(buttons->indexOf(buttonHelp) + 1);
Note: See TracChangeset for help on using the changeset viewer.