|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface KToolBarSignals
Method Summary | |
---|---|
void |
clicked(int id)
Emitted when button id is clicked. |
void |
doubleClicked(int id)
Emitted when button id is double-clicked. |
void |
highlighted(int id)
This signal is emitted when item id gets highlighted/unhighlighted
(i.e when mouse enters/exits). |
void |
highlighted(int id,
boolean isHighlighted)
This signal is emitted when item id gets highlighted/unhighlighted
(i.e when mouse enters/exits). |
void |
modechange()
This signal is emitted when toolbar detects changing of following parameters: highlighting, button-size, button-mode. |
void |
moved(int arg1)
Emitted when toolbar changes position, or when an item is removed from toolbar. |
void |
pressed(int arg1)
Emitted when button id is pressed. |
void |
released(int arg1)
Emits when button id is released. |
void |
toggled(int arg1)
Emitted when a toggle button changes state. |
void |
toolbarDestroyed()
This signal is emitted when the toolbar is getting deleted, and before ~KToolbar finishes (so it's still time to remove widgets from the toolbar). |
Method Detail |
---|
void clicked(int id)
id
is clicked.
void doubleClicked(int id)
id
is double-clicked.
Note: you will always
recive two clicked() , pressed() and released() signals.
There is no way to avoid it - at least no easy way.
If you need to resolve this all you can do is set up timers
which wait for QApplication.doubleClickInterval() to expire.
If in that time you don't get this signal, you may belive that
button was only clicked and not double-clicked.
And please note that butons with popup menus do not emit this signal,
but those with delayed popup do.
void pressed(int arg1)
id
is pressed.
void released(int arg1)
id
is released.
void toggled(int arg1)
void highlighted(int id, boolean isHighlighted)
id
gets highlighted/unhighlighted
(i.e when mouse enters/exits).
Note that this signal is emitted from
all buttons (normal, disabled and toggle) even when there is no visible
change in buttons (i.e., buttons do not raise when mouse enters).
The parameter isHighlighted
is true
when mouse enters and false
when
mouse exits.
void highlighted(int id)
id
gets highlighted/unhighlighted
(i.e when mouse enters/exits).
Note that this signal is emitted from
all buttons (normal, disabled and toggle) even when there is no visible
change in buttons (i.e., buttons do not raise when mouse enters).
void moved(int arg1)
void modechange()
void toolbarDestroyed()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |