Qt5/Qt4 compatibility

Thought you might be interested in having a widget that is both Qt5 as well as Qt4 compatible.  Great work by the way, thanks for sharing :)
Hi Alex,

Yes, you are right.  For some or other reason I thought doing it this way
might eliminate the need for a project wide QT += widgets but it seems that
this is not actually the case.  I will make the necessary changes when I
get home tonight.

On 18 September 2014 20:01, Alex Turkin <notifications@github.com> wrote:

> In QtWaitingSpinner.h:
>
> > @@ -1,9 +1,14 @@
> >  #ifndef QTWAITINGSPINNER_H
> >  #define QTWAITINGSPINNER_H
> >
> > -#include <QtCore/QTimer>
> > +#include "qglobal.h"
> > +#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
> > +   #include <QtGui/QWidget>
>
> @goblincoding <https://github.com/goblincoding> Maybe it's better to just
> use #include instead of specifying folder? Than it won't need ifdefs at
> all?
>
> I haven't programmed for Qt for some time, I don't remember what's the
> standard for this in Qt community
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/snowwlex/QtWaitingSpinner/pull/2/files#r17743759>.
>



-- 
Don't do anything you can't undo unless you know what you can't do once
you've done it.