set cursor position to 0 also in non-kiosk-mode; refs #106
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user