remove Applet::hasFocus()
This commit is contained in:
parent
ec55761461
commit
5882fee318
@ -317,16 +317,6 @@ KConfigGroup Applet::globalConfig() const
|
||||
return KConfigGroup(&globalAppletConfig, d->globalName());
|
||||
}
|
||||
|
||||
bool Applet::hasFocus() const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
void Applet::setFocus(Qt::FocusReason)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void Applet::destroy()
|
||||
{
|
||||
if (immutability() != Mutable || d->transient || !d->started) {
|
||||
|
@ -634,10 +634,6 @@ class PLASMA_EXPORT Applet : public QObject
|
||||
*/
|
||||
void runAssociatedApplication();
|
||||
|
||||
//Completely UI-specific, remove or move to scriptengine
|
||||
|
||||
bool hasFocus() const;
|
||||
void setFocus(Qt::FocusReason);
|
||||
|
||||
protected:
|
||||
//CONSTRUCTORS
|
||||
|
@ -654,20 +654,6 @@ QStringList Containment::listContainmentTypes()
|
||||
return types.toList();
|
||||
}
|
||||
|
||||
void Containment::keyPressEvent(QKeyEvent *event)
|
||||
{
|
||||
//kDebug() << "keyPressEvent with" << event->key()
|
||||
// << "and hoping and wishing for a" << Qt::Key_Tab;
|
||||
if (event->key() == Qt::Key_Tab) { // && event->modifiers() == 0) {
|
||||
if (!d->applets.isEmpty()) {
|
||||
#ifndef NDEBUG
|
||||
kDebug() << "let's give focus to...." << (QObject*)d->applets.first();
|
||||
#endif
|
||||
d->applets.first()->setFocus(Qt::TabFocusReason);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void Containment::wheelEvent(QWheelEvent *event)
|
||||
{
|
||||
event->ignore();
|
||||
|
@ -486,7 +486,6 @@ Q_SIGNALS:
|
||||
|
||||
//FIXME: events should go away
|
||||
void contextMenuEvent(QContextMenuEvent *event);
|
||||
void keyPressEvent(QKeyEvent *event);
|
||||
void wheelEvent(QWheelEvent *event);
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user