Handling of default button in KDialog broken

André Wöbbeking Woebbeking at kde.org
Fri Jul 4 16:19:24 BST 2008


On Friday 04 July 2008, André Wöbbeking wrote:

> IMO it's a Qt regression to give focus to a button which is not the
> default one.

In QDialog::setVisible() this looks strange:

        if (fw && !fw->hasFocus()) {
            QFocusEvent e(QEvent::FocusIn, Qt::TabFocusReason);
            QApplication::sendEvent(fw, &e);
        }

Doesn't it give focus to a random widget?




More information about the kde-core-devel mailing list