summaryrefslogtreecommitdiffabout
path: root/korganizer
authorzautrix <zautrix>2004-12-05 11:14:32 (UTC)
committer zautrix <zautrix>2004-12-05 11:14:32 (UTC)
commit196365e533c6fd1a8f47aa9579763ef5afcebcda (patch) (side-by-side diff)
tree3784f0be50b790d9386db1e4ebd29d44317db026 /korganizer
parente4e75984b6cb581d87d436cb6c5140eb57dbdc51 (diff)
downloadkdepimpi-196365e533c6fd1a8f47aa9579763ef5afcebcda.zip
kdepimpi-196365e533c6fd1a8f47aa9579763ef5afcebcda.tar.gz
kdepimpi-196365e533c6fd1a8f47aa9579763ef5afcebcda.tar.bz2
layout bugfixes
Diffstat (limited to 'korganizer') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/calendarview.cpp14
-rw-r--r--korganizer/koeditordetails.cpp7
-rw-r--r--korganizer/mainwindow.cpp5
3 files changed, 18 insertions, 8 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp
index 47cd488..543897a 100644
--- a/korganizer/calendarview.cpp
+++ b/korganizer/calendarview.cpp
@@ -2451,6 +2451,9 @@ void CalendarView::showEventEditor()
mEventEditor->show();
#else
- if ( mEventEditor->width() != QApplication::desktop()->width() )
- mEventEditor->hide();
+ if ( mEventEditor->width() != QApplication::desktop()->width() ) {
+ qDebug("CalendarView: recreate mEventEditor ");
+ delete mEventEditor;
+ mEventEditor = mDialogManager->getEventEditor();
+ }
mEventEditor->showMaximized();
#endif
@@ -2461,6 +2464,9 @@ void CalendarView::showTodoEditor()
mTodoEditor->show();
#else
- if ( mTodoEditor->width() != QApplication::desktop()->width() )
- mTodoEditor->hide();
+ if ( mTodoEditor->width() != QApplication::desktop()->width() ) {
+ qDebug("CalendarView: recreate mTodoEditor ");
+ delete mTodoEditor;
+ mTodoEditor = mDialogManager->getTodoEditor();
+ }
mTodoEditor->showMaximized();
#endif
diff --git a/korganizer/koeditordetails.cpp b/korganizer/koeditordetails.cpp
index 66f6977..b73d22f 100644
--- a/korganizer/koeditordetails.cpp
+++ b/korganizer/koeditordetails.cpp
@@ -143,5 +143,6 @@ KOEditorDetails::KOEditorDetails (int spacing,QWidget* parent,const char* name)
//mRoleCombo->setFixedSize( mRoleCombo->sizeHint () );
- if (qApp->desktop()->width() < 300 ) {
+ if (qApp->desktop()->width() < 640 ) {
+ if ( qApp->desktop()->width() < 300 )
mListView->setFixedHeight(80);
topLayout->addMultiCellWidget(mOrganizerLabel,0,0,0,3);
@@ -152,7 +153,7 @@ KOEditorDetails::KOEditorDetails (int spacing,QWidget* parent,const char* name)
topLayout->addMultiCellWidget(mEmailEdit,4,4,1,2);
topLayout->addWidget(attendeeRoleLabel,5,0);
- topLayout->addMultiCellWidget(mRoleCombo,5,5,1,2);
+ topLayout->addMultiCellWidget(mRoleCombo,5,5,1,3);
topLayout->addWidget(statusLabel,6,0);
- topLayout->addMultiCellWidget(mStatusCombo,6,6,1,2);
+ topLayout->addMultiCellWidget(mStatusCombo,6,6,1,3);
topLayout->addMultiCellWidget(mAddressBookButton,2,2,2,3);
topLayout->addMultiCellWidget(mRsvpButton,2,2,0,1);
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp
index 65566b5..46ae6a0 100644
--- a/korganizer/mainwindow.cpp
+++ b/korganizer/mainwindow.cpp
@@ -114,5 +114,8 @@ class KOex2phonePrefs : public QDialog
connect (cancel, SIGNAL(clicked() ), this, SLOT ( reject()) );
resize( 220, 240 );
-
+ qApp->processEvents();
+ int dw = QApplication::desktop()->width();
+ int dh = QApplication::desktop()->height();
+ move( (dw-width())/2, (dh - height() )/2 );
}