From 0e0ac7a92ac2fe052b3e72d49e505a078b05e7f3 Mon Sep 17 00:00:00 2001 From: zautrix Date: Fri, 03 Jun 2005 23:47:47 +0000 Subject: fixxx --- (limited to 'korganizer') diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index c01be9b..5132f98 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp @@ -146,18 +146,18 @@ MissedAlarmTextBrowser::MissedAlarmTextBrowser(QWidget *parent, QPtrList\n"; //mText += "

"; #ifdef DESKTOP_VERSION - mText += "

"; -#else mText += "

"; +#else + mText += "

"; #endif // mText += ""; //mEventDate = QDate::currentDate(); #ifdef DESKTOP_VERSION - mText += " " + i18n("You missed the alarms for the following events or todos:")+"

"; -#else mText += " " + i18n("You missed the alarms for the following events or todos:")+""; +#else + mText += " " + i18n("You missed the alarms for the following events or todos:")+""; #endif mText += "\n"; @@ -630,7 +630,7 @@ void CalendarView::checkAlarms() config->setGroup( "AppRun" ); QDateTime dt ( QDate (2005,1,1), QTime( 0,0,0 ) ); int secs = config->readNumEntry( "LatestProgramStop" ) - 30; - secs -= ( 3600 * 24*3 ); // debug only + secs -= ( 3600 * 24*3 ); // debug only QDateTime latest = dt.addSecs ( secs ); qDebug("KO: Last termination on %s ", latest.toString().latin1()); QPtrList el = mCalendar->rawIncidences(); @@ -650,16 +650,20 @@ void CalendarView::checkAlarms() inL = el.next(); } if ( al.count() ) { - QDialog dia ( this, "huhu", true ); - dia.setCaption( i18n("KO/Pi: Missing alarm notification!") ); - QVBoxLayout* lay = new QVBoxLayout( &dia ); - lay->setSpacing( 3 ); - lay->setMargin( 3 ); - MissedAlarmTextBrowser* matb = new MissedAlarmTextBrowser ( &dia, al, latest ); + QDialog* dia = new QDialog( this, "huhu", false ); + dia->setCaption( i18n("KO/Pi: Missing alarm notification!") ); + QVBoxLayout* lay = new QVBoxLayout( dia ); + lay->setSpacing( 0 ); + lay->setMargin( 0 ); + MissedAlarmTextBrowser* matb = new MissedAlarmTextBrowser ( dia, al, latest ); connect( matb, SIGNAL( showIncidence( QString ) ),SLOT( showIncidence( QString ) )); lay->addWidget( matb ); - dia.resize(240,240); - dia.exec(); + int si = 220; + if ( QApplication::desktop()->width() > 470 ) + si = 400; + dia->resize(si,si/2); + dia->setBackgroundColor( QColor( 255, 255, 255 ) ); + dia->show(); } } -- cgit v0.9.0.2