[qet] qet/qet: [5666] Title block : list of texts variables can be selected with the mouse and

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 5666
Author:   scorpio810
Date:     2018-12-29 09:45:17 +0100 (Sat, 29 Dec 2018)
Log Message:
-----------
Title block : list of texts variables can be selected with the mouse and
copied to the clipboard using a context menu or standard keyboard
shortcuts.

Modified Paths:
--------------
    trunk/sources/titleblock/templatecellwidget.cpp

Modified: trunk/sources/titleblock/templatecellwidget.cpp
===================================================================
--- trunk/sources/titleblock/templatecellwidget.cpp	2018-12-29 03:48:21 UTC (rev 5665)
+++ trunk/sources/titleblock/templatecellwidget.cpp	2018-12-29 08:45:17 UTC (rev 5666)
@@ -385,6 +385,7 @@
 	
 	QLabel *def_var_label = new QLabel(defaultVariablesString());
 	def_var_label -> setTextFormat(Qt::RichText);
+	def_var_label -> setTextInteractionFlags(Qt::TextSelectableByMouse);
 	
 	QVBoxLayout *editor_layout = new QVBoxLayout();
 	editor_layout -> addWidget(information);


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/