summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2004-10-10 21:54:49 (UTC)
committer zautrix <zautrix>2004-10-10 21:54:49 (UTC)
commit640874bb21ea348edb33a54690ad225e0efdd1e4 (patch) (unidiff)
treea56ba08e3f091574af76bc0d37bb097eee686827
parent80ecf83fe91a61792576b5538891953cd19c4fec (diff)
downloadkdepimpi-640874bb21ea348edb33a54690ad225e0efdd1e4.zip
kdepimpi-640874bb21ea348edb33a54690ad225e0efdd1e4.tar.gz
kdepimpi-640874bb21ea348edb33a54690ad225e0efdd1e4.tar.bz2
added timer in WN view
Diffstat (more/less context) (ignore 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,
110 calPrinter->preview(CalPrinter::Day, fd, td); 110 calPrinter->preview(CalPrinter::Day, fd, td);
111#endif 111#endif
112} 112}
113void KOWhatsNextView::updateConfig() 113void KOWhatsNextView::updateConfig()
114{ 114{
115 setFont( KOPrefs::instance()->mWhatsNextFont ); 115 setFont( KOPrefs::instance()->mWhatsNextFont );
116 updateView(); 116 updateView();
117 117
118} 118}
119void KOWhatsNextView::showEvent ( QShowEvent * e ) 119void KOWhatsNextView::showEvent ( QShowEvent * e )
120{ 120{
121 //qDebug("KOWhatsNextView::showEvent "); 121 //qDebug("KOWhatsNextView::showEvent ");
122 restartTimer(); 122 restartTimer();
123 QWidget::showEvent ( e ); 123 QWidget::showEvent ( e );
124} 124}
125void KOWhatsNextView::hideEvent ( QHideEvent * e) 125void KOWhatsNextView::hideEvent ( QHideEvent * e)
126{ 126{
127 //qDebug(" KOWhatsNextView::hideEvent"); 127 //qDebug(" KOWhatsNextView::hideEvent");
128 mTimer->stop(); 128 mTimer->stop();
129 QWidget::hideEvent ( e ); 129 QWidget::hideEvent ( e );
130} 130}
131void KOWhatsNextView::restartTimer() 131void KOWhatsNextView::restartTimer()
132{ 132{
133 //qDebug("KOWhatsNextView::restartTimer() "); 133 //qDebug("KOWhatsNextView::restartTimer() ");
134 mTimer->start( 180000 ); 134 mTimer->start( 300000 );
135 //mTimer->start( 5000 ); 135 //mTimer->start( 5000 );
136} 136}
137void KOWhatsNextView::updateView() 137void KOWhatsNextView::updateView()
138{ 138{
139 if ( mTimer->isActive() ) 139 if ( mTimer->isActive() )
140 restartTimer(); 140 restartTimer();
141 //qDebug("KOWhatsNextView::updateView() "); 141 //qDebug("KOWhatsNextView::updateView() ");
142 // mDateLabel->setText(KGlobal::locale()->formatDate(QDate::currentDate())); 142 // mDateLabel->setText(KGlobal::locale()->formatDate(QDate::currentDate()));
143 KIconLoader kil("korganizer"); 143 KIconLoader kil("korganizer");
144 QString ipath;// = new QString(); 144 QString ipath;// = new QString();
145 // kil.loadIcon("korganizer",KIcon::NoGroup,32,KIcon::DefaultState,&ipath); 145 // kil.loadIcon("korganizer",KIcon::NoGroup,32,KIcon::DefaultState,&ipath);
146 //<big><big><strong>" + date + "</strong></big></big>\n"; 146 //<big><big><strong>" + date + "</strong></big></big>\n";
147 mText = "<table width=\"100%\">\n"; 147 mText = "<table width=\"100%\">\n";
148 //mText += "<tr bgcolor=\"#3679AD\"><td><h2>"; 148 //mText += "<tr bgcolor=\"#3679AD\"><td><h2>";
149#ifdef DESKTOP_VERSION 149#ifdef DESKTOP_VERSION
150 mText += "<tr bgcolor=\"#5699CD\"><td align=\"center\"><h1>"; 150 mText += "<tr bgcolor=\"#5699CD\"><td align=\"center\"><h1>";
151#else 151#else
152 mText += "<tr bgcolor=\"#5699CD\"><td align=\"center\"><h2>"; 152 mText += "<tr bgcolor=\"#5699CD\"><td align=\"center\"><h2>";
153#endif 153#endif
154 // mText += "<img src=\""; 154 // mText += "<img src=\"";
155 // mText += ipath; 155 // mText += ipath;
156 // mText += "\">"; 156 // mText += "\">";
157 mEventDate = QDate::currentDate(); 157 mEventDate = QDate::currentDate();
158#ifdef DESKTOP_VERSION 158#ifdef DESKTOP_VERSION