mainwindow.cc
changeset 29 830a0d1d9d7f
parent 28 c55e1f2a4db4
child 30 00268973aae0
equal deleted inserted replaced
28:c55e1f2a4db4 29:830a0d1d9d7f
    14 {
    14 {
    15     ui_->setupUi(this);
    15     ui_->setupUi(this);
    16     ui_->tabs->setCurrentIndex(0);	// avoid changes done in the designer!
    16     ui_->tabs->setCurrentIndex(0);	// avoid changes done in the designer!
    17 
    17 
    18     // prepare the Qwt tab
    18     // prepare the Qwt tab
    19     plot_->setAxisTitle(plot_->yLeft, tr("Altitude"));
    19     plot_->setAxisTitle(plot_->yLeft, tr("Altitude (m)", "axis"));
    20     plot_->setAxisTitle(plot_->xBottom, tr("Time"));
    20     plot_->setAxisTitle(plot_->xBottom, tr("Time"));
    21 
    21 
    22     ui_->qwt->setLayout(new QGridLayout);
    22     ui_->qwt->setLayout(new QGridLayout);
    23     ui_->qwt->layout()->addWidget(plot_);
    23     ui_->qwt->layout()->addWidget(plot_);
    24 
    24