author | erik <erik> | 2007-02-09 21:16:14 (UTC) |
---|---|---|
committer | erik <erik> | 2007-02-09 21:16:14 (UTC) |
commit | 570130f80c0db0c9acab25423b8e8424beb78491 (patch) (side-by-side diff) | |
tree | 6a42bf998188819bdf036e214e7c7e221cf5fd64 | |
parent | 2695f72652956e94e24611539579e7ff7899811e (diff) | |
download | opie-570130f80c0db0c9acab25423b8e8424beb78491.zip opie-570130f80c0db0c9acab25423b8e8424beb78491.tar.gz opie-570130f80c0db0c9acab25423b8e8424beb78491.tar.bz2 |
This commit is based on the patch submitted to bug 1702:
http://opie-bugs.oszine.de/view.php?id=1702
The problem behavior said that the day abbreviations in the PIM suite were
wrong for at least it and fr. The fix is to make sure that there is not a
translation of the abbreviations because the abbreviations have already
been translated.
Thanks goes to an anonymous reporter for reporting and to antonus for
submitting a patch. Thanks to Paul E. (aka BlueLightning) for bringing the
bug to our attention.
-rw-r--r-- | core/pim/datebook/modules/weeklst/datebookweeklstdayhdr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/pim/datebook/modules/weeklst/datebookweeklstdayhdr.cpp b/core/pim/datebook/modules/weeklst/datebookweeklstdayhdr.cpp index d173444..24a68ed 100644 --- a/core/pim/datebook/modules/weeklst/datebookweeklstdayhdr.cpp +++ b/core/pim/datebook/modules/weeklst/datebookweeklstdayhdr.cpp @@ -1,53 +1,53 @@ #include "datebookweeklstdayhdr.h"
#include "namespace_hack.h"
DateBookWeekLstDayHdr::DateBookWeekLstDayHdr(const QDate &d, bool /* onM */,
QWidget* parent,
const char* name,
WFlags fl )
: DateBookWeekLstDayHdrBase(parent, name, fl) {
date=d;
static const QString wdays=tr("MTWTFSSM", "Week days");
char day=wdays[d.dayOfWeek()-1];
//dont use dayOfWeek() to save space !
- label->setText( QString(QObject::tr(QString(QChar(day)))) + " " +QString::number(d.day()) );
+ label->setText( QString(QString(QChar(day))) + " " +QString::number(d.day()) );
add->setText("+");
if (d == QDate::currentDate()) {
QPalette pal=label->palette();
pal.setColor(QColorGroup::Foreground, QColor(0,0,255));
label->setPalette(pal);
/*
QFont f=label->font();
f.setItalic(true);
label->setFont(f);
label->setPalette(QPalette(QColor(0,0,255),label->backgroundColor()));
*/
} else if (d.dayOfWeek() == 7) { // FIXME: Match any holiday
QPalette pal=label->palette();
pal.setColor(QColorGroup::Foreground, QColor(255,0,0));
label->setPalette(pal);
}
connect (label, SIGNAL(clicked()), this, SLOT(showDay()));
connect (add, SIGNAL(clicked()), this, SLOT(newEvent()));
}
void DateBookWeekLstDayHdr::showDay() {
emit showDate(date.year(), date.month(), date.day());
}
void DateBookWeekLstDayHdr::newEvent() {
QDateTime start, stop;
start=stop=date;
start.setTime(QTime(10,0));
stop.setTime(QTime(12,0));
emit addEvent(start,stop,"",0);
}
|