Changeset 602
- Timestamp:
- Nov 15, 2007, 11:55:45 AM (17 years ago)
- Location:
- trunk/geant4
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/geant4/interfaces/basic/include/G4UIQt.hh
r595 r602 25 25 // 26 26 // 27 // $Id: G4UIQt.hh,v 1. 2 2007/11/08 17:00:09lgarnier Exp $27 // $Id: G4UIQt.hh,v 1.3 2007/11/09 15:03:21 lgarnier Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // -
trunk/geant4/interfaces/basic/src/G4UIQt.cc
r595 r602 25 25 // 26 26 // 27 // $Id: G4UIQt.cc,v 1. 3 2007/11/08 17:00:09lgarnier Exp $27 // $Id: G4UIQt.cc,v 1.4 2007/11/09 15:03:21 lgarnier Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // … … 50 50 #include <qlineedit.h> 51 51 #include <qwidget.h> 52 #if QT_VERSION >= 0x040000 52 53 #include <qmenu.h> 54 #else 55 #include <qpopupmenu.h> 56 #endif 53 57 #include <qmenubar.h> 54 #include <q boxlayout.h>58 #include <qlayout.h> 55 59 #include <qpushbutton.h> 56 60 #include <qlabel.h> … … 717 721 } 718 722 } else if (e->key() == (Qt::Key_Tab)) { 723 #if QT_VERSION < 0x040000 724 G4String ss = Complete(fCommandArea->text().ascii()); 725 #else 719 726 G4String ss = Complete(fCommandArea->text().toStdString().c_str()); 727 #endif 720 728 fCommandArea->setText((char*)(ss.data())); 721 729 … … 762 770 ) 763 771 { 772 #if QT_VERSION < 0x040000 773 G4String command (fCommandArea->text().ascii()); 774 #else 764 775 G4String command (fCommandArea->text().toStdString().c_str()); 776 #endif 765 777 if (fCommandArea->text().trimmed() != "") { 766 778 fCommandHistoryArea->addItem(fCommandArea->text()); … … 793 805 ) 794 806 { 807 #if QT_VERSION < 0x040000 808 G4String ss = G4String(aCommand.ascii()); 809 #else 795 810 G4String ss = G4String(aCommand.toStdString().c_str()); 811 #endif 796 812 ApplyShellCommand(ss,exitSession,exitPause); 797 813 if(exitSession==true) … … 824 840 if(UI==NULL) return; 825 841 G4UIcommandTree * treeTop = UI->GetTree(); 842 #if QT_VERSION < 0x040000 843 G4UIcommand* command = treeTop->FindPath(item->text (1).ascii()); 844 #else 826 845 G4UIcommand* command = treeTop->FindPath(item->text (1).toStdString().c_str()); 846 #endif 827 847 if (command) { 828 848 fHelpArea->setText(GetCommandList(command)); … … 830 850 // this is not a command, this is a sub directory 831 851 // We display the Title 852 #if QT_VERSION < 0x040000 853 fHelpArea->setText(item->text (1).ascii()); 854 #else 832 855 fHelpArea->setText(item->text (1).toStdString().c_str()); 856 #endif 833 857 } 834 858 } -
trunk/geant4/interfaces/common/src/G4Qt.cc
r595 r602 25 25 // 26 26 // 27 // $Id: G4Qt.cc,v 1. 3 2007/11/08 17:00:09lgarnier Exp $27 // $Id: G4Qt.cc,v 1.4 2007/11/09 15:03:21 lgarnier Exp $ 28 28 // GEANT4 tag $Name: $ 29 29 // -
trunk/geant4/specific-geant4-dev.sh
r600 r602 27 27 export G4RADIOACTIVEDATA=$G4DATA/RadiativeDecay 28 28 export G4LEDATA=$G4DATA/G4EMLOW3.0 29 #export QTHOME=/usr/local/Qt/4.3.029 export QTHOME=/usr/local/Qt/4.3.0 30 30 #////////////////////////////////////////////////////////// 31 31 # GUI, Visualization : -
trunk/geant4/visualization/OpenGL/src/G4OpenGLQtExportDialog_moc_030305.cc
r598 r602 1 #if QT_VERSION < 0x0402022 3 1 /**************************************************************************** 4 2 ** G4OpenGLQtExportDialog meta object code from reading C++ file 'G4OpenGLQtExportDialog.hh' … … 14 12 #include <qmetaobject.h> 15 13 #include <qapplication.h> 14 15 #if QT_VERSION < 0x040202 16 16 17 17 #include <private/qucomextra_p.h> -
trunk/geant4/visualization/OpenGL/src/G4OpenGLQtViewer.cc
r601 r602 60 60 #include <qaction.h> 61 61 #include <qwidgetlist.h> 62 #include <qmenudata.h>63 62 #include <qpopupmenu.h> 64 63 #include <qimage.h> … … 954 953 #else 955 954 nomFich += "."+selectedFilter->toLower(); 956 printf("G4OpenGLQtViewer::name %s\n",nomFich.to Ascii());955 printf("G4OpenGLQtViewer::name %s\n",nomFich.toStdString().c_str()); 957 956 #endif 958 957 G4OpenGLQtExportDialog* exportDialog= new G4OpenGLQtExportDialog(GLWindow,nomFich,fWindow->height(),fWindow->width()); … … 1171 1170 fp = fopen (aFilename.ascii(), "w"); 1172 1171 #else 1173 fp = fopen (aFilename.to Ascii(), "w");1172 fp = fopen (aFilename.toStdString().c_str(), "w"); 1174 1173 #endif 1175 1174 if (fp == NULL) { … … 1181 1180 fprintf (fp, "%%%%Title: %s\n", aFilename.ascii()); 1182 1181 #else 1183 fprintf (fp, "%%%%Title: %s\n", aFilename.to Ascii());1182 fprintf (fp, "%%%%Title: %s\n", aFilename.toStdString().c_str()); 1184 1183 #endif 1185 1184 fprintf (fp, "%%%%Creator: OpenGL pixmap render output\n"); -
trunk/geant4/visualization/OpenGL/src/G4OpenGLQtViewer_moc_030305.cc
r598 r602 1 #if QT_VERSION < 0x0402022 3 1 /**************************************************************************** 4 2 ** G4OpenGLQtViewer meta object code from reading C++ file 'G4OpenGLQtViewer.hh' … … 14 12 #include <qmetaobject.h> 15 13 #include <qapplication.h> 14 15 #if QT_VERSION < 0x040202 16 16 17 17 #include <private/qucomextra_p.h>
Note: See TracChangeset
for help on using the changeset viewer.