[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 114879] move mouse cursor to default button
From:       zvonSully <zvonsully () gmail ! com>
Date:       2005-12-26 0:40:53
Message-ID: 20051226004053.9035.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
         
http://bugs.kde.org/show_bug.cgi?id=114879         




------- Additional Comments From zvonsully gmail com  2005-12-26 01:40 -------
On comment #10 :
> bugs.kde.org rule: do not reopen WONTFIX bugs unless you want to implement this \
> feature yourself. Therefore, I am reassigning this to zvonSully. 

I reopened the bug because "I had new info". I don't know qt libs to hack them, but I \
write here the algorithm:

I supose that the parent of the buttons(the window) sends an message to the buttons \
at activation. Next I will write the handler function for that event( I think that \
events are called signals in qt ?! )

void TButton::Activate()
  {
  if( this->IsDefault() && Options->MvMouse2DefButton(true))//check if this is the \
default button and if the option is on  {
      Mouse->DisableClicking(Options->GetClickDisTime());//disable clicking for 300 \
                ms : enought not to make "accidental clicks"
      Mouse->Move2(ToGlobal(this->Center));//moving mouse to the CEnter of the button
      }
  }

Note: Mouse->DisableClicking(time); time is configured in kcontrol; default 0

Is this algorithm  ok?


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic