summaryrefslogtreecommitdiffabout
path: root/korganizer
authorzautrix <zautrix>2005-02-06 15:21:01 (UTC)
committer zautrix <zautrix>2005-02-06 15:21:01 (UTC)
commit38898c49275bf27fb8c2df96d145f2a5abb62331 (patch) (side-by-side diff)
treeb96f0a336fccf4d6c67e6a4b5c1239b4d647b3b9 /korganizer
parent26b0c69fb3b11c29475ec02b2cfe52e33eb24e5f (diff)
downloadkdepimpi-38898c49275bf27fb8c2df96d145f2a5abb62331.zip
kdepimpi-38898c49275bf27fb8c2df96d145f2a5abb62331.tar.gz
kdepimpi-38898c49275bf27fb8c2df96d145f2a5abb62331.tar.bz2
fixxeess
Diffstat (limited to 'korganizer') (more/less context) (show whitespace changes)
-rw-r--r--korganizer/koeditorgeneraltodo.cpp2
-rw-r--r--korganizer/komonthview.cpp18
-rw-r--r--korganizer/komonthview.h3
-rw-r--r--korganizer/koviewmanager.cpp3
4 files changed, 20 insertions, 6 deletions
diff --git a/korganizer/koeditorgeneraltodo.cpp b/korganizer/koeditorgeneraltodo.cpp
index ce66863..da5ef07 100644
--- a/korganizer/koeditorgeneraltodo.cpp
+++ b/korganizer/koeditorgeneraltodo.cpp
@@ -166,3 +166,3 @@ void KOEditorGeneralTodo::initCompletion(QWidget *parent, QBoxLayout *topLayout)
else
- mCompleteDateEdit->setMaximumWidth( 130 );
+ mCompleteDateEdit->setMaximumWidth( 140 );
topLayout->setSpacing( 0 );
diff --git a/korganizer/komonthview.cpp b/korganizer/komonthview.cpp
index 5926abe..ffb2e1e 100644
--- a/korganizer/komonthview.cpp
+++ b/korganizer/komonthview.cpp
@@ -555,2 +555,3 @@ void MonthViewCell::insertTodo(Todo *todo)
QString text;
+ mItemList->setFocusPolicy(WheelFocus);
if (todo->hasDueDate()) {
@@ -561,3 +562,3 @@ void MonthViewCell::insertTodo(Todo *todo)
}
- text += i18n("Td: %1").arg(todo->summary());
+ text += i18n("T: %1").arg(todo->summary());
@@ -784,3 +785,2 @@ void MonthViewCell::selection( QListBoxItem *item )
if ( !item ) return;
-
mMonthView->setSelectedCell( this );
@@ -1267,2 +1267,6 @@ void KOMonthView::resizeEvent(QResizeEvent * e)
if ( ignoreResizeEvent ) {
+ int diff = e->size().height() - e->oldSize().height();
+ if ( diff < 0 )
+ diff = diff * (-1);
+ if ( diff == ignoreResizeEventHeight ) {
qDebug("KOMonthView::resizeEvent ignored ");
@@ -1271,2 +1275,4 @@ void KOMonthView::resizeEvent(QResizeEvent * e)
}
+ ignoreResizeEvent = 0;
+ }
if ( e->size().width()+ e->size().height() < 240 )
@@ -1513,3 +1519,3 @@ void KOMonthView::setSelectedCell( MonthViewCell *cell )
{
- // qDebug("KOMonthView::setSelectedCell ");
+ //qDebug("KOMonthView::setSelectedCell %x ", cell);
if ( mSelectedCell && mSelectedCell != cell ) {
@@ -1552,2 +1558,5 @@ void KOMonthView::keyPressEvent ( QKeyEvent * e )
emit prevMonth();
+ if ( mShowWeekView )
+ mCellsW[0]->setFocus();
+ else
mCells[0]->setFocus();
@@ -1559,2 +1568,5 @@ void KOMonthView::keyPressEvent ( QKeyEvent * e )
emit nextMonth();
+ if ( mShowWeekView )
+ mCellsW[0]->setFocus();
+ else
mCells[0]->setFocus();
diff --git a/korganizer/komonthview.h b/korganizer/komonthview.h
index 9dbe319..d70cda1 100644
--- a/korganizer/komonthview.h
+++ b/korganizer/komonthview.h
@@ -228,3 +228,3 @@ class KOMonthView: public KOEventView
bool isUpdatePossible() { return updatePossible; }
- void setIgnoreResizeEvent( int c ) { ignoreResizeEvent = c ;}
+ void setIgnoreResizeEvent( int c, int h ) { ignoreResizeEvent = c ;ignoreResizeEventHeight = h;}
@@ -262,2 +262,3 @@ class KOMonthView: public KOEventView
int ignoreResizeEvent;
+ int ignoreResizeEventHeight;
int currentWeek();
diff --git a/korganizer/koviewmanager.cpp b/korganizer/koviewmanager.cpp
index dcb51dc..c35de0a 100644
--- a/korganizer/koviewmanager.cpp
+++ b/korganizer/koviewmanager.cpp
@@ -225,3 +225,4 @@ void KOViewManager::raiseCurrentView( bool fullScreen, bool callUpdateView )
if ( true /* !KOPrefs::instance()->mMonthViewWeek*/ ) {
- mMonthView->setIgnoreResizeEvent( 2 );
+
+ mMonthView->setIgnoreResizeEvent( 2 ,mMainView->navigatorBar()->height());
mMainView->navigatorBar()->show();