Rename KDE_VERSION to TDE_VERSION

r14.0.x
Timothy Pearson 13 years ago
parent c1a367c350
commit db2f713d0a

@ -24,14 +24,14 @@
#endif #endif
#ifndef KDE_IS_VERSION #ifndef KDE_IS_VERSION
#define KDE_IS_VERSION(a,b,c) (KDE_VERSION >= KDE_MAKE_VERSION(a,b,c)) #define KDE_IS_VERSION(a,b,c) (TDE_VERSION >= KDE_MAKE_VERSION(a,b,c))
#endif #endif
#ifndef QT_IS_VERSION #ifndef QT_IS_VERSION
#define QT_IS_VERSION(a,b,c) (QT_VERSION >= KDE_MAKE_VERSION(a,b,c)) #define QT_IS_VERSION(a,b,c) (QT_VERSION >= KDE_MAKE_VERSION(a,b,c))
#endif #endif
#if KDE_VERSION < KDE_MAKE_VERSION(3,2,0) #if TDE_VERSION < KDE_MAKE_VERSION(3,2,0)
#define KDE_DEPRECATED #define KDE_DEPRECATED
#endif #endif

@ -336,7 +336,7 @@ kMyMoneyCalendar::yearBackwardClicked()
void void
kMyMoneyCalendar::selectWeekClicked() kMyMoneyCalendar::selectWeekClicked()
{ {
#if KDE_VERSION >= 310 && KDE_VERSION <= 314 #if TDE_VERSION >= 310 && TDE_VERSION <= 314
int week; int week;
KPopupFrame* popup = new KPopupFrame(this); KPopupFrame* popup = new KPopupFrame(this);
KDateInternalWeekSelector* picker = new KDateInternalWeekSelector(/*fontsize, */popup); KDateInternalWeekSelector* picker = new KDateInternalWeekSelector(/*fontsize, */popup);
@ -375,7 +375,7 @@ kMyMoneyCalendar::selectWeekClicked()
void void
kMyMoneyCalendar::selectMonthClicked() kMyMoneyCalendar::selectMonthClicked()
{ {
#if KDE_VERSION >= 310 && KDE_VERSION <= 314 #if TDE_VERSION >= 310 && TDE_VERSION <= 314
int month; int month;
KPopupFrame* popup = new KPopupFrame(this); KPopupFrame* popup = new KPopupFrame(this);
KDateInternalMonthPicker* picker = new KDateInternalMonthPicker(/*fontsize, */popup); KDateInternalMonthPicker* picker = new KDateInternalMonthPicker(/*fontsize, */popup);
@ -407,7 +407,7 @@ kMyMoneyCalendar::selectMonthClicked()
void void
kMyMoneyCalendar::selectYearClicked() kMyMoneyCalendar::selectYearClicked()
{ {
#if KDE_VERSION >= 310 && KDE_VERSION <= 314 #if TDE_VERSION >= 310 && TDE_VERSION <= 314
int year; int year;
KPopupFrame* popup = new KPopupFrame(this); KPopupFrame* popup = new KPopupFrame(this);
KDateInternalYearSelector* picker = new KDateInternalYearSelector(fontsize, popup); KDateInternalYearSelector* picker = new KDateInternalYearSelector(fontsize, popup);

@ -109,7 +109,7 @@ kMyMoneyDateTbl::paintCell(TQPainter *painter, int row, int col)
// ----- // -----
font.setPointSize(fontsize); font.setPointSize(fontsize);
#if KDE_VERSION < 310 #if TDE_VERSION < 310
int firstWeekDay = KGlobal::locale()->weekStartsMonday() ? 1 : 0; int firstWeekDay = KGlobal::locale()->weekStartsMonday() ? 1 : 0;
#else #else
int firstWeekDay = KGlobal::locale()->weekStartDay(); int firstWeekDay = KGlobal::locale()->weekStartDay();
@ -378,7 +378,7 @@ kMyMoneyDateTbl::contentsMouseReleaseEvent(TQMouseEvent *e)
return; return;
} }
#if KDE_VERSION < 310 #if TDE_VERSION < 310
int dayoff = KGlobal::locale()->weekStartsMonday() ? 1 : 0; int dayoff = KGlobal::locale()->weekStartsMonday() ? 1 : 0;
#else #else
int dayoff = KGlobal::locale()->weekStartDay(); int dayoff = KGlobal::locale()->weekStartDay();
@ -571,7 +571,7 @@ void kMyMoneyDateTbl::contentsMouseMoveEvent(TQMouseEvent* e)
return; return;
} }
#if KDE_VERSION < 310 #if TDE_VERSION < 310
int firstWeekDay = KGlobal::locale()->weekStartsMonday() ? 1 : 0; int firstWeekDay = KGlobal::locale()->weekStartsMonday() ? 1 : 0;
#else #else
int firstWeekDay = KGlobal::locale()->weekStartDay(); int firstWeekDay = KGlobal::locale()->weekStartDay();

@ -42,7 +42,7 @@ class KPushButton;
class MyMoneyMoney; class MyMoneyMoney;
class kMyMoneyCalculator; class kMyMoneyCalculator;
#if KDE_VERSION <= KDE_MAKE_VERSION(3,1,0) #if TDE_VERSION <= KDE_MAKE_VERSION(3,1,0)
#define KDoubleValidator TQDoubleValidator #define KDoubleValidator TQDoubleValidator
#endif #endif

@ -377,7 +377,7 @@ void kMyMoneyScheduledDateTbl::contentsMouseMoveEvent(TQMouseEvent* e)
return; return;
} }
#if KDE_VERSION < 310 #if TDE_VERSION < 310
int firstWeekDay = KGlobal::locale()->weekStartsMonday() ? 1 : 0; int firstWeekDay = KGlobal::locale()->weekStartsMonday() ? 1 : 0;
#else #else
int firstWeekDay = KGlobal::locale()->weekStartDay(); int firstWeekDay = KGlobal::locale()->weekStartDay();

Loading…
Cancel
Save