Changeset 8556 in ntrip for trunk/BNC/src/rinex/graphwin.cpp
- Timestamp:
- Dec 12, 2018, 2:01:19 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/graphwin.cpp
r8252 r8556 56 56 //////////////////////////////////////////////////////////////////////////// 57 57 t_graphWin::t_graphWin(QWidget* parent, const QString& fileName, 58 const QVector<QWidget*>& plots, 59 const QByteArray* scaleTitle, 60 const QwtInterval* scaleInterval) : QDialog(parent) { 58 const QVector<QWidget*>& plots, const QByteArray* scaleTitle, 59 const QwtInterval* scaleInterval, bool specialLayout) : QDialog(parent) { 61 60 62 61 _fileName = fileName; … … 107 106 // ------ 108 107 _canvas = new QWidget(this); 109 if (plots.size() != 3) { 108 if (specialLayout) { 109 QHBoxLayout* plotLayout = new QHBoxLayout(_canvas); 110 plotLayout->addWidget(plots[0]); 111 QVBoxLayout* hlpLayout = new QVBoxLayout; 112 hlpLayout->addWidget(plots[1]); 113 hlpLayout->addWidget(plots[2]); 114 plotLayout->addLayout(hlpLayout); 115 } 116 else { 110 117 QHBoxLayout* plotLayout = new QHBoxLayout(_canvas); 111 118 for (int ip = 0; ip < plots.size(); ip++) { … … 115 122 plotLayout->addWidget(_colorScale); 116 123 } 117 }118 else {119 QHBoxLayout* plotLayout = new QHBoxLayout(_canvas);120 plotLayout->addWidget(plots[0]);121 QVBoxLayout* hlpLayout = new QVBoxLayout;122 hlpLayout->addWidget(plots[1]);123 hlpLayout->addWidget(plots[2]);124 plotLayout->addLayout(hlpLayout);125 124 } 126 125
Note:
See TracChangeset
for help on using the changeset viewer.