From 4ad2d49928757d72657735e088ac1cf587637fca Mon Sep 17 00:00:00 2001 From: zautrix Date: Sat, 18 Jun 2005 12:47:08 +0000 Subject: fixxx --- (limited to 'korganizer/kotodoview.cpp') diff --git a/korganizer/kotodoview.cpp b/korganizer/kotodoview.cpp index 926a136..98c9bd9 100644 --- a/korganizer/kotodoview.cpp +++ b/korganizer/kotodoview.cpp @@ -71,7 +71,7 @@ KOStopTodoPrefs::KOStopTodoPrefs( Todo* todo, QWidget *parent, const char *name QVBoxLayout* lay = new QVBoxLayout( this ); lay->setSpacing( 3 ); lay->setMargin( 3 ); - QLabel * lab = new QLabel( i18n("%1\nis running!").arg( todo->summary() ), this ); + QLabel * lab = new QLabel( i18n("%1\n").arg( todo->summary() ), this ); lay->addWidget( lab ); lab->setAlignment( AlignHCenter ); lab = new QLabel( i18n("Additional Comment:"), this ); @@ -105,9 +105,9 @@ KOStopTodoPrefs::KOStopTodoPrefs( Todo* todo, QWidget *parent, const char *name connect ( ok,SIGNAL(clicked() ),this , SLOT ( doNotSave() ) ); lay->addWidget( ok ); if (QApplication::desktop()->width() < 320 ) - resize( 240, 200 ); + resize( 240, sizeHint().height() ); else - resize( 320, 200 ); + resize( 320, sizeHint().height() ); } @@ -127,7 +127,7 @@ void KOStopTodoPrefs::accept() void KOStopTodoPrefs::doNotSave() { int result = KMessageBox::warningContinueCancel(this, - i18n("Do you really want to set\nthe state to stopped\nwithout saving the data?"),mTodo->summary() ); + i18n("Do you really want to set\nthe state to stopped\nwithout saving the data?"),mTodo->summary(),i18n("Yes, stop todo") ); if (result != KMessageBox::Continue) return; mTodo->stopRunning(); QDialog::accept(); @@ -1204,6 +1204,13 @@ void KOTodoView::toggleRunningItem() Todo * t = mActiveItem->todo(); if ( t->isRunning() ) { KOStopTodoPrefs tp ( t, this ); + if (QApplication::desktop()->width() < 800 ){ + int wid = tp.width(); + int hei = tp.height(); + int xx = (QApplication::desktop()->width()-wid)/2; + int yy = (QApplication::desktop()->height()-hei)/2; + tp.setGeometry( xx,yy,wid,hei ); + } tp.exec(); mActiveItem->construct(); } else { -- cgit v0.9.0.2