fixed url updates in gui

This commit is contained in:
Marc Wäckerlin
2017-06-14 08:57:18 +00:00
parent 40eb257593
commit 8ee853a812
10 changed files with 725 additions and 211 deletions

View File

@@ -467,7 +467,7 @@ class TestGUI: public QMainWindow, protected Ui::TestGUI {
case QEvent::UpdateLater:
case QEvent::Paint: break;
default:;
/* _log->appendPlainText(QString("Event: %1")
/* logging(QString("Event: %1")
.arg(eventName(event->type()))); */
}
_inEventFilter = false;
@@ -475,9 +475,11 @@ class TestGUI: public QMainWindow, protected Ui::TestGUI {
}
private:
void storeUrl(QUrl u) {
if (!_url->findText(u.url())) {
if (_url->findText(u.url())==-1) {
_url->addItem(u.url());
_url->setCurrentText(u.url());
} else {
_url->setCurrentText(u.url());
}
}
void loadFile(QString name) {