Skip to content

Commit c9ef523

Browse files
Copilotxusheng6
andcommitted
Remove QShortcut copy implementation from TTD widgets
Co-authored-by: xusheng6 <[email protected]>
1 parent 80378e1 commit c9ef523

File tree

4 files changed

+0
-10
lines changed

4 files changed

+0
-10
lines changed

ui/ttdcallswidget.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,6 @@ void TTDCallsQueryWidget::setupUI()
129129
connect(m_queryButton, &QPushButton::clicked, this, &TTDCallsQueryWidget::performQuery);
130130
connect(m_clearButton, &QPushButton::clicked, this, &TTDCallsQueryWidget::clearResults);
131131
connect(m_resultsTable, &QTableWidget::cellDoubleClicked, this, &TTDCallsQueryWidget::onCellDoubleClicked);
132-
133-
// Add Ctrl+C shortcut for copying current cell
134-
QShortcut* copyShortcut = new QShortcut(QKeySequence::Copy, m_resultsTable);
135-
connect(copyShortcut, &QShortcut::activated, this, &TTDCallsQueryWidget::copySelectedCell);
136132
}
137133

138134
void TTDCallsQueryWidget::setupTable()

ui/ttdcallswidget.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ limitations under the License.
3838
#include <QPropertyAnimation>
3939
#include <QParallelAnimationGroup>
4040
#include <QFrame>
41-
#include <QShortcut>
4241
#include "inttypes.h"
4342
#include "binaryninjaapi.h"
4443
#include "debuggerapi.h"

ui/ttdmemorywidget.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -277,10 +277,6 @@ void TTDMemoryQueryWidget::setupTable()
277277
connect(m_resultsTable, &QTableWidget::cellDoubleClicked,
278278
this, &TTDMemoryQueryWidget::onCellDoubleClicked);
279279

280-
// Add Ctrl+C shortcut for copying current cell
281-
QShortcut* copyShortcut = new QShortcut(QKeySequence::Copy, m_resultsTable);
282-
connect(copyShortcut, &QShortcut::activated, this, &TTDMemoryQueryWidget::copySelectedCell);
283-
284280
// Setup context menu
285281
setupContextMenu();
286282
}

ui/ttdmemorywidget.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ limitations under the License.
3737
#include <QToolButton>
3838
#include <QPropertyAnimation>
3939
#include <QParallelAnimationGroup>
40-
#include <QShortcut>
4140
#include "inttypes.h"
4241
#include "binaryninjaapi.h"
4342
#include "debuggerapi.h"

0 commit comments

Comments
 (0)