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
This commit is contained in:
scorpio810
2018-12-29 08:45:17 +00:00
parent ec19986f38
commit e071717d30

View File

@@ -385,6 +385,7 @@ void TitleBlockTemplateCellWidget::editTranslatableValue(NamesList &names, const
QLabel *def_var_label = new QLabel(defaultVariablesString()); QLabel *def_var_label = new QLabel(defaultVariablesString());
def_var_label -> setTextFormat(Qt::RichText); def_var_label -> setTextFormat(Qt::RichText);
def_var_label -> setTextInteractionFlags(Qt::TextSelectableByMouse);
QVBoxLayout *editor_layout = new QVBoxLayout(); QVBoxLayout *editor_layout = new QVBoxLayout();
editor_layout -> addWidget(information); editor_layout -> addWidget(information);