- Timestamp:
- Jun 21, 2007, 12:15:00 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/geant4/interfaces/basic/src/G4UIQt.cc
r520 r521 610 610 (e->key() == (Qt::Key_PageUp))) { 611 611 int selection = fCommandHistoryArea->currentRow(); 612 // QList<QListWidgetItem *> seleted = fCommandHistoryArea->selectedItems ();613 612 for (int a=0;a<fCommandHistoryArea->count();a++) { 614 613 615 614 } 616 printf("-previous selection : %d\n",selection);617 615 if (fCommandHistoryArea->count()) { 618 616 if (selection == -1) { 619 617 selection = fCommandHistoryArea->count()-1; 620 618 } 621 printf("selection : %d\n",selection);622 619 if (e->key() == (Qt::Key_Down)) { 623 printf("****************KEY PRESSED DOWN*****%d <= %d\n",selection,fCommandHistoryArea->count());624 620 if (selection <(fCommandHistoryArea->count()-1)) 625 621 selection++; 626 622 } else if (e->key() == (Qt::Key_PageDown)) { 627 623 selection = fCommandHistoryArea->count()-1; 628 printf("****************KEY PRESSED PAGE DOWN*****\n");629 624 } else if (e->key() == (Qt::Key_Up)) { 630 625 if (selection >0) 631 626 selection --; 632 printf("****************KEY PRESSED UP*****\n");633 627 } else if (e->key() == (Qt::Key_PageUp)) { 634 628 selection = 0; 635 printf("****************KEY PRESSED PAGE UP*****\n");636 629 } 637 630 fCommandHistoryArea->clearSelection(); … … 684 677 /*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/ 685 678 { 686 printf ("debug : callback\n");687 679 G4String command (fCommandArea->text().toStdString().c_str()); 688 680 if (fCommandArea->text().toStdString().c_str() != "") { … … 695 687 ApplyShellCommand (command,exitSession,exitPause); 696 688 } else { 697 printf ("terminal help\n");698 689 TerminalHelp(command); 699 690 }
Note: See TracChangeset
for help on using the changeset viewer.