Changeset 520 for trunk/geant4/interfaces
- Timestamp:
- Jun 21, 2007, 12:14:56 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/geant4/interfaces/basic/src/G4UIQt.cc
r519 r520 610 610 (e->key() == (Qt::Key_PageUp))) { 611 611 int selection = fCommandHistoryArea->currentRow(); 612 printf("-selection : %d\n",selection); 612 // QList<QListWidgetItem *> seleted = fCommandHistoryArea->selectedItems (); 613 for (int a=0;a<fCommandHistoryArea->count();a++) { 614 615 } 616 printf("-previous selection : %d\n",selection); 613 617 if (fCommandHistoryArea->count()) { 614 618 if (selection == -1) { … … 633 637 fCommandHistoryArea->clearSelection(); 634 638 fCommandHistoryArea->item(selection)->setSelected(true); 639 fCommandHistoryArea->setCurrentItem(fCommandHistoryArea->item(selection)); 635 640 } 636 641 } … … 683 688 if (fCommandArea->text().toStdString().c_str() != "") { 684 689 fCommandHistoryArea->addItem(fCommandArea->text()); 690 fCommandHistoryArea->clearSelection(); 691 fCommandHistoryArea->item(fCommandHistoryArea->count()-1)->setSelected(true); 692 fCommandHistoryArea->setCurrentItem(fCommandHistoryArea->item(fCommandHistoryArea->count()-1)); 685 693 686 694 if (command(0,4) != "help") {
Note: See TracChangeset
for help on using the changeset viewer.