X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=emul%2Femulkbd.h;h=0263db1d0bca5bf66000c206903523a5ce4ab7a3;hb=20d3c79024c12bb366270c0c1fdda53c4c55e734;hp=1eb243229f111d276936bbacce6c6cb2ed277432;hpb=126666459b99272b966ba70e946a27e547ec4600;p=bertos.git diff --git a/emul/emulkbd.h b/emul/emulkbd.h index 1eb24322..0263db1d 100755 --- a/emul/emulkbd.h +++ b/emul/emulkbd.h @@ -20,7 +20,11 @@ #pragma once #endif // _MSC_VER > 1000 +#if _QT < 4 #include +#else +#include +#endif // fwd decl class QGridLayout; @@ -38,7 +42,7 @@ protected: // Construction public: - EmulKbd(QWidget *parent = 0, const char *name = 0, WFlags f = 0); + EmulKbd(QWidget *parent = 0, const char *name = 0, Qt::WFlags f = 0); virtual ~EmulKbd(); // Public methods @@ -63,7 +67,11 @@ protected: // Private helper class for EmulKbd // NOTE: with protected inheritance, dynamic_cast<> does not work (gcc 2.96) +#if _QT < 4 #include +#else +#include +#endif class EmulKey : public QPushButton { Q_OBJECT