Index: trunk/geant4/visualization/OpenGL/src/G4OpenGLQtViewer.cc
===================================================================
--- trunk/geant4/visualization/OpenGL/src/G4OpenGLQtViewer.cc	(revision 612)
+++ trunk/geant4/visualization/OpenGL/src/G4OpenGLQtViewer.cc	(revision 617)
@@ -320,6 +320,11 @@
   Q_CHECK_PTR( mMouseAction );
 
+#if QT_VERSION < 0x030200
+  QAction *rotate = new QAction("&Rotate scene","&Rotate scene",CTRL+Key_N,mMouseAction);
+  QAction *move =  new QAction("&Move scene","&Move scene",CTRL+Key_M,mMouseAction);
+#else
   QAction *rotate = new QAction("&Rotate scene",CTRL+Key_N,mMouseAction);
   QAction *move =  new QAction("&Move scene",CTRL+Key_M,mMouseAction);
+#endif
   rotate->addTo(mMouseAction);
   move->addTo(mMouseAction);
@@ -344,6 +349,11 @@
   QPopupMenu *mRepresentation = new QPopupMenu(fContextMenu);
 
+#if QT_VERSION < 0x030200
+  QAction *polyhedron = new QAction("&Polyhedron","&Polyhedron",CTRL+Key_P,mRepresentation);
+  QAction *nurbs = new QAction("&NURBS","&NURBS",CTRL+Key_N,mRepresentation);
+#else
   QAction *polyhedron = new QAction("&Polyhedron",CTRL+Key_P,mRepresentation);
   QAction *nurbs = new QAction("&NURBS",CTRL+Key_N,mRepresentation);
+#endif
   polyhedron->addTo(mRepresentation);
   nurbs->addTo(mRepresentation);
@@ -488,6 +498,11 @@
   mStyle->insertItem("&Background color",mBackground);
 
+#if QT_VERSION < 0x030200
+  QAction *white = new QAction("&White","&White",CTRL+Key_W,mBackground);
+  QAction *black =  new QAction("&Black","&Black",CTRL+Key_B,mBackground);
+#else
   QAction *white = new QAction("&White",CTRL+Key_W,mBackground);
   QAction *black =  new QAction("&Black",CTRL+Key_B,mBackground);
+#endif
   white->addTo(mBackground);
   black->addTo(mBackground);
@@ -513,7 +528,13 @@
   fContextMenu->insertItem("&Actions",mActions);
 
+#if QT_VERSION < 0x030200
+  QAction *controlPanels = new QAction("&Control panels","&Control panels",CTRL+Key_C,mActions);
+  QAction *exitG4 =  new QAction("&Exit to G4Vis >","&Exit to G4Vis >",CTRL+Key_E,mActions);
+  QAction *createEPS =  new QAction("&Save as ...","&Save as ...",CTRL+Key_S,mActions);
+#else
   QAction *controlPanels = new QAction("&Control panels",CTRL+Key_C,mActions);
   QAction *exitG4 =  new QAction("&Exit to G4Vis >",CTRL+Key_E,mActions);
   QAction *createEPS =  new QAction("&Save as ...",CTRL+Key_S,mActions);
+#endif
   controlPanels->addTo(mActions);
   exitG4->addTo(mActions);
@@ -562,6 +583,11 @@
   mSpecial->insertItem("Transparency",mTransparency);
 
+#if QT_VERSION < 0x030200
+  QAction *transparencyOn = new QAction("&On","&On",CTRL+Key_O,mTransparency);
+  QAction *transparencyOff = new QAction("&Off","&Off",CTRL+Key_F,mTransparency);
+#else
   QAction *transparencyOn = new QAction("&On",CTRL+Key_O,mTransparency);
   QAction *transparencyOff = new QAction("&Off",CTRL+Key_F,mTransparency);
+#endif
   transparencyOn->addTo(mTransparency);
   transparencyOff->addTo(mTransparency);
@@ -588,6 +614,11 @@
   mSpecial->insertItem("Antialiasing",mAntialiasing);
 
+#if QT_VERSION < 0x030200
+  QAction *antialiasingOn = new QAction("&On","&On",CTRL+Key_O,mAntialiasing);
+  QAction *antialiasingOff = new QAction("&Off","&Off",CTRL+Key_F,mAntialiasing);
+#else
   QAction *antialiasingOn = new QAction("&On",CTRL+Key_O,mAntialiasing);
   QAction *antialiasingOff = new QAction("&Off",CTRL+Key_F,mAntialiasing);
+#endif
   antialiasingOn->addTo(mAntialiasing);
   antialiasingOff->addTo(mAntialiasing);
@@ -611,6 +642,11 @@
   mSpecial->insertItem("Haloing",mHaloing);
 
+#if QT_VERSION < 0x030200
+  QAction *haloingOn = new QAction("&On","&On",CTRL+Key_O,mHaloing);
+  QAction *haloingOff = new QAction("&Off","&Off",CTRL+Key_F,mHaloing);
+#else
   QAction *haloingOn = new QAction("&On",CTRL+Key_O,mHaloing);
   QAction *haloingOff = new QAction("&Off",CTRL+Key_F,mHaloing);
+#endif
   haloingOn->addTo(mHaloing);
   haloingOff->addTo(mHaloing);
@@ -632,6 +668,11 @@
   mSpecial->insertItem("Auxiliairy edges",mAux);
 
+#if QT_VERSION < 0x030200
+  QAction *auxOn = new QAction("&On","&On",CTRL+Key_O,mAux);
+  QAction *auxOff = new QAction("&Off","&Off",CTRL+Key_F,mAux);
+#else
   QAction *auxOn = new QAction("&On",CTRL+Key_O,mAux);
   QAction *auxOff = new QAction("&Off",CTRL+Key_F,mAux);
+#endif
   auxOn->addTo(mAux);
   auxOff->addTo(mAux);
@@ -649,4 +690,5 @@
 
 
+#if QT_VERSION >= 0x030200
 #if QT_VERSION < 0x040000
   QPopupMenu *mFullScreen = new QPopupMenu(mSpecial);
@@ -663,4 +705,5 @@
 #endif
   createRadioAction(fullOn,fullOff,SLOT(toggleFullScreen(bool)),2);
+#endif
 
 }
@@ -976,6 +1019,9 @@
 */
 void G4OpenGLQtViewer::toggleFullScreen(bool check) {
+#if QT_VERSION >= 0x030200
   GLWindow->setWindowState(GLWindow->windowState() ^ Qt::WindowFullScreen);
-
+#else
+  G4cerr << "This version of G4UI Could not generate the selected format" << G4endl;
+#endif
 #ifdef GEANT4_QT_DEBUG
   printf("G4OpenGLQtViewer::toggleRepresentation %d\n",check);
