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


Ignore:
Timestamp:
Jun 23, 2012, 12:07:14 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r4301 r4304  
    5454
    5555  int ww = QFontMetrics(font()).width('w');
     56  setMinimumSize(80*ww, 40*ww);
    5657
    57   _polarPlot = new t_polarPlot(this);
     58  // Multipath Plots
     59  // ---------------
     60  _plotMP1 = new t_polarPlot(this);
     61  _plotMP2 = new t_polarPlot(this);
    5862
    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);
    6267  connect(_buttonOK, SIGNAL(clicked()), this, SLOT(slotOK()));
     68
     69  // Layout
     70  // ------
     71  QHBoxLayout* plotLayout = new QHBoxLayout;
     72  plotLayout->addWidget(_plotMP1);
     73  plotLayout->addWidget(_plotMP2);
    6374
    6475  QHBoxLayout* buttonLayout = new QHBoxLayout;
     
    6677
    6778  QVBoxLayout* mainLayout = new QVBoxLayout(this);
    68   mainLayout->addWidget(_polarPlot);
     79  mainLayout->addLayout(plotLayout);
    6980  mainLayout->addLayout(buttonLayout);
    70 
    7181}
    7282
     
    8696////////////////////////////////////////////////////////////////////////////
    8797void 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 
    9898  QDialog::closeEvent(event);
    9999}
Note: See TracChangeset for help on using the changeset viewer.