Make text in labels selectable by mouse.
authorMilian Wolff <mail@milianw.de>
Sun, 29 May 2016 17:44:32 +0000 (19:44 +0200)
committerMilian Wolff <mail@milianw.de>
Sun, 29 May 2016 18:05:25 +0000 (20:05 +0200)
gui/flamegraph.cpp
gui/mainwindow.ui

index eda8f8a..9e1f554 100644 (file)
@@ -388,6 +388,7 @@ FlameGraph::FlameGraph(QWidget* parent, Qt::WindowFlags flags)
             });
 
     m_displayLabel->setWordWrap(true);
+    m_displayLabel->setTextInteractionFlags(m_displayLabel->textInteractionFlags() | Qt::TextSelectableByMouse);
 
     auto controls = new QWidget(this);
     controls->setLayout(new QHBoxLayout);
index 1594385..2c8c54a 100644 (file)
                  <property name="text">
                   <string notr="true">summary</string>
                  </property>
+                 <property name="textInteractionFlags">
+                  <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set>
+                 </property>
                 </widget>
                </item>
                <item>
                  <property name="text">
                   <string notr="true">summary</string>
                  </property>
+                 <property name="textInteractionFlags">
+                  <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set>
+                 </property>
                 </widget>
                </item>
                <item>
                  <property name="wordWrap">
                   <bool>true</bool>
                  </property>
+                 <property name="textInteractionFlags">
+                  <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set>
+                 </property>
                 </widget>
                </item>
               </layout>