summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2004-10-10 21:54:49 (UTC)
committer zautrix <zautrix>2004-10-10 21:54:49 (UTC)
commit640874bb21ea348edb33a54690ad225e0efdd1e4 (patch) (side-by-side diff)
treea56ba08e3f091574af76bc0d37bb097eee686827
parent80ecf83fe91a61792576b5538891953cd19c4fec (diff)
downloadkdepimpi-640874bb21ea348edb33a54690ad225e0efdd1e4.zip
kdepimpi-640874bb21ea348edb33a54690ad225e0efdd1e4.tar.gz
kdepimpi-640874bb21ea348edb33a54690ad225e0efdd1e4.tar.bz2
added timer in WN view
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--korganizer/kowhatsnextview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/korganizer/kowhatsnextview.cpp b/korganizer/kowhatsnextview.cpp
index 9b53110..0fea9be 100644
--- a/korganizer/kowhatsnextview.cpp
+++ b/korganizer/kowhatsnextview.cpp
@@ -110,49 +110,49 @@ void KOWhatsNextView::printPreview(CalPrinter *calPrinter, const QDate &fd,
calPrinter->preview(CalPrinter::Day, fd, td);
#endif
}
void KOWhatsNextView::updateConfig()
{
setFont( KOPrefs::instance()->mWhatsNextFont );
updateView();
}
void KOWhatsNextView::showEvent ( QShowEvent * e )
{
//qDebug("KOWhatsNextView::showEvent ");
restartTimer();
QWidget::showEvent ( e );
}
void KOWhatsNextView::hideEvent ( QHideEvent * e)
{
//qDebug(" KOWhatsNextView::hideEvent");
mTimer->stop();
QWidget::hideEvent ( e );
}
void KOWhatsNextView::restartTimer()
{
//qDebug("KOWhatsNextView::restartTimer() ");
- mTimer->start( 180000 );
+ mTimer->start( 300000 );
//mTimer->start( 5000 );
}
void KOWhatsNextView::updateView()
{
if ( mTimer->isActive() )
restartTimer();
//qDebug("KOWhatsNextView::updateView() ");
// mDateLabel->setText(KGlobal::locale()->formatDate(QDate::currentDate()));
KIconLoader kil("korganizer");
QString ipath;// = new QString();
// kil.loadIcon("korganizer",KIcon::NoGroup,32,KIcon::DefaultState,&ipath);
//<big><big><strong>" + date + "</strong></big></big>\n";
mText = "<table width=\"100%\">\n";
//mText += "<tr bgcolor=\"#3679AD\"><td><h2>";
#ifdef DESKTOP_VERSION
mText += "<tr bgcolor=\"#5699CD\"><td align=\"center\"><h1>";
#else
mText += "<tr bgcolor=\"#5699CD\"><td align=\"center\"><h2>";
#endif
// mText += "<img src=\"";
// mText += ipath;
// mText += "\">";
mEventDate = QDate::currentDate();
#ifdef DESKTOP_VERSION