move even handlers to move aproppriate places

This commit is contained in:
semant1ka
2017-10-26 22:13:03 +03:00
parent 0883709f58
commit 78f229d2a9
2 changed files with 10 additions and 11 deletions
+5 -5
View File
@@ -238,11 +238,6 @@ void MainWindow::closeEvent(QCloseEvent *event)
exitApp(); exitApp();
} }
void MainWindow::headerClicked(int logicalIndex)
{
ui->canFramesView->sortByColumn(logicalIndex);
}
void MainWindow::updateSettings() void MainWindow::updateSettings()
{ {
readUpdateableSettings(); readUpdateableSettings();
@@ -308,6 +303,11 @@ void MainWindow::updateConnectionSettings(QString connectionType, QString port,
} }
} }
void MainWindow::headerClicked(int logicalIndex)
{
ui->canFramesView->sortByColumn(logicalIndex);
}
void MainWindow::gridClicked(QModelIndex idx) void MainWindow::gridClicked(QModelIndex idx)
{ {
if (ui->canFramesView->rowHeight(idx.row()) > normalRowHeight) if (ui->canFramesView->rowHeight(idx.row()) > normalRowHeight)
+5 -6
View File
@@ -49,12 +49,6 @@ ISOTP_InterpreterWindow::ISOTP_InterpreterWindow(const QVector<CANFrame> *frames
decoder->setProcessAll(true); decoder->setProcessAll(true);
} }
void ISOTP_InterpreterWindow::headerClicked(int logicalIndex)
{
ui->tableIsoFrames->sortByColumn(logicalIndex);
}
ISOTP_InterpreterWindow::~ISOTP_InterpreterWindow() ISOTP_InterpreterWindow::~ISOTP_InterpreterWindow()
{ {
delete decoder; delete decoder;
@@ -161,6 +155,11 @@ void ISOTP_InterpreterWindow::updatedFrames(int numFrames)
} }
} }
void ISOTP_InterpreterWindow::headerClicked(int logicalIndex)
{
ui->tableIsoFrames->sortByColumn(logicalIndex);
}
void ISOTP_InterpreterWindow::showDetailView() void ISOTP_InterpreterWindow::showDetailView()
{ {
QString buildString; QString buildString;