Changeset 716 for trunk


Ignore:
Timestamp:
Feb 6, 2008, 7:03:12 PM (16 years ago)
Author:
garnier
Message:

tsj le pb du full screen.Correction de bug de compil sur Qt3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/geant4/visualization/OpenGL/src/G4OpenGLQtViewer.cc

    r715 r716  
    839839    action2->setOn(true);
    840840   
    841   //FIXME : Should not work on Qt3
    842841  QObject ::connect(action1, SIGNAL(activated()),action2, SLOT(toggle()));
    843842  QObject ::connect(action2, SIGNAL(activated()),action1, SLOT(toggle()));
     
    18711870  }
    18721871#if QT_VERSION < 0x040000
    1873   else if ((event->key() == Qt::Key_Right) && (event->modifiers() & Qt::ShiftModifier)) { // rotate theta
     1872  else if ((event->key() == Qt::Key_Right) && (event->state() & Qt::ShiftButton)) { // rotate theta
    18741873#else
    18751874  else if ((event->key() == Qt::Key_Right) && (event->modifiers() & Qt::ShiftModifier)) { // rotate theta
     
    18791878  if (event->key() == Qt::Key_Escape) { // escaped from full screen
    18801879    toggleFullScreen();
    1881     emit toggleMouseAction();
    18821880  }
    18831881  if (event->key() == Qt::Key_Plus) { // zoom in
     
    18901888  }
    18911889  // with no modifiers
    1892   if (!event->modifiers()) {
     1890#if QT_VERSION < 0x040000
     1891  if (event->state() == Qt::NoButton) {
     1892#else
     1893  if (event->modifiers() == Qt::NoModifier) {
     1894#endif
    18931895    if (event->key() == Qt::Key_Down) { // go down
    18941896      G4MouseMoveEvent(0,1,0);
Note: See TracChangeset for help on using the changeset viewer.