From e071717d304d77dacf4dba71d16f62aa1fa6fa46 Mon Sep 17 00:00:00 2001 From: scorpio810 Date: Sat, 29 Dec 2018 08:45:17 +0000 Subject: [PATCH] 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. git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5666 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/titleblock/templatecellwidget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/sources/titleblock/templatecellwidget.cpp b/sources/titleblock/templatecellwidget.cpp index d587362eb..d00405092 100644 --- a/sources/titleblock/templatecellwidget.cpp +++ b/sources/titleblock/templatecellwidget.cpp @@ -385,6 +385,7 @@ void TitleBlockTemplateCellWidget::editTranslatableValue(NamesList &names, const 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);