Changeset 522 for trunk/geant4/interfaces
- Timestamp:
- Jun 21, 2007, 5:42:49 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/geant4/interfaces/basic/src/G4UIQt.cc
r521 r522 118 118 fCommandArea->activateWindow(); 119 119 connect(fCommandArea, SIGNAL(returnPressed()), SLOT(commandEnteredCallback())); 120 fCommandArea->setFocusPolicy ( Qt::StrongFocus );121 fCommandArea->setFocus(Qt::TabFocusReason);120 // fCommandArea->setFocusPolicy ( Qt::StrongFocus ); 121 // fCommandArea->setFocus(Qt::TabFocusReason); 122 122 fTextArea->setReadOnly(true); 123 123 124 124 125 125 // Set layouts 126 QVBoxLayout *layoutSplitter = new QVBoxLayout;127 126 128 127 QWidget* topWidget = new QWidget(); … … 143 142 144 143 145 layoutSplitter->addWidget(topWidget); 146 layoutSplitter->addWidget(bottomWidget); 147 splitter->setLayout(layoutSplitter); 148 144 splitter->addWidget(topWidget); 145 splitter->addWidget(bottomWidget); 149 146 fMainWindow->setCentralWidget(splitter); 150 147 … … 402 399 403 400 // Set layouts 404 QHBoxLayout *splitterLayout = new QHBoxLayout;405 401 406 402 QVBoxLayout *vLayout = new QVBoxLayout; 407 403 408 splitterLayout->addWidget(fHelpTreeWidget); 409 splitterLayout->addWidget(fHelpArea); 410 splitter->setLayout(splitterLayout); 404 splitter->addWidget(fHelpTreeWidget); 405 splitter->addWidget(fHelpArea); 411 406 412 407 vLayout->addWidget(splitter); … … 635 630 } 636 631 } 637 638 632 // pass the event on to the parent class 639 633 return QObject::eventFilter(obj, event); … … 678 672 { 679 673 G4String command (fCommandArea->text().toStdString().c_str()); 680 if (fCommandArea->text().t oStdString().c_str() != "") {674 if (fCommandArea->text().trimmed() != "") { 681 675 fCommandHistoryArea->addItem(fCommandArea->text()); 682 676 fCommandHistoryArea->clearSelection(); … … 685 679 686 680 if (command(0,4) != "help") { 687 ApplyShellCommand (command,exitSession,exitPause);681 ApplyShellCommand (command,exitSession,exitPause); 688 682 } else { 689 683 TerminalHelp(command);
Note: See TracChangeset
for help on using the changeset viewer.