X-Git-Url: http://git.maemo.org/git/?p=mverbiste;a=blobdiff_plain;f=mainwindow.cpp;h=35db3e562ed3927e23aa6c95610a4d20e696dc28;hp=c88c51484c049bb70a7262592b93d4229095c0a8;hb=075c0d8be4a72e813c4c81e147af317aad129119;hpb=c5a79dc4b67e59dcbd51047d045b17ffe268a6f0 diff --git a/mainwindow.cpp b/mainwindow.cpp index c88c514..35db3e5 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -45,6 +45,7 @@ void MainWindow::setupcodedUI() // Clear the word input when Clear button is tapped QObject::connect(btnClear, SIGNAL(clicked()), wordinput, SLOT(clear())); QObject::connect(btnClear, SIGNAL(clicked()), labVerb, SLOT(clear())); + QObject::connect(btnClear, SIGNAL(clicked()), wordinput, SLOT(setFocus())); QObject::connect(wordinput, SIGNAL(returnPressed()), this, SLOT(startLookup())); QObject::connect(btnLookup, SIGNAL(clicked()), this, SLOT(startLookup())); @@ -107,6 +108,7 @@ void MainWindow::showExpanded() #else show(); #endif + wordinput->setFocus(); } void MainWindow::startLookup()