summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-01-30 20:31:35 (UTC)
committer zautrix <zautrix>2005-01-30 20:31:35 (UTC)
commit15c5772f8a54750115f82aea34fea47e5842ff4f (patch) (side-by-side diff)
tree13c31b5fd3d41058b65a392acf17ee3efd230f33
parent23d345c877ae9de6a077af3705026d15bb04d1e3 (diff)
downloadkdepimpi-15c5772f8a54750115f82aea34fea47e5842ff4f.zip
kdepimpi-15c5772f8a54750115f82aea34fea47e5842ff4f.tar.gz
kdepimpi-15c5772f8a54750115f82aea34fea47e5842ff4f.tar.bz2
fix
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--korganizer/koagenda.cpp31
-rw-r--r--korganizer/kodaymatrix.cpp5
-rw-r--r--korganizer/kotodoview.cpp2
-rw-r--r--korganizer/koviewmanager.cpp4
-rw-r--r--korganizer/kowhatsnextview.cpp1
5 files changed, 25 insertions, 18 deletions
diff --git a/korganizer/koagenda.cpp b/korganizer/koagenda.cpp
index 0aef929..ffa2678 100644
--- a/korganizer/koagenda.cpp
+++ b/korganizer/koagenda.cpp
@@ -440,3 +440,14 @@ bool KOAgenda::eventFilter_mouse(QObject *object, QMouseEvent *me)
blockNewEvent = true;
- //qDebug("right ");
+ block = false;
+ } else {
+ blockNewEvent = false;
+ setCursor(arrowCursor);
+ startSelectAction(viewportPos);
+ }
+ }
+ break;
+
+ case QEvent::MouseButtonRelease:
+ //qDebug("QEvent::MouseButtonRelease: %d",blockNewEvent );
+ if (me->button() == RightButton && blockNewEvent && !block) {
int x,y;
@@ -445,19 +456,14 @@ bool KOAgenda::eventFilter_mouse(QObject *object, QMouseEvent *me)
contentsToGrid(x,y,gx,gy);
- mStartCellX = gx;
- mStartCellY = gy;
+ if ( mCurrentCellY < mStartCellY +1 ) {
+ //qDebug("mCurrentCellY %d mStartCellY %d ", mCurrentCellY,mStartCellY);
mCurrentCellX = gx;
mCurrentCellY = gy;
+ mStartCellX = gx;
+ mStartCellY = gy;
mNewItemPopup->popup( viewport()->mapToGlobal( me->pos() ) );
-
+ break;
} else {
blockNewEvent = false;
- setCursor(arrowCursor);
- startSelectAction(viewportPos);
}
- }
- break;
-
- case QEvent::MouseButtonRelease:
- //qDebug("QEvent::MouseButtonRelease: ");
- if (me->button() == RightButton && block ) {
+ } else if (me->button() == RightButton && block ) {
if (object != viewport()) {
@@ -493,3 +499,2 @@ bool KOAgenda::eventFilter_mouse(QObject *object, QMouseEvent *me)
if (me->button() == RightButton ) {
-
} else {
diff --git a/korganizer/kodaymatrix.cpp b/korganizer/kodaymatrix.cpp
index 060b4c4..faa2c21 100644
--- a/korganizer/kodaymatrix.cpp
+++ b/korganizer/kodaymatrix.cpp
@@ -150,3 +150,2 @@ void KODayMatrix::addSelectedDaysTo(DateList& selDays)
{
- kdDebug() << "KODayMatrix::addSelectedDaysTo() - " << "mSelStart:" << mSelStart << endl;
@@ -291,5 +290,5 @@ void KODayMatrix::updateView(QDate actdate)
}
- qDebug("restart Timer %d", mDayChanged );
+ qDebug("restart Timer %d vis: %d", mDayChanged, isVisible() );
static int iii = 0;
- if ( iii < 5 ) {
+ if ( iii < 2 ) {
++iii;
diff --git a/korganizer/kotodoview.cpp b/korganizer/kotodoview.cpp
index 2f5259f..8d8fc2a 100644
--- a/korganizer/kotodoview.cpp
+++ b/korganizer/kotodoview.cpp
@@ -755,3 +755,3 @@ void KOTodoView::showItem(QListViewItem *item,const QPoint &,int)
-void KOTodoView::popupMenu(QListViewItem *item,const QPoint &,int column)
+void KOTodoView::popupMenu(QListViewItem *item,const QPoint &p,int column)
{
diff --git a/korganizer/koviewmanager.cpp b/korganizer/koviewmanager.cpp
index 4c03f9a..35774d6 100644
--- a/korganizer/koviewmanager.cpp
+++ b/korganizer/koviewmanager.cpp
@@ -119,5 +119,7 @@ void KOViewManager::showDateView( int view, QDate date)
} else if (view == 6 ) {
- showMonthView();
+ mMainView->dateNavigator()->blockSignals( true );
mMainView->dateNavigator()->selectMonthByDate( date );
mMainView->dateNavigator()->selectDate( date );
+ mMainView->dateNavigator()->blockSignals( false );
+ showMonthView();
} else if (view == 7 ) {
diff --git a/korganizer/kowhatsnextview.cpp b/korganizer/kowhatsnextview.cpp
index d7ff9f2..10665f4 100644
--- a/korganizer/kowhatsnextview.cpp
+++ b/korganizer/kowhatsnextview.cpp
@@ -179,2 +179,3 @@ void KOWhatsNextView::updateView()
{
+ //qDebug("KOWhatsNextView::updateView() ");
if ( mTimer->isActive() )