- Timestamp:
- Jan 18, 2009, 10:13:51 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bnctabledlg.cpp
r1486 r1488 478 478 ww = QFontMetrics(font()).width('w'); 479 479 480 QPushButton*_closeButton = new QPushButton("Cancel");480 _closeButton = new QPushButton("Cancel"); 481 481 connect(_closeButton, SIGNAL(clicked()), this, SLOT(close())); 482 482 _closeButton->setMinimumWidth(8*ww); 483 483 _closeButton->setMaximumWidth(8*ww); 484 484 485 QPushButton*_okButton = new QPushButton(tr("OK"), this);485 _okButton = new QPushButton(tr("OK"), this); 486 486 connect(_okButton, SIGNAL(clicked()), this, SLOT(slotAcceptCasterTable())); 487 487 _okButton->setMinimumWidth(8*ww); 488 488 _okButton->setMaximumWidth(8*ww); 489 489 490 QPushButton* _whatsThisCasterTableButton = new QPushButton(tr("Help=Shift+F1"), this);491 connect(_whatsThis CasterTableButton, SIGNAL(clicked()), this, SLOT(slotWhatsThisCasterTable()));492 _whatsThis CasterTableButton->setMinimumWidth(12*ww);493 _whatsThis CasterTableButton->setMaximumWidth(12*ww);490 _whatsThisButton = new QPushButton(tr("Help=Shift+F1"), this); 491 connect(_whatsThisButton, SIGNAL(clicked()), this, SLOT(slotWhatsThis())); 492 _whatsThisButton->setMinimumWidth(12*ww); 493 _whatsThisButton->setMaximumWidth(12*ww); 494 494 495 495 _casterTable->setWhatsThis(tr("<p>Select an NTRIP broadcaster and hit 'OK'.</p><p>See <u>http://www.rtcm-ntrip.org/home</u> for further details on known NTRIP broadcaster installations.</u>.")); … … 497 497 QGridLayout* dlgLayout = new QGridLayout(); 498 498 dlgLayout->addWidget(new QLabel(" List of NTRIP Broadcasters from www.rtcm-ntrip.org"), 0,0,1,3,Qt::AlignLeft); 499 dlgLayout->addWidget(_casterTable, 500 dlgLayout->addWidget(_whatsThis CasterTableButton, 2, 0);501 dlgLayout->addWidget(_closeButton, 502 dlgLayout->addWidget(_okButton, 499 dlgLayout->addWidget(_casterTable, 1, 0, 1, 3); 500 dlgLayout->addWidget(_whatsThisButton, 2, 0); 501 dlgLayout->addWidget(_closeButton, 2, 1, Qt::AlignRight); 502 dlgLayout->addWidget(_okButton, 2, 2); 503 503 504 504 setMinimumSize(600,400); … … 509 509 } 510 510 511 // Caster table destructor 512 //////////////////////////////////////////////////////////////////////////// 513 bncCasterTableDlg::~bncCasterTableDlg() { 514 delete _casterTable; 515 delete _okButton; 516 delete _closeButton; 517 delete _whatsThisButton; 518 } 519 511 520 // Caster table what's this 512 521 //////////////////////////////////////////////////////////////////////////// 513 void bncCasterTableDlg:: slotWhatsThis CasterTable() {522 void bncCasterTableDlg:: slotWhatsThis() { 514 523 QWhatsThis::enterWhatsThisMode(); 515 }516 517 // Caster table destructor518 ////////////////////////////////////////////////////////////////////////////519 bncCasterTableDlg::~bncCasterTableDlg() {520 if (_casterTable) {521 for (int ir = 0; ir < _casterTable->rowCount(); ir++) {522 for (int ic = 0; ic < _casterTable->columnCount(); ic++) {523 delete _casterTable->item(ir,ic);524 }525 }526 }527 524 } 528 525
Note:
See TracChangeset
for help on using the changeset viewer.