author | zautrix <zautrix> | 2005-06-03 23:47:47 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-03 23:47:47 (UTC) |
commit | 0e0ac7a92ac2fe052b3e72d49e505a078b05e7f3 (patch) (side-by-side diff) | |
tree | 01c96ae843e7a988d6957a5353616b42e0b322da | |
parent | aa0f7df485c3ff0c298d4924ac1e8a5e9e6da627 (diff) | |
download | kdepimpi-0e0ac7a92ac2fe052b3e72d49e505a078b05e7f3.zip kdepimpi-0e0ac7a92ac2fe052b3e72d49e505a078b05e7f3.tar.gz kdepimpi-0e0ac7a92ac2fe052b3e72d49e505a078b05e7f3.tar.bz2 |
fixxx
-rw-r--r-- | korganizer/calendarview.cpp | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index c01be9b..5132f98 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp @@ -148,5 +148,5 @@ MissedAlarmTextBrowser::MissedAlarmTextBrowser(QWidget *parent, QPtrList<Inciden #ifdef DESKTOP_VERSION - mText += "<tr bgcolor=\"#5699CD\"><td align=\"center\"><h1>"; -#else mText += "<tr bgcolor=\"#5699CD\"><td align=\"center\"><h2>"; +#else + mText += "<tr bgcolor=\"#5699CD\"><td align=\"center\"><h3>"; #endif @@ -157,5 +157,5 @@ MissedAlarmTextBrowser::MissedAlarmTextBrowser(QWidget *parent, QPtrList<Inciden #ifdef DESKTOP_VERSION - mText += "<font color=\"#FFFFFF\"> <em>" + i18n("You missed the alarms for the following events or todos:")+"</em></font></h1>"; -#else mText += "<font color=\"#FFFFFF\"> <em>" + i18n("You missed the alarms for the following events or todos:")+"</em></font></h2>"; +#else + mText += "<font color=\"#FFFFFF\"> <em>" + i18n("You missed the alarms for the following events or todos:")+"</em></font></h3>"; #endif @@ -652,12 +652,16 @@ void CalendarView::checkAlarms() 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(); |