Highlight the URL in the add stream dialog when it's opened

This commit is contained in:
David Sansome 2010-06-16 16:21:38 +00:00
parent 68edaff32f
commit bc7c62c09e
2 changed files with 7 additions and 0 deletions

View File

@ -96,3 +96,7 @@ void AddStreamDialog::TextChanged(const QString &text) {
ui_->button_box->button(QDialogButtonBox::Ok)->setEnabled(valid);
}
void AddStreamDialog::showEvent(QShowEvent *) {
ui_->url->setFocus();
ui_->url->selectAll();
}

View File

@ -40,6 +40,9 @@ class AddStreamDialog : public QDialog {
void accept();
protected:
void showEvent(QShowEvent *);
private slots:
void TextChanged(const QString& text);