Commit 3c80a539 authored by kenneth@webkit.org's avatar kenneth@webkit.org

[Qt] On Maemo5, a click/touch in the location bar (when unfocused)

should result in all text selected.

Reviewed by Ariya Hidayat.

* QtLauncher/locationedit.cpp:
(LocationEdit::focusInEvent):
* QtLauncher/locationedit.h:

git-svn-id: svn://svn.chromium.org/blink/trunk@54074 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 732be1c8
2010-01-29 Kenneth Rohde Christiansen <kenneth@webkit.org>
Reviewed by Ariya Hidayat.
[Qt] On Maemo5, a click/touch in the location bar (when unfocused)
should result in all text selected.
* QtLauncher/locationedit.cpp:
(LocationEdit::focusInEvent):
* QtLauncher/locationedit.h:
2010-01-29 Kenneth Rohde Christiansen <kenneth@webkit.org>
Reviewed by Ariya Hidayat.
......
......@@ -70,3 +70,11 @@ void LocationEdit::paintEvent(QPaintEvent* ev)
if (m_progress == 100)
m_clearTimer.start(100);
}
void LocationEdit::focusInEvent(QFocusEvent* ev)
{
QLineEdit::focusInEvent(ev);
#ifdef Q_WS_MAEMO_5
QTimer::singleShot(0, this, SLOT(selectAll()));
#endif
}
......@@ -44,6 +44,7 @@ private slots:
protected:
virtual void paintEvent(QPaintEvent*);
virtual void focusInEvent(QFocusEvent*);
private:
int m_progress;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment