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/qt3/opieui/oeditlistbox.cpp') diff --git a/libopie2/qt3/opieui/oeditlistbox.cpp b/libopie2/qt3/opieui/oeditlistbox.cpp index 0e95274..dcc697d 100644 --- a/libopie2/qt3/opieui/oeditlistbox.cpp +++ b/libopie2/qt3/opieui/oeditlistbox.cpp @@ -192,7 +192,7 @@ void OEditListBox::typedSomething(const QString& text) } else { - #if QT_VERSION > 290 + #if QT_VERSION >= 0x030000 StringComparisonMode mode = (StringComparisonMode) (ExactMatch | CaseSensitive ); bool enable = (m_listBox->findItem( text, mode ) == 0L); #else @@ -267,7 +267,7 @@ void OEditListBox::addItem() alreadyInList = true; else { - #if QT_VERSION > 290 + #if QT_VERSION >= 0x030000 StringComparisonMode mode = (StringComparisonMode) (ExactMatch | CaseSensitive ); alreadyInList =(m_listBox->findItem(currentTextLE, mode) != 0); #else @@ -300,7 +300,7 @@ void OEditListBox::addItem() int OEditListBox::currentItem() const { int nr = m_listBox->currentItem(); - #if QT_VERSION > 290 + #if QT_VERSION >= 0x030000 if(nr >= 0 && !m_listBox->item(nr)->isSelected()) return -1; #else if(nr >= 0 && !m_listBox->isSelected(m_listBox->item(nr))) return -1; -- cgit v0.9.0.2