[vlc-commits] Qt: use validator for clipboard input

Francois Cartegnie git at videolan.org
Tue Sep 3 11:47:05 CEST 2013


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Sep  3 11:46:30 2013 +0200| [478199d685b43575ecd7b8ac42ff82c6fb669bce] | committer: Francois Cartegnie

Qt: use validator for clipboard input

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=478199d685b43575ecd7b8ac42ff82c6fb669bce
---

 modules/gui/qt4/dialogs/openurl.cpp |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/gui/qt4/dialogs/openurl.cpp b/modules/gui/qt4/dialogs/openurl.cpp
index a3726f9..f31abab 100644
--- a/modules/gui/qt4/dialogs/openurl.cpp
+++ b/modules/gui/qt4/dialogs/openurl.cpp
@@ -27,6 +27,7 @@
 
 #include "dialogs/openurl.hpp"
 #include "util/searchlineedit.hpp"
+#include "util/validators.hpp"
 
 #include <QPushButton>
 #include <QDialogButtonBox>
@@ -62,6 +63,7 @@ OpenUrlDialog::OpenUrlDialog( intf_thread_t *_p_intf,
 
     /* 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."),



More information about the vlc-commits mailing list