#include "dialogs/openurl.hpp"
#include "util/searchlineedit.hpp"
+#include "util/validators.hpp"
#include <QPushButton>
#include <QDialogButtonBox>
/* Info label and line edit */
edit = new ClickLineEdit( qtr( "Enter URL here..." ), this );
+ edit->setValidator( new UrlValidator( edit ) );
QLabel *info = new QLabel( qtr( "Please enter the URL or path "
- "to the media you want to play"),
+ "to the media you want to play."),
this );
setToolTip( qtr( "If your clipboard contains a valid URL\n"
}
/** Show Event:
- * When the dialog is shown, try to extract an URL from the clipboard
+ * When the dialog is shown, try to extract a URL from the clipboard
* and paste it in the Edit box.
* showEvent can happen not only on exec() but I think it's cool to
* actualize the URL on showEvent (eg. change virtual desktop...)