mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-06 06:53:37 +00:00
Preparations for math functions on traces
This commit is contained in:
parent
978842a2ff
commit
66f8b86159
21 changed files with 819 additions and 124 deletions
|
|
@ -109,7 +109,7 @@ void TraceWidget::on_edit_clicked()
|
|||
|
||||
void TraceWidget::on_view_doubleClicked(const QModelIndex &index)
|
||||
{
|
||||
if(index.column() == 2) {
|
||||
if(index.column() == TraceModel::ColIndexName) {
|
||||
auto edit = new TraceEditDialog(*model.trace(index.row()));
|
||||
edit->show();
|
||||
}
|
||||
|
|
@ -117,9 +117,17 @@ void TraceWidget::on_view_doubleClicked(const QModelIndex &index)
|
|||
|
||||
void TraceWidget::on_view_clicked(const QModelIndex &index)
|
||||
{
|
||||
if(index.column()==0) {
|
||||
switch(index.column()) {
|
||||
case TraceModel::ColIndexVisible:
|
||||
model.toggleVisibility(index.row());
|
||||
} else if(index.column()==1) {
|
||||
break;
|
||||
case TraceModel::ColIndexPlayPause:
|
||||
model.togglePause(index.row());
|
||||
break;
|
||||
case TraceModel::ColIndexMath:
|
||||
model.toggleMath(index.row());
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue