summaryrefslogtreecommitdiffstats
path: root/kmymoney2/widgets/kmymoneyscheduleddatetbl.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/kmymoneyscheduleddatetbl.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/kmymoneyscheduleddatetbl.cpp')
-rw-r--r--kmymoney2/widgets/kmymoneyscheduleddatetbl.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/kmymoney2/widgets/kmymoneyscheduleddatetbl.cpp b/kmymoney2/widgets/kmymoneyscheduleddatetbl.cpp
index ad96947..964b0f6 100644
--- a/kmymoney2/widgets/kmymoneyscheduleddatetbl.cpp
+++ b/kmymoney2/widgets/kmymoneyscheduleddatetbl.cpp
@@ -81,9 +81,9 @@ void kMyMoneyScheduledDateTbl::drawCellContents(TQPainter *painter, int /*row*/,
int w=cellWidth();
int h=cellHeight();
TQPen pen;
- TQBrush brushBlue(KGlobalSettings::activeTitleColor());
- TQBrush brushLightblue(KGlobalSettings::baseColor());
- TQFont font=KGlobalSettings::generalFont();
+ TQBrush brushBlue(TDEGlobalSettings::activeTitleColor());
+ TQBrush brushLightblue(TDEGlobalSettings::baseColor());
+ TQFont font=TDEGlobalSettings::generalFont();
MyMoneyFile *file = MyMoneyFile::instance();
// -----
@@ -112,17 +112,17 @@ void kMyMoneyScheduledDateTbl::drawCellContents(TQPainter *painter, int /*row*/,
{
if (hasFocus())
{ // draw the currently selected date
- painter->setPen(KGlobalSettings::highlightColor());
- painter->setBrush(KGlobalSettings::highlightColor());
+ painter->setPen(TDEGlobalSettings::highlightColor());
+ painter->setBrush(TDEGlobalSettings::highlightColor());
pen=TQPen(white);
} else {
- painter->setPen(KGlobalSettings::calculateAlternateBackgroundColor(KGlobalSettings::highlightColor()));
- painter->setBrush(KGlobalSettings::calculateAlternateBackgroundColor(KGlobalSettings::highlightColor()));
+ painter->setPen(TDEGlobalSettings::calculateAlternateBackgroundColor(TDEGlobalSettings::highlightColor()));
+ painter->setBrush(TDEGlobalSettings::calculateAlternateBackgroundColor(TDEGlobalSettings::highlightColor()));
pen=TQPen(white);
}
} else {
- painter->setBrush(KGlobalSettings::baseColor());
- painter->setPen(KGlobalSettings::baseColor());
+ painter->setBrush(TDEGlobalSettings::baseColor());
+ painter->setPen(TDEGlobalSettings::baseColor());
}
painter->drawRect(0, 0, w, h);
painter->setPen(pen);
@@ -205,12 +205,12 @@ void kMyMoneyScheduledDateTbl::drawCellContents(TQPainter *painter, int /*row*/,
// TODO: Handle other start weekdays than Monday
if (theDate == date)
{
- painter->setBrush(KGlobalSettings::highlightColor());
+ painter->setBrush(TDEGlobalSettings::highlightColor());
}
else
{
- painter->setBrush(KGlobalSettings::baseColor());
- painter->setPen(KGlobalSettings::baseColor());
+ painter->setBrush(TDEGlobalSettings::baseColor());
+ painter->setPen(TDEGlobalSettings::baseColor());
}
painter->setPen(lightGray);
@@ -339,7 +339,7 @@ void kMyMoneyScheduledDateTbl::drawCellContents(TQPainter *painter, int /*row*/,
}
else if (m_type == QUARTERLY)
{
- painter->setBrush(KGlobalSettings::baseColor());
+ painter->setBrush(TDEGlobalSettings::baseColor());
painter->setPen(lightGray);
painter->drawRect(0, 0, w, h);
@@ -378,9 +378,9 @@ void kMyMoneyScheduledDateTbl::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);