From 55eccecc08f839878e5743d6e6be25af386b5a3f Mon Sep 17 00:00:00 2001 From: ar Date: Fri, 21 Jan 2005 20:19:00 +0000 Subject: - make opie compilable against qte 2.3.10 snapshot change QT_VERSION > 290 into QT_VERSION <= 0x030000 --- (limited to 'libopie2/opieui/opopupmenu.cpp') diff --git a/libopie2/opieui/opopupmenu.cpp b/libopie2/opieui/opopupmenu.cpp index 50c613f..5ce048e 100644 --- a/libopie2/opieui/opopupmenu.cpp +++ b/libopie2/opieui/opopupmenu.cpp @@ -85,7 +85,7 @@ void OPopupTitle::paintEvent(QPaintEvent *) { QRect r(rect()); QPainter p(this); - #if QT_VERSION > 290 + #if QT_VERSION >= 0x030000 qApp->style().drawPrimitive(QStyle::PE_HeaderSection, &p, r, palette().active()); #else #warning OPopupMenu is not fully functional on Qt2 @@ -549,7 +549,7 @@ bool OPopupMenu::eventFilter(QObject* obj, QEvent* event) return true; } } - #if QT_VERSION > 290 + #if QT_VERSION >= 0x030000 else if (event->type() == QEvent::ContextMenu) #else else if ( (event->type() == QEvent::MouseButtonPress) && -- cgit v0.9.0.2