Changeset 4671 in ntrip for trunk/BNC/src/rinex/graphwin.cpp


Ignore:
Timestamp:
Sep 9, 2012, 9:57:07 AM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/rinex/graphwin.cpp

    r4583 r4671  
    102102  // ------
    103103  _canvas = new QWidget(this);
    104   QHBoxLayout* plotLayout = new QHBoxLayout(_canvas);
    105   for (int ip = 0; ip < plots.size(); ip++) {
    106     plotLayout->addWidget(plots[ip]);
     104  if (plots.size() != 3) {
     105    QHBoxLayout* plotLayout = new QHBoxLayout(_canvas);
     106    for (int ip = 0; ip < plots.size(); ip++) {
     107      plotLayout->addWidget(plots[ip]);
     108    }
     109    if (_colorScale) {
     110      plotLayout->addWidget(_colorScale);
     111    }
    107112  }
    108   if (_colorScale) {
    109     plotLayout->addWidget(_colorScale);
     113  else {
     114    QHBoxLayout* plotLayout = new QHBoxLayout(_canvas);
     115    plotLayout->addWidget(plots[0]);
     116    QVBoxLayout* hlpLayout = new QVBoxLayout;
     117    hlpLayout->addWidget(plots[1]);
     118    hlpLayout->addWidget(plots[2]);
     119    plotLayout->addLayout(hlpLayout);
    110120  }
    111121
Note: See TracChangeset for help on using the changeset viewer.