API REVIEW: requestFocus() dies
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=801637
This commit is contained in:
parent
7e5915f398
commit
55881aa054
@ -1201,8 +1201,6 @@ void Applet::needsFocus(bool focus)
|
|||||||
if (focus == QGraphicsItem::hasFocus()) {
|
if (focus == QGraphicsItem::hasFocus()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
emit requestFocus(focus);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Applet::hasConfigurationInterface() const
|
bool Applet::hasConfigurationInterface() const
|
||||||
|
15
applet.h
15
applet.h
@ -494,21 +494,6 @@ class PLASMA_EXPORT Applet : public QGraphicsWidget
|
|||||||
*/
|
*/
|
||||||
void launchActivated();
|
void launchActivated();
|
||||||
|
|
||||||
/**
|
|
||||||
* Emitted when the applet needs to take (or lose) keyboard focus.
|
|
||||||
*
|
|
||||||
* An applet should emit this signal to ensure that autohiding
|
|
||||||
* elements stay unhidden and other bits of bookkeeping are
|
|
||||||
* performed to ensure proper function.
|
|
||||||
*
|
|
||||||
* If you call watchForFocus on your applet, then this is handled for
|
|
||||||
* the applet and it is not necessary to emit the signal directly.
|
|
||||||
*
|
|
||||||
* @param focus true if the applet is taking keyboard focus, false if
|
|
||||||
* it is giving it up
|
|
||||||
**/
|
|
||||||
void requestFocus( bool focus );
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Emitted whenever the applet makes a geometry change, so that views
|
* Emitted whenever the applet makes a geometry change, so that views
|
||||||
* can coordinate themselves with these changes if they desire.
|
* can coordinate themselves with these changes if they desire.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user