Mercurial > trustbridge
comparison ui/certificateitemwidget.cpp @ 685:248d4f24e618
(Issue 29) Uneditable items are always selected
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Tue, 01 Jul 2014 12:06:38 +0200 |
parents | c7405d526ead |
children | 973a7ce19658 |
comparison
equal
deleted
inserted
replaced
684:69def231f5ac | 685:248d4f24e618 |
---|---|
63 this->setLayout(layout); | 63 this->setLayout(layout); |
64 } | 64 } |
65 | 65 |
66 bool CertificateItemWidget::state() | 66 bool CertificateItemWidget::state() |
67 { | 67 { |
68 if (!mEditable) { | |
69 return true; | |
70 } | |
68 return mComboBox->currentData().toBool(); | 71 return mComboBox->currentData().toBool(); |
69 } | 72 } |
70 | 73 |
71 void CertificateItemWidget::setState(bool state) | 74 void CertificateItemWidget::setState(bool state) |
72 { | 75 { |