Ignore:
Timestamp:
Sep 15, 2013, 10:51:01 AM (11 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GnssCenter/monitor/dlgconf.cpp

    r5462 r5463  
    3030  _portLineEdit = new QLineEdit;
    3131
    32   QVBoxLayout* mainLayout = new QVBoxLayout;
    3332
    3433  QFormLayout* formLayout = new QFormLayout;
    3534  formLayout->addRow("Host:", _hostLineEdit);
    3635  formLayout->addRow("Port:", _portLineEdit);
     36
     37  QPushButton* cancelButton = new QPushButton("Cancel", this);
     38  QPushButton* okButton     = new QPushButton("OK", this);
     39  QHBoxLayout* buttonLayout = new QHBoxLayout;
     40  buttonLayout->addWidget(cancelButton);
     41  buttonLayout->addWidget(okButton);
     42
     43  QVBoxLayout* mainLayout = new QVBoxLayout;
    3744  mainLayout->addLayout(formLayout);
    38 
    39   QPushButton* okButton = new QPushButton("OK", this);
    40   mainLayout->addWidget(okButton);
    41 
     45  mainLayout->addLayout(buttonLayout);
    4246  setLayout(mainLayout);
    4347
Note: See TracChangeset for help on using the changeset viewer.