control: Make call table items non editable
PATCH 1/1 control: Make call table items non editable
--- src/control.cpp | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)
src/control.cpp +5 -1
@@ -203,7 +203,11 @@ void ControlWidget::updateCallView( QString callParameters [5], int row ) ui->twCallMgt->insertRow( row ); for ( int i = 0; i < 5; i++ ) - ui->twCallMgt->setItem( row, i, new QTableWidgetItem( callParameters[i] ) ); + { + QTableWidgetItem *item = new QTableWidgetItem( callParameters[i] ); + item->setFlags( item->flags() & ~Qt::ItemIsEditable ); + ui->twCallMgt->setItem( row, i, item ); + } } void Control::setPhoneNumber( const QString &number )
Signature · 1 line
1.7.1
Hi Nicolas,
Quoted 4 lines · Nicolas Bertrand
--- src/control.cpp | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)
Patch has been applied, thanks.
Regards,
-Denis