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

List:       koffice
Subject:    Re: doubleClicked in toolbar/KAction
From:       David Faure <david () mandrakesoft ! com>
Date:       2000-06-04 20:14:11
[Download RAW message or body]

On Wed, May 31, 2000 at 03:24:49PM +0200, Kai-Uwe Sattler wrote:
> Hi,
> KToolBarButton emits a signal doubleClicked that is used in KIllustrator
> for configuring a tool. Is there anything similar for KAction ??

Sorry for the long delay in the answer. KAction doesn't have such a thing
(for many reasons, including the fact that there's in theory only one
way to activate an action), but you can get around that by subclassing
it and reimplementing ::plug, to get hold of the KToolbarButton pointer,
and connect to its doubleClicked signal.

Unless this double-click on toolbar-button thing becomes very common, I think
this is good enough. BTW, do many users find out that trick ? :-)

-- 
David FAURE, david@mandrakesoft.com, faure@kde.org
http://home.clara.net/faure/
KDE, Making The Future of Computing Available Today
See http://www.kde.org/kde1-and-kde2.html for how to set up KDE 2

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

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