Qt4 - allow the nameLabel to be selectable by mouse or keyboard in order to copy...
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 24 Oct 2007 04:32:44 +0000 (04:32 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 24 Oct 2007 04:32:44 +0000 (04:32 +0000)
Supposed to be useful.

modules/gui/qt4/main_interface.cpp

index 5cb24e1..47332a5 100644 (file)
@@ -144,6 +144,8 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
     b_remainingTime = false;
     timeLabel = new TimeLabel;
     nameLabel = new QLabel;
+    nameLabel->setTextInteractionFlags( Qt::TextSelectableByMouse
+                                      | Qt::TextSelectableByKeyboard );
     speedLabel = new QLabel( "1.00x" );
     speedLabel->setContextMenuPolicy ( Qt::CustomContextMenu );