summaryrefslogtreecommitdiffstats
path: root/kmymoney2/widgets/kmymoneydatetbl.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-24 13:21:28 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-24 13:21:28 -0600
commit6c1d52c8248adb9189c944a28efde52330e99b66 (patch)
tree842df8de70813d5097e5d7ffe04577c4077381d9 /kmymoney2/widgets/kmymoneydatetbl.cpp
parent4b12aca2f1e0304a1cb35df621e9a993dd4d81f7 (diff)
downloadkmymoney-6c1d52c8248adb9189c944a28efde52330e99b66.tar.gz
kmymoney-6c1d52c8248adb9189c944a28efde52330e99b66.zip
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
Diffstat (limited to 'kmymoney2/widgets/kmymoneydatetbl.cpp')
-rw-r--r--kmymoney2/widgets/kmymoneydatetbl.cpp38
1 files changed, 19 insertions, 19 deletions
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);