Changeset 716 for trunk/geant4
- Timestamp:
- Feb 6, 2008, 7:03:12 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/geant4/visualization/OpenGL/src/G4OpenGLQtViewer.cc
r715 r716 839 839 action2->setOn(true); 840 840 841 //FIXME : Should not work on Qt3842 841 QObject ::connect(action1, SIGNAL(activated()),action2, SLOT(toggle())); 843 842 QObject ::connect(action2, SIGNAL(activated()),action1, SLOT(toggle())); … … 1871 1870 } 1872 1871 #if QT_VERSION < 0x040000 1873 else if ((event->key() == Qt::Key_Right) && (event-> modifiers() & Qt::ShiftModifier)) { // rotate theta1872 else if ((event->key() == Qt::Key_Right) && (event->state() & Qt::ShiftButton)) { // rotate theta 1874 1873 #else 1875 1874 else if ((event->key() == Qt::Key_Right) && (event->modifiers() & Qt::ShiftModifier)) { // rotate theta … … 1879 1878 if (event->key() == Qt::Key_Escape) { // escaped from full screen 1880 1879 toggleFullScreen(); 1881 emit toggleMouseAction();1882 1880 } 1883 1881 if (event->key() == Qt::Key_Plus) { // zoom in … … 1890 1888 } 1891 1889 // 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 1893 1895 if (event->key() == Qt::Key_Down) { // go down 1894 1896 G4MouseMoveEvent(0,1,0);
Note: See TracChangeset
for help on using the changeset viewer.