Open Source Telephony
 help / color / mirror / Atom feed
From: Nicolas Bertrand <nicolas.bertrand@linux.intel.com>
To: ofono@ofono.org
Subject: [PATCH] control: Make call table items non editable
Date: Thu, 12 May 2011 15:45:40 +0200	[thread overview]
Message-ID: <1305207940-6500-1-git-send-email-nicolas.bertrand@linux.intel.com> (raw)

[-- 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


             reply	other threads:[~2011-05-12 13:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-12 13:45 Nicolas Bertrand [this message]
2011-05-17  4:41 ` [PATCH] control: Make call table items non editable Denis Kenzior

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1305207940-6500-1-git-send-email-nicolas.bertrand@linux.intel.com \
    --to=nicolas.bertrand@linux.intel.com \
    --cc=ofono@ofono.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox