summaryrefslogtreecommitdiffabout
path: root/korganizer
authorzautrix <zautrix>2005-06-04 09:25:09 (UTC)
committer zautrix <zautrix>2005-06-04 09:25:09 (UTC)
commitd40cf5135c640506011334364274b8ee5df9998b (patch) (side-by-side diff)
tree56895a78e170856ff641dfa13f2f6eb4cc2b3488 /korganizer
parent0e0ac7a92ac2fe052b3e72d49e505a078b05e7f3 (diff)
downloadkdepimpi-d40cf5135c640506011334364274b8ee5df9998b.zip
kdepimpi-d40cf5135c640506011334364274b8ee5df9998b.tar.gz
kdepimpi-d40cf5135c640506011334364274b8ee5df9998b.tar.bz2
fix
Diffstat (limited to 'korganizer') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/calendarview.cpp10
-rw-r--r--korganizer/calendarview.h1
-rw-r--r--korganizer/mainwindow.cpp7
3 files changed, 13 insertions, 5 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp
index 5132f98..42166ab 100644
--- a/korganizer/calendarview.cpp
+++ b/korganizer/calendarview.cpp
@@ -212,4 +212,8 @@ MissedAlarmTextBrowser::MissedAlarmTextBrowser(QWidget *parent, QPtrList<Inciden
}
+MissedAlarmTextBrowser::~MissedAlarmTextBrowser()
+{
+ //qDebug("delete MissedAlarmTextBrowser::~MissedAlarmTextBrowser() ");
+}
Incidence * MissedAlarmTextBrowser::getNextInc( QDateTime start )
{
@@ -645,5 +649,5 @@ void CalendarView::checkAlarms()
if ( next < QDateTime::currentDateTime() ) {
al.append( inL );
- qDebug("found missed alarm: %s ", inL->summary().latin1() );
+ //qDebug("found missed alarm: %s ", inL->summary().latin1() );
}
}
@@ -651,6 +655,6 @@ void CalendarView::checkAlarms()
}
if ( al.count() ) {
- QDialog* dia = new QDialog( this, "huhu", false );
- dia->setCaption( i18n("KO/Pi: Missing alarm notification!") );
+ QDialog* dia = new QDialog( this, "huhu", false, WDestructiveClose | WStyle_StaysOnTop );
+ dia->setCaption( i18n("KO/Pi: Missing alarms!") );
QVBoxLayout* lay = new QVBoxLayout( dia );
lay->setSpacing( 0 );
diff --git a/korganizer/calendarview.h b/korganizer/calendarview.h
index 1eca905..084b6db 100644
--- a/korganizer/calendarview.h
+++ b/korganizer/calendarview.h
@@ -89,4 +89,5 @@ class MissedAlarmTextBrowser : public QTextBrowser {
public:
MissedAlarmTextBrowser(QWidget *parent, QPtrList<Incidence> alarms ,QDateTime start);
+ ~MissedAlarmTextBrowser();
void setSource(const QString & n);
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp
index 1320231..63053a5 100644
--- a/korganizer/mainwindow.cpp
+++ b/korganizer/mainwindow.cpp
@@ -373,6 +373,9 @@ MainWindow::MainWindow( QWidget *parent, const char *name, QString msg) :
mBRdisabled = false;
//toggleBeamReceive();
-
- QTimer::singleShot( 1000, mView, SLOT ( checkAlarms() ));
+ int tiint= 3000;
+#ifndef DESKTOP_VERSION
+ tiint = 5000;
+#endif
+ QTimer::singleShot( tiint, mView, SLOT ( checkAlarms() ));
}
MainWindow::~MainWindow()