On Sat, May 27, 2006 at 03:40:55PM +0200, Abdelrazak Younes wrote:
> Index: lyx_gui.C
> ===================================================================
> --- lyx_gui.C (revision 13933)
> +++ lyx_gui.C (working copy)
> @@ -112,7 +112,7 @@
>  {
>  public:
>       LQApplication(int & argc, char ** argv);
> -     ~LQApplication();
> +//   ~LQApplication();
>  #ifdef Q_WS_X11
>       bool x11EventFilter (XEvent * ev) { return lyxX11EventFilter(ev); }
>  #endif
> @@ -133,8 +133,8 @@
>  }
>  
>  
> -LQApplication::~LQApplication()
> -{}
> +//LQApplication::~LQApplication()
> +//{}
>  
>  
>  #ifdef Q_WS_MACX
> @@ -161,16 +161,16 @@
>       // Force adding of font path _before_ QApplication is initialized
>       FontLoader::initFontPath();
>  
> -     static LQApplication app(argc, argv);
> +     static QApplication app(argc, argv);

Why static?

>  
>       // install translation file for Qt built-in dialogs
>       // These are only installed since Qt 3.2.x
>       static QTranslator qt_trans(0);
>       if (qt_trans.load(QString("qt_") + QTextCodec::locale(),
>                         qInstallPathTranslations())) {
> -             app.installTranslator(&qt_trans);
> +             qApp->installTranslator(&qt_trans);
>               // even if the language calls for RtL, don't do that
> -             app.setReverseLayout(false);
> +             qApp->setReverseLayout(false);

app. add qApp-> should be equivalent in these places.

Andre'

Reply via email to