Changeset 521


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

r645@mac-90108: laurentgarnier | 2007-06-21 12:17:47 +0200
les fleches marchent, cette fois, sans les commentaires

File:
1 edited

Legend:

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

    r520 r521  
    610610          (e->key() == (Qt::Key_PageUp))) {
    611611        int selection = fCommandHistoryArea->currentRow();
    612         //        QList<QListWidgetItem *> seleted = fCommandHistoryArea->selectedItems ();
    613612        for (int a=0;a<fCommandHistoryArea->count();a++) {
    614613         
    615614        }
    616         printf("-previous selection : %d\n",selection);
    617615        if (fCommandHistoryArea->count()) {
    618616          if (selection == -1) {
    619617            selection = fCommandHistoryArea->count()-1;
    620618          }
    621           printf("selection : %d\n",selection);
    622619          if (e->key() == (Qt::Key_Down)) {
    623             printf("****************KEY PRESSED DOWN*****%d <= %d\n",selection,fCommandHistoryArea->count());
    624620            if (selection <(fCommandHistoryArea->count()-1))
    625621              selection++;
    626622          } else if (e->key() == (Qt::Key_PageDown)) {
    627623            selection = fCommandHistoryArea->count()-1;
    628             printf("****************KEY PRESSED PAGE DOWN*****\n");
    629624          } else if (e->key() == (Qt::Key_Up)) {
    630625            if (selection >0)
    631626              selection --;
    632             printf("****************KEY PRESSED UP*****\n");
    633627          } else if (e->key() == (Qt::Key_PageUp)) {
    634628            selection = 0;
    635             printf("****************KEY PRESSED PAGE UP*****\n");
    636629          }
    637630          fCommandHistoryArea->clearSelection();
     
    684677/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
    685678{
    686   printf ("debug : callback\n");
    687679  G4String command (fCommandArea->text().toStdString().c_str());
    688680  if (fCommandArea->text().toStdString().c_str() != "") {
     
    695687      ApplyShellCommand (command,exitSession,exitPause);
    696688    } else {
    697       printf ("terminal help\n");
    698689      TerminalHelp(command);
    699690    }
Note: See TracChangeset for help on using the changeset viewer.