author | umopapisdn <umopapisdn> | 2003-03-24 07:45:52 (UTC) |
---|---|---|
committer | umopapisdn <umopapisdn> | 2003-03-24 07:45:52 (UTC) |
commit | 4a0041efd5cc7e08063c09b02858fcd9c2b59880 (patch) (side-by-side diff) | |
tree | 3948d60e0b94a2a821b4d87c0b1b985c5abdbff8 | |
parent | 0e1275a67cae2435c0ac8cee2252f91737c2e10a (diff) | |
download | opie-4a0041efd5cc7e08063c09b02858fcd9c2b59880.zip opie-4a0041efd5cc7e08063c09b02858fcd9c2b59880.tar.gz opie-4a0041efd5cc7e08063c09b02858fcd9c2b59880.tar.bz2 |
Bugfix: (bug #0000722) - Date-Popup in calendar-find dialog only appears shortly and then closes. This is due to the fact that the date-popup
appears on top of the button just pressed, and when the mouseup event fires, it is on the date-popup, so this fix just moves the find dialog
to the topleft corner, which makes sure that the date-popup doesn't appear underneath the clicking position.
-rw-r--r-- | core/pim/datebook/datebook.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/pim/datebook/datebook.cpp b/core/pim/datebook/datebook.cpp index db2058b..fa509d9 100644 --- a/core/pim/datebook/datebook.cpp +++ b/core/pim/datebook/datebook.cpp @@ -879,64 +879,65 @@ void DateBook::beamEvent( const Event &e ) connect( ir, SIGNAL( done( Ir * ) ), this, SLOT( beamDone( Ir * ) ) ); QString description = e.description(); ir->send( beamfile, description, "text/x-vCalendar" ); } void DateBook::beamDone( Ir *ir ) { delete ir; unlink( beamfile ); } void DateBook::slotFind() { // move it to the day view... viewDay(); FindDialog frmFind( "Calendar", this ); frmFind.setUseDate( true ); frmFind.setDate( currentDate() ); QObject::connect( &frmFind, SIGNAL(signalFindClicked(const QString&, const QDate&, bool, bool, int)), this, SLOT(slotDoFind(const QString&, const QDate&, bool, bool, int)) ); QObject::connect( this, SIGNAL(signalNotFound()), &frmFind, SLOT(slotNotFound()) ); QObject::connect( this, SIGNAL(signalWrapAround()), &frmFind, SLOT(slotWrapAround()) ); + frmFind.move(0,0); frmFind.exec(); inSearch = false; } bool catComp( QArray<int> cats, int category ) { bool returnMe; int i, count; count = int(cats.count()); returnMe = false; if ( (category == -1 && count == 0) || category == -2 ) returnMe = true; else { for ( i = 0; i < count; i++ ) { if ( category == cats[i] ) { returnMe = true; break; } } } return returnMe; } void DateBook::slotDoFind( const QString& txt, const QDate &dt, bool caseSensitive, bool /*backwards*/, int category ) { QDateTime dtEnd( QDate(3001, 1, 1), QTime(0, 0, 0) ), next; |