summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-06-18 12:47:08 (UTC)
committer zautrix <zautrix>2005-06-18 12:47:08 (UTC)
commit4ad2d49928757d72657735e088ac1cf587637fca (patch) (unidiff)
tree34373eb6925de34900f762b5ebda6077efbd1b7c
parent3c6bc55a0c7abf758df57bbb3dc0842bd6b87e6c (diff)
downloadkdepimpi-4ad2d49928757d72657735e088ac1cf587637fca.zip
kdepimpi-4ad2d49928757d72657735e088ac1cf587637fca.tar.gz
kdepimpi-4ad2d49928757d72657735e088ac1cf587637fca.tar.bz2
fixxx
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--bin/kdepim/korganizer/germantranslation.txt2
-rw-r--r--korganizer/kotodoview.cpp15
2 files changed, 12 insertions, 5 deletions
diff --git a/bin/kdepim/korganizer/germantranslation.txt b/bin/kdepim/korganizer/germantranslation.txt
index f22c177..6ddfc5f 100644
--- a/bin/kdepim/korganizer/germantranslation.txt
+++ b/bin/kdepim/korganizer/germantranslation.txt
@@ -1432,7 +1432,7 @@
1432{ "Do you really want to set\nthe state to stopped\nwithout saving the data?","Möchten sie den Zustand\nwirklich auf gestoppt setzen\nohne die Daten abzuspeichern?" }, 1432{ "Do you really want to set\nthe state to stopped\nwithout saving the data?","Möchten sie den Zustand\nwirklich auf gestoppt setzen\nohne die Daten abzuspeichern?" },
1433{ "Time mismatch!","Zeiten stimmen nicht!" }, 1433{ "Time mismatch!","Zeiten stimmen nicht!" },
1434{ "The start time is\nafter the end time!","Die Startzeit ist\nhinter der Endzeit!" }, 1434{ "The start time is\nafter the end time!","Die Startzeit ist\nhinter der Endzeit!" },
1435{ "","" }, 1435{ "Yes, stop todo","Ja, stoppe Todo" },
1436{ "","" }, 1436{ "","" },
1437{ "","" }, 1437{ "","" },
1438{ "","" }, 1438{ "","" },
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
71 QVBoxLayout* lay = new QVBoxLayout( this ); 71 QVBoxLayout* lay = new QVBoxLayout( this );
72 lay->setSpacing( 3 ); 72 lay->setSpacing( 3 );
73 lay->setMargin( 3 ); 73 lay->setMargin( 3 );
74 QLabel * lab = new QLabel( i18n("%1\nis running!").arg( todo->summary() ), this ); 74 QLabel * lab = new QLabel( i18n("<b>%1\n</b>").arg( todo->summary() ), this );
75 lay->addWidget( lab ); 75 lay->addWidget( lab );
76 lab->setAlignment( AlignHCenter ); 76 lab->setAlignment( AlignHCenter );
77 lab = new QLabel( i18n("Additional Comment:"), this ); 77 lab = new QLabel( i18n("Additional Comment:"), this );
@@ -105,9 +105,9 @@ KOStopTodoPrefs::KOStopTodoPrefs( Todo* todo, QWidget *parent, const char *name
105 connect ( ok,SIGNAL(clicked() ),this , SLOT ( doNotSave() ) ); 105 connect ( ok,SIGNAL(clicked() ),this , SLOT ( doNotSave() ) );
106 lay->addWidget( ok ); 106 lay->addWidget( ok );
107 if (QApplication::desktop()->width() < 320 ) 107 if (QApplication::desktop()->width() < 320 )
108 resize( 240, 200 ); 108 resize( 240, sizeHint().height() );
109 else 109 else
110 resize( 320, 200 ); 110 resize( 320, sizeHint().height() );
111 111
112} 112}
113 113
@@ -127,7 +127,7 @@ void KOStopTodoPrefs::accept()
127void KOStopTodoPrefs::doNotSave() 127void KOStopTodoPrefs::doNotSave()
128{ 128{
129 int result = KMessageBox::warningContinueCancel(this, 129 int result = KMessageBox::warningContinueCancel(this,
130 i18n("Do you really want to set\nthe state to stopped\nwithout saving the data?"),mTodo->summary() ); 130 i18n("Do you really want to set\nthe state to stopped\nwithout saving the data?"),mTodo->summary(),i18n("Yes, stop todo") );
131 if (result != KMessageBox::Continue) return; 131 if (result != KMessageBox::Continue) return;
132 mTodo->stopRunning(); 132 mTodo->stopRunning();
133 QDialog::accept(); 133 QDialog::accept();
@@ -1204,6 +1204,13 @@ void KOTodoView::toggleRunningItem()
1204 Todo * t = mActiveItem->todo(); 1204 Todo * t = mActiveItem->todo();
1205 if ( t->isRunning() ) { 1205 if ( t->isRunning() ) {
1206 KOStopTodoPrefs tp ( t, this ); 1206 KOStopTodoPrefs tp ( t, this );
1207 if (QApplication::desktop()->width() < 800 ){
1208 int wid = tp.width();
1209 int hei = tp.height();
1210 int xx = (QApplication::desktop()->width()-wid)/2;
1211 int yy = (QApplication::desktop()->height()-hei)/2;
1212 tp.setGeometry( xx,yy,wid,hei );
1213 }
1207 tp.exec(); 1214 tp.exec();
1208 mActiveItem->construct(); 1215 mActiveItem->construct();
1209 } else { 1216 } else {