summaryrefslogtreecommitdiffabout
path: root/korganizer
authorzautrix <zautrix>2005-06-18 12:47:08 (UTC)
committer zautrix <zautrix>2005-06-18 12:47:08 (UTC)
commit4ad2d49928757d72657735e088ac1cf587637fca (patch) (side-by-side diff)
tree34373eb6925de34900f762b5ebda6077efbd1b7c /korganizer
parent3c6bc55a0c7abf758df57bbb3dc0842bd6b87e6c (diff)
downloadkdepimpi-4ad2d49928757d72657735e088ac1cf587637fca.zip
kdepimpi-4ad2d49928757d72657735e088ac1cf587637fca.tar.gz
kdepimpi-4ad2d49928757d72657735e088ac1cf587637fca.tar.bz2
fixxx
Diffstat (limited to 'korganizer') (more/less context) (show whitespace changes)
-rw-r--r--korganizer/kotodoview.cpp15
1 files changed, 11 insertions, 4 deletions
diff --git a/korganizer/kotodoview.cpp b/korganizer/kotodoview.cpp
index 926a136..98c9bd9 100644
--- a/korganizer/kotodoview.cpp
+++ b/korganizer/kotodoview.cpp
@@ -72,5 +72,5 @@ KOStopTodoPrefs::KOStopTodoPrefs( Todo* todo, QWidget *parent, const char *name
lay->setSpacing( 3 );
lay->setMargin( 3 );
- QLabel * lab = new QLabel( i18n("%1\nis running!").arg( todo->summary() ), this );
+ QLabel * lab = new QLabel( i18n("<b>%1\n</b>").arg( todo->summary() ), this );
lay->addWidget( lab );
lab->setAlignment( AlignHCenter );
@@ -106,7 +106,7 @@ KOStopTodoPrefs::KOStopTodoPrefs( Todo* todo, QWidget *parent, const char *name
lay->addWidget( ok );
if (QApplication::desktop()->width() < 320 )
- resize( 240, 200 );
+ resize( 240, sizeHint().height() );
else
- resize( 320, 200 );
+ resize( 320, sizeHint().height() );
}
@@ -128,5 +128,5 @@ 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();
@@ -1205,4 +1205,11 @@ void KOTodoView::toggleRunningItem()
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();