[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-edu-devel
Subject:    Re: [Kde-edu-devel] KDE 2 vs. KDE 3 compatibility question
From:       Waldo Bastian <bastian () kde ! org>
Date:       2001-12-03 1:10:19
[Download RAW message or body]

On Sunday 02 December 2001 03:52 pm, Jason Harris wrote:
> Hi,
>
> I have a line of code that I want to execute only if the user has KDE 3. 
> If they have KDE 2, it should be ignored.  How do I do this?  I know it
> will involve an #ifdef of some kind; are there automatic #define statements
> for the KDE version?  If not, how do I make one?
>
> A dumb question, perhaps, but I need to know :)

This one usually works just fine.
#if QT_VERSION < 300

You can also use KDE_VERSION, but be aware that the 3.0 betas will have 
version numbers like 291.

Cheers,
Waldo
_______________________________________________
kde-edu-devel mailing list
kde-edu-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/kde-edu-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic