diff --git a/src/dialogs/EditInstructionDialog.ui b/src/dialogs/EditInstructionDialog.ui index 99881dfe..035de602 100644 --- a/src/dialogs/EditInstructionDialog.ui +++ b/src/dialogs/EditInstructionDialog.ui @@ -72,6 +72,9 @@ <property name="text"> <string>Unknown Instruction</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> </layout> diff --git a/src/dialogs/preferences/AsmOptionsWidget.ui b/src/dialogs/preferences/AsmOptionsWidget.ui index 8e7cc9c8..cc669fbb 100644 --- a/src/dialogs/preferences/AsmOptionsWidget.ui +++ b/src/dialogs/preferences/AsmOptionsWidget.ui @@ -28,7 +28,7 @@ </sizepolicy> </property> <property name="currentIndex"> - <number>0</number> + <number>1</number> </property> <widget class="QWidget" name="asmStyleTab"> <attribute name="title"> @@ -81,6 +81,9 @@ <property name="text"> <string>Tabs in assembly (asm.tabs):</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item row="4" column="2"> @@ -108,6 +111,9 @@ <property name="text"> <string>Syntax (asm.syntax):</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item row="12" column="1" colspan="2"> @@ -129,6 +135,9 @@ <property name="text"> <string>Tabs before assembly (asm.tabs.off):</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item row="3" column="1"> @@ -136,6 +145,9 @@ <property name="text"> <string>Show Disassembly as:</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item row="9" column="1" colspan="2"> @@ -242,6 +254,9 @@ <property name="text"> <string>Show comments:</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item row="4" column="1"> @@ -259,6 +274,9 @@ <property name="text"> <string>Column to align comments (asm.cmt.col):</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item row="2" column="0"> @@ -372,6 +390,9 @@ <property name="text"> <string>Number of bytes to display (asm.nbytes):</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item row="0" column="1"> diff --git a/src/widgets/Dashboard.cpp b/src/widgets/Dashboard.cpp index 9bdf3a9e..ed369020 100644 --- a/src/widgets/Dashboard.cpp +++ b/src/widgets/Dashboard.cpp @@ -113,6 +113,7 @@ void Dashboard::updateContents() QLabel *label = new QLabel(this); label->setText(lib); label->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred); + label->setTextInteractionFlags(Qt::TextSelectableByMouse); ui->verticalLayout_2->addWidget(label); } diff --git a/src/widgets/Dashboard.ui b/src/widgets/Dashboard.ui index 38ddebb9..0c020356 100644 --- a/src/widgets/Dashboard.ui +++ b/src/widgets/Dashboard.ui @@ -56,7 +56,7 @@ <x>0</x> <y>0</y> <width>1055</width> - <height>980</height> + <height>982</height> </rect> </property> <layout class="QHBoxLayout" name="horizontalLayout_5"> @@ -115,6 +115,9 @@ <property name="text"> <string>OVERVIEW</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item> @@ -136,6 +139,9 @@ <property name="text"> <string>Info</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item> @@ -171,6 +177,9 @@ <property name="text"> <string>File:</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item row="0" column="1"> @@ -197,6 +206,9 @@ <property name="text"> <string>Format:</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item row="1" column="1"> @@ -223,6 +235,9 @@ <property name="text"> <string>Mode:</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item row="4" column="1"> @@ -249,6 +264,9 @@ <property name="text"> <string>Size:</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item row="6" column="0"> @@ -262,6 +280,9 @@ <property name="text"> <string>Type:</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item row="6" column="1"> @@ -288,6 +309,9 @@ <property name="text"> <string>Class:</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item row="3" column="1"> @@ -314,6 +338,9 @@ <property name="text"> <string>Language:</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item row="7" column="1"> @@ -340,6 +367,9 @@ <property name="text"> <string>Bits:</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item row="2" column="1"> @@ -395,6 +425,9 @@ <property name="text"> <string>FD:</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item row="0" column="1"> @@ -421,6 +454,9 @@ <property name="text"> <string>Base addr:</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item row="1" column="1"> @@ -447,6 +483,9 @@ <property name="text"> <string>Virtual addr:</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item row="2" column="1"> @@ -473,6 +512,9 @@ <property name="text"> <string>Canary:</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item row="3" column="1"> @@ -499,6 +541,9 @@ <property name="text"> <string>Crypto:</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item row="4" column="1"> @@ -525,6 +570,9 @@ <property name="text"> <string>NX bit:</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item row="5" column="1"> @@ -551,6 +599,9 @@ <property name="text"> <string>PIC:</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item row="6" column="1"> @@ -577,6 +628,9 @@ <property name="text"> <string>Static:</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item row="8" column="0"> @@ -590,6 +644,9 @@ <property name="text"> <string>Relro:</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item row="8" column="1"> @@ -642,6 +699,9 @@ <property name="text"> <string>Architecture:</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item row="1" column="1"> @@ -668,6 +728,9 @@ <property name="text"> <string>Machine:</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item row="2" column="1"> @@ -694,6 +757,9 @@ <property name="text"> <string>OS:</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item row="3" column="1"> @@ -720,6 +786,9 @@ <property name="text"> <string>Subsystem:</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item row="4" column="1"> @@ -746,6 +815,9 @@ <property name="text"> <string>Stripped:</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item row="5" column="1"> @@ -772,6 +844,9 @@ <property name="text"> <string>Relocs:</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item row="6" column="1"> @@ -798,6 +873,9 @@ <property name="text"> <string>Endianness:</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item row="7" column="1"> @@ -824,6 +902,9 @@ <property name="text"> <string>Compiled:</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item row="8" column="1"> @@ -850,6 +931,9 @@ <property name="text"> <string>Compiler:</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item row="9" column="1"> @@ -949,6 +1033,9 @@ <property name="text"> <string>Hashes</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item> @@ -963,6 +1050,9 @@ <property name="text"> <string>Libraries</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> </layout> @@ -996,6 +1086,9 @@ <property name="text"> <string>MD5:</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item row="0" column="1"> @@ -1022,6 +1115,9 @@ <property name="text"> <string>SHA1:</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item row="1" column="1"> @@ -1054,6 +1150,9 @@ <property name="text"> <string>Entropy:</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item row="2" column="1"> @@ -1083,6 +1182,9 @@ <property name="text"> <string>Analysis info</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item> @@ -1104,6 +1206,9 @@ <property name="text"> <string>Functions:</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item row="0" column="1"> @@ -1127,6 +1232,9 @@ <property name="text"> <string>X-Refs:</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item row="1" column="1"> @@ -1150,6 +1258,9 @@ <property name="text"> <string>Calls:</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item row="2" column="1"> @@ -1173,6 +1284,9 @@ <property name="text"> <string>Strings:</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item row="3" column="1"> @@ -1196,6 +1310,9 @@ <property name="text"> <string>Symbols:</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item row="4" column="1"> @@ -1219,6 +1336,9 @@ <property name="text"> <string>Imports:</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item row="5" column="1"> @@ -1242,6 +1362,9 @@ <property name="text"> <string>Analysis coverage:</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item row="6" column="1"> @@ -1265,6 +1388,9 @@ <property name="text"> <string>Code size:</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item row="7" column="1"> @@ -1288,6 +1414,9 @@ <property name="text"> <string>Coverage percent:</string> </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item row="8" column="1"> diff --git a/src/widgets/RegistersWidget.cpp b/src/widgets/RegistersWidget.cpp index 8de7db13..394bdcc3 100644 --- a/src/widgets/RegistersWidget.cpp +++ b/src/widgets/RegistersWidget.cpp @@ -65,6 +65,7 @@ void RegistersWidget::setRegisterGrid() // check if we already filled this grid space with label/value if (!registerLayout->itemAtPosition(i, col)) { registerLabel = new QLabel; + registerLabel->setTextInteractionFlags(Qt::TextSelectableByMouse); registerLabel->setAlignment(Qt::AlignRight | Qt::AlignVCenter); registerLabel->setMaximumWidth(60); registerLabel->setStyleSheet("font-weight: bold; font-family: mono;");