remove Applet::hasFocus()

This commit is contained in:
Marco Martin 2013-02-12 13:10:50 +01:00
parent ec55761461
commit 5882fee318
4 changed files with 0 additions and 29 deletions

View File

@ -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) {

View File

@ -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

View File

@ -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();

View File

@ -486,7 +486,6 @@ Q_SIGNALS:
//FIXME: events should go away
void contextMenuEvent(QContextMenuEvent *event);
void keyPressEvent(QKeyEvent *event);
void wheelEvent(QWheelEvent *event);