summaryrefslogtreecommitdiffstats
path: root/kmymoney2/widgets/kmymoneyscheduleddatetbl.cpp
diff options
context:
space:
mode:
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);