Rename KDE_VERSION to TDE_VERSION

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

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

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

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

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

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

Loading…
Cancel
Save