Changeset 520


Ignore:
Timestamp:
Jun 21, 2007, 12:14:56 PM (17 years ago)
Author:
garnier
Message:

r644@mac-90108: laurentgarnier | 2007-06-21 12:16:59 +0200
les fleches marchent en mode debug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/geant4/interfaces/basic/src/G4UIQt.cc

    r519 r520  
    610610          (e->key() == (Qt::Key_PageUp))) {
    611611        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);
    613617        if (fCommandHistoryArea->count()) {
    614618          if (selection == -1) {
     
    633637          fCommandHistoryArea->clearSelection();
    634638          fCommandHistoryArea->item(selection)->setSelected(true);
     639          fCommandHistoryArea->setCurrentItem(fCommandHistoryArea->item(selection));
    635640        }
    636641      }
     
    683688  if (fCommandArea->text().toStdString().c_str() != "") {
    684689    fCommandHistoryArea->addItem(fCommandArea->text());
     690    fCommandHistoryArea->clearSelection();
     691    fCommandHistoryArea->item(fCommandHistoryArea->count()-1)->setSelected(true);
     692    fCommandHistoryArea->setCurrentItem(fCommandHistoryArea->item(fCommandHistoryArea->count()-1));
    685693
    686694    if (command(0,4) != "help") {
Note: See TracChangeset for help on using the changeset viewer.