Login  Register

ifdef __APPLE1__

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

ifdef __APPLE1__

ravas
870 posts
What is the point of this?

#ifdef __APPLE1__
    QMenu* m = menu;
    menu= m->addMenu(tr("&Dimension"));
#else
    menu = menuBar()->addMenu(tr("&Dimension"));
#endif
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: ifdef __APPLE1__

dxli
2003 posts
I can test this one.

It must be a hack by Ries.

ravas wrote
What is the point of this?

#ifdef __APPLE1__
    QMenu* m = menu;
    menu= m->addMenu(tr("&Dimension"));
#else
    menu = menuBar()->addMenu(tr("&Dimension"));
#endif
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: ifdef __APPLE1__

R. van Twisk
Administrator
489 posts



On Jul 24, 2015, at 9:40 PM, dxli [via LibreCAD] <[hidden email]> wrote:

I can test this one.

It must be a hack by Ries.

ravas wrote
What is the point of this?

#ifdef __APPLE1__
    QMenu* m = menu;
    menu= m->addMenu(tr("&Dimension"));
#else
    menu = menuBar()->addMenu(tr("&Dimension"));
#endif
You might beable to get rid of it, I remember I got a exception on the other code..