All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] control: Make call table items non editable
@ 2011-05-12 13:45 Nicolas Bertrand
  2011-05-17  4:41 ` Denis Kenzior
  0 siblings, 1 reply; 2+ messages in thread
From: Nicolas Bertrand @ 2011-05-12 13:45 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 766 bytes --]

---
 src/control.cpp |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/control.cpp b/src/control.cpp
index e74aa7c..60f23f2 100644
--- a/src/control.cpp
+++ b/src/control.cpp
@@ -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 )
-- 
1.7.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] control: Make call table items non editable
  2011-05-12 13:45 [PATCH] control: Make call table items non editable Nicolas Bertrand
@ 2011-05-17  4:41 ` Denis Kenzior
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2011-05-17  4:41 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 217 bytes --]

Hi Nicolas,

On 05/12/2011 08:45 AM, Nicolas Bertrand wrote:
> ---
>  src/control.cpp |    6 +++++-
>  1 files changed, 5 insertions(+), 1 deletions(-)
> 

Patch has been applied, thanks.

Regards,
-Denis

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-05-17  4:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-12 13:45 [PATCH] control: Make call table items non editable Nicolas Bertrand
2011-05-17  4:41 ` Denis Kenzior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.