Skip to contentSkip to conversation

control: Make call table items non editable

PATCH In review Nicolas Bertrand 2 participants 2 messages May 12, 2011 – May 17, 2011

lore
Share & tools
lore
#0 lore raw

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
index e74aa7c..60f23f2 100644
@@ -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
#1 lore raw

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