From kde-core-devel Mon Jul 26 10:04:58 1999 From: Waldo Bastian Date: Mon, 26 Jul 1999 10:04:58 +0000 To: kde-core-devel Subject: Re: KColorButton class in kdelibs/kdeui X-MARC-Message: https://marc.info/?l=kde-core-devel&m=93298407428433 pbrown@redhat.com wrote: > > On Thu, 22 Jul 1999, Mosfet wrote: > > > Hrm. Well the slot is obselete and I just removed the connect. The dialog > > should be popping up in mouseReleaseEvent() if the mouse did not move more than > > 6 pixels, otherwise it is considered a drag. I needed to do things this way > > because otherwise moving the cursor just one pixel while the mouse is down was > > considered a D'nD event and overriding the QPushButton methods was acting very > > odd (read the CVS log about the pushbutton staying down). > > argh, we are starting to get a problem. Lots of apps that have been > converted to Xdnd are using arbitrary "drag fudge factors." I can see > that you made KColorButton a tolerance of 6, lots of other things are > using 2 pixels. Where can we universally define this? We could start with adding a #define to kglobal.h That way we can always later decide whether to make it configurable for example. Cheers, Waldo -- The "gui" in "Penguin" is pronounced "K-D-E"