From 6c1d52c8248adb9189c944a28efde52330e99b66 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 24 Jan 2013 13:21:28 -0600 Subject: Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4 --- kmymoney2/widgets/kmymoneydatetbl.cpp | 38 +++++++++++++++++------------------ 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'kmymoney2/widgets/kmymoneydatetbl.cpp') diff --git a/kmymoney2/widgets/kmymoneydatetbl.cpp b/kmymoney2/widgets/kmymoneydatetbl.cpp index 2a51307..21aab16 100644 --- a/kmymoney2/widgets/kmymoneydatetbl.cpp +++ b/kmymoney2/widgets/kmymoneydatetbl.cpp @@ -85,7 +85,7 @@ kMyMoneyDateTbl::kMyMoneyDateTbl(TQWidget *parent, TQDate date_, const char* nam setFocusPolicy( TQ_StrongFocus ); - viewport()->setEraseColor(KGlobalSettings::baseColor()); + viewport()->setEraseColor(TDEGlobalSettings::baseColor()); setDate(date_); // this initializes firstday, numdays, numDaysPrevMonth @@ -102,17 +102,17 @@ kMyMoneyDateTbl::paintCell(TQPainter *painter, int row, int col) TQPen pen; int w=cellWidth(); int h=cellHeight(); - TQBrush brushBlue(KGlobalSettings::activeTitleColor()); - TQBrush brushLightblue(KGlobalSettings::baseColor()); - TQFont font=KGlobalSettings::generalFont(); + TQBrush brushBlue(TDEGlobalSettings::activeTitleColor()); + TQBrush brushLightblue(TDEGlobalSettings::baseColor()); + TQFont font=TDEGlobalSettings::generalFont(); // ----- font.setPointSize(fontsize); #if TDE_VERSION < 310 - int firstWeekDay = KGlobal::locale()->weekStartsMonday() ? 1 : 0; + int firstWeekDay = TDEGlobal::locale()->weekStartsMonday() ? 1 : 0; #else - int firstWeekDay = KGlobal::locale()->weekStartDay(); + int firstWeekDay = TDEGlobal::locale()->weekStartDay(); #endif if (row==0) @@ -133,19 +133,19 @@ kMyMoneyDateTbl::paintCell(TQPainter *painter, int row, int col) if (!normalday) { - painter->setPen(KGlobalSettings::baseColor()); + painter->setPen(TDEGlobalSettings::baseColor()); painter->setBrush(brushLightblue); painter->drawRect(0, 0, w, h); - painter->setPen(KGlobalSettings::activeTitleColor()); + painter->setPen(TDEGlobalSettings::activeTitleColor()); } else { - painter->setPen(KGlobalSettings::activeTitleColor()); + painter->setPen(TDEGlobalSettings::activeTitleColor()); painter->setBrush(brushBlue); painter->drawRect(0, 0, w, h); - painter->setPen(KGlobalSettings::activeTextColor()); + painter->setPen(TDEGlobalSettings::activeTextColor()); } painter->drawText(0, 0, w, h-1, AlignCenter, daystr, -1, &rect); - painter->setPen(KGlobalSettings::textColor()); + painter->setPen(TDEGlobalSettings::textColor()); painter->moveTo(0, h-1); painter->lineTo(w-1, h-1); @@ -157,10 +157,10 @@ kMyMoneyDateTbl::paintCell(TQPainter *painter, int row, int col) } else if (m_type == WEEKLY) { - painter->setPen(KGlobalSettings::activeTitleColor()); + painter->setPen(TDEGlobalSettings::activeTitleColor()); painter->setBrush(brushBlue); painter->drawRect(0, 0, w, h); - painter->setPen(KGlobalSettings::activeTextColor()); + painter->setPen(TDEGlobalSettings::activeTextColor()); int year=date.year(); TQString headerText; @@ -182,9 +182,9 @@ kMyMoneyDateTbl::paintCell(TQPainter *painter, int row, int col) { int athird = width()/3; - painter->setPen(KGlobalSettings::activeTitleColor()); + painter->setPen(TDEGlobalSettings::activeTitleColor()); painter->setBrush(brushBlue); - painter->setPen(/*KGlobalSettings::activeTextColor()*/black); + painter->setPen(/*TDEGlobalSettings::activeTextColor()*/black); if (col == 0) { @@ -379,9 +379,9 @@ kMyMoneyDateTbl::contentsMouseReleaseEvent(TQMouseEvent *e) } #if TDE_VERSION < 310 - int dayoff = KGlobal::locale()->weekStartsMonday() ? 1 : 0; + int dayoff = TDEGlobal::locale()->weekStartsMonday() ? 1 : 0; #else - int dayoff = KGlobal::locale()->weekStartDay(); + int dayoff = TDEGlobal::locale()->weekStartDay(); #endif // ----- @@ -572,9 +572,9 @@ void kMyMoneyDateTbl::contentsMouseMoveEvent(TQMouseEvent* e) } #if TDE_VERSION < 310 - int firstWeekDay = KGlobal::locale()->weekStartsMonday() ? 1 : 0; + int firstWeekDay = TDEGlobal::locale()->weekStartsMonday() ? 1 : 0; #else - int firstWeekDay = KGlobal::locale()->weekStartDay(); + int firstWeekDay = TDEGlobal::locale()->weekStartDay(); #endif TQDate drawDate(date); -- cgit v1.2.1