QUrl::fromUserInput is Qt 4.6 only

This commit is contained in:
David Sansome 2010-02-24 23:49:14 +00:00
parent 4332bf6f71
commit 73739af762
1 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ AddStreamDialog::AddStreamDialog(QWidget *parent)
}
QUrl AddStreamDialog::url() const {
return QUrl::fromUserInput(ui_.url->text());
return QUrl(ui_.url->text());
}
void AddStreamDialog::accept() {
@ -51,7 +51,7 @@ void AddStreamDialog::accept() {
void AddStreamDialog::TextChanged(const QString &text) {
// Decide whether the URL is valid
QUrl url(QUrl::fromUserInput(text));
QUrl url(text);
bool valid = url.isValid() &&
!url.scheme().isEmpty() &&