set cursor position to 0 also in non-kiosk-mode; refs #106

master
Marc Wäckerlin 13 years ago
parent dd70b3d46f
commit 4c815ad950
  1. 2
      src/browser.hxx

@ -628,6 +628,7 @@ class Browser: public QMainWindow, protected Ui::Browser {
qobject_cast<QComboBox*>(_url)->setEditText qobject_cast<QComboBox*>(_url)->setEditText
(qobject_cast<QWebView*>(_tabs->currentWidget()) (qobject_cast<QWebView*>(_tabs->currentWidget())
->url().toString()); ->url().toString());
qobject_cast<QComboBox*>(_url)->lineEdit()->setCursorPosition(0);
} else { } else {
qobject_cast<QLineEdit*>(_url)->setText qobject_cast<QLineEdit*>(_url)->setText
(qobject_cast<QWebView*>(_tabs->currentWidget()) (qobject_cast<QWebView*>(_tabs->currentWidget())
@ -887,6 +888,7 @@ class Browser: public QMainWindow, protected Ui::Browser {
LOG<<"signal on current tab"; LOG<<"signal on current tab";
if (qobject_cast<QComboBox*>(_url)) { if (qobject_cast<QComboBox*>(_url)) {
qobject_cast<QComboBox*>(_url)->setEditText(url.toString()); qobject_cast<QComboBox*>(_url)->setEditText(url.toString());
qobject_cast<QComboBox*>(_url)->lineEdit()->setCursorPosition(0);
} else { } else {
qobject_cast<QLineEdit*>(_url)->setText(url.toString()); qobject_cast<QLineEdit*>(_url)->setText(url.toString());
qobject_cast<QLineEdit*>(_url)->setCursorPosition(0); qobject_cast<QLineEdit*>(_url)->setCursorPosition(0);

Loading…
Cancel
Save