Changeset 4304 in ntrip for trunk/BNC/src/rinex/graphwin.cpp
- Timestamp:
- Jun 23, 2012, 12:07:14 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/graphwin.cpp
r4301 r4304 54 54 55 55 int ww = QFontMetrics(font()).width('w'); 56 setMinimumSize(80*ww, 40*ww); 56 57 57 _polarPlot = new t_polarPlot(this); 58 // Multipath Plots 59 // --------------- 60 _plotMP1 = new t_polarPlot(this); 61 _plotMP2 = new t_polarPlot(this); 58 62 59 // Dialog Layout 60 // ------------- 61 _buttonOK = new QPushButton(tr("OK / Save"), this); 63 // Buttons 64 // ------- 65 _buttonOK = new QPushButton(tr("OK"), this); 66 _buttonOK->setMaximumWidth(10*ww); 62 67 connect(_buttonOK, SIGNAL(clicked()), this, SLOT(slotOK())); 68 69 // Layout 70 // ------ 71 QHBoxLayout* plotLayout = new QHBoxLayout; 72 plotLayout->addWidget(_plotMP1); 73 plotLayout->addWidget(_plotMP2); 63 74 64 75 QHBoxLayout* buttonLayout = new QHBoxLayout; … … 66 77 67 78 QVBoxLayout* mainLayout = new QVBoxLayout(this); 68 mainLayout->add Widget(_polarPlot);79 mainLayout->addLayout(plotLayout); 69 80 mainLayout->addLayout(buttonLayout); 70 71 81 } 72 82 … … 86 96 //////////////////////////////////////////////////////////////////////////// 87 97 void t_graphWin::closeEvent(QCloseEvent* event) { 88 89 int iRet = QMessageBox::question(this, "Close", "Close?",90 QMessageBox::Yes, QMessageBox::No,91 QMessageBox::Cancel);92 93 if (iRet == QMessageBox::Cancel) {94 event->ignore();95 return;96 }97 98 98 QDialog::closeEvent(event); 99 99 }
Note:
See TracChangeset
for help on using the changeset viewer.