summaryrefslogtreecommitdiff
authorumopapisdn <umopapisdn>2003-03-24 07:45:52 (UTC)
committer umopapisdn <umopapisdn>2003-03-24 07:45:52 (UTC)
commit4a0041efd5cc7e08063c09b02858fcd9c2b59880 (patch) (side-by-side diff)
tree3948d60e0b94a2a821b4d87c0b1b985c5abdbff8
parent0e1275a67cae2435c0ac8cee2252f91737c2e10a (diff)
downloadopie-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.
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/datebook/datebook.cpp1
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
@@ -887,48 +887,49 @@ void DateBook::beamDone( Ir *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;
}