Mercurial > trustbridge
comparison ui/certificatetabledelegate.cpp @ 1054:0d92ab04d61c
(issue104) Use fixed width for certificate drop box in admin window
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Tue, 09 Sep 2014 15:45:09 +0200 |
parents | 17e1c8f37d72 |
children |
comparison
equal
deleted
inserted
replaced
1053:78798d3af8f0 | 1054:0d92ab04d61c |
---|---|
46 const QStyleOptionViewItem &option, const QModelIndex &index) const | 46 const QStyleOptionViewItem &option, const QModelIndex &index) const |
47 { | 47 { |
48 bool editable = index.data(Qt::UserRole).toBool(); | 48 bool editable = index.data(Qt::UserRole).toBool(); |
49 // Create a combobox and add two items for install/remove. | 49 // Create a combobox and add two items for install/remove. |
50 QComboBox *comboBox = new QComboBox(parent); | 50 QComboBox *comboBox = new QComboBox(parent); |
51 comboBox->setFixedWidth(110); | |
51 comboBox->addItem(QIcon(":/img/list-add.png"), tr("add"), QVariant("true")); | 52 comboBox->addItem(QIcon(":/img/list-add.png"), tr("add"), QVariant("true")); |
52 if (editable) { | 53 if (editable) { |
53 comboBox->addItem(QIcon(":/img/list-remove.png"), | 54 comboBox->addItem(QIcon(":/img/list-remove.png"), |
54 tr("remove"), QVariant("false")); | 55 tr("remove"), QVariant("false")); |
55 } | 56 } |