Ignore:
Timestamp:
Oct 15, 2008, 2:49:22 PM (16 years ago)
Author:
garnier
Message:

see history

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/interfaces/common/src/G4Qt.cc

    r856 r867  
    2525//
    2626//
    27 // $Id: G4Qt.cc,v 1.7 2007/11/15 18:24:28 lgarnier Exp $
    28 // GEANT4 tag $Name: HEAD $
     27// $Id: G4Qt.cc,v 1.9 2008/10/15 09:09:47 lgarnier Exp $
     28// GEANT4 tag $Name: $
    2929//
    3030// L. Garnier
     
    4242
    4343
    44 #define NewString(str)  \
    45  ((str) != NULL ? (strcpy((char*)malloc((unsigned)strlen(str) + 1), str)) : NULL)
    46 
    47 //static void XWidgetIconify                 (Widget);
    48 //static void XWidgetUniconify               (Widget);
    49 //static void XDisplaySetWindowToNormalState (Display*,Window);
    50 
    5144G4Qt* G4Qt::instance    = NULL;
    5245
    5346static G4bool QtInited  = FALSE;
    54 //static int    argn      = 0;
    55 //static char** args      = NULL;
    56 // static QtAppContext appContext = NULL;
    57 //static QApplication app = NULL;
    5847
    5948/***************************************************************************/
     
    6756/***************************************************************************/
    6857G4Qt* G4Qt::getInstance (
    69  int    a_argn
     58 int*    a_argn
    7059,char** a_args
    7160,char*  a_class
     
    8170/***************************************************************************/
    8271G4Qt::G4Qt (
    83  int    a_argn
     72 int*    a_argn
    8473,char** a_args
    8574,char*  a_class
     
    9988      SetMainInteractor (qApp);
    10089      //#endif
    101       SetArguments      (a_argn,a_args);
     90      SetArguments      (*a_argn,a_args);
    10291#ifdef GEANT4_QT_DEBUG
    10392      printf("G4Qt::G4Qt alredy inited in external \n");
     
    11099#endif
    111100#if QT_VERSION < 0x040000
    112       qApp = new QApplication (a_argn, a_args);
     101      qApp = new QApplication (*a_argn, a_args);
    113102      //    QApplication qApp(a_argn, a_args);
    114103      //    if(&qApp == NULL) {
    115104#else
    116       new QApplication (a_argn, a_args);
     105      new QApplication (*a_argn, a_args);
    117106#endif
    118107      if(!qApp) {
     
    126115        SetMainInteractor (qApp);
    127116        //#endif
    128         SetArguments      (a_argn,a_args);
     117        SetArguments      (*a_argn,a_args);
    129118#ifdef GEANT4_QT_DEBUG
    130119        printf("G4Qt::G4Qt inited Qt END\n");
Note: See TracChangeset for help on using the changeset viewer.