Contacts: switch Name and Address

Suggested by /u/stephen_gordon9 on Reddit
https://old.reddit.com/r/Monero/comments/nmapig/_/gzssmlo/
This commit is contained in:
tobtoht 2021-06-04 19:48:55 +02:00
parent e8057fc35d
commit 2336989147
2 changed files with 4 additions and 4 deletions

View file

@ -24,8 +24,8 @@ ContactsWidget::ContactsWidget(QSharedPointer<AppContext> ctx, QWidget *parent)
ui->contacts->setModel(m_proxyModel); ui->contacts->setModel(m_proxyModel);
ui->contacts->setSortingEnabled(true); ui->contacts->setSortingEnabled(true);
ui->contacts->header()->setSectionResizeMode(AddressBookModel::Address, QHeaderView::Stretch); ui->contacts->header()->setSectionResizeMode(AddressBookModel::Address, QHeaderView::ResizeToContents);
ui->contacts->header()->setSectionResizeMode(AddressBookModel::Description, QHeaderView::ResizeToContents); ui->contacts->header()->setSectionResizeMode(AddressBookModel::Description, QHeaderView::Stretch);
ui->contacts->header()->setMinimumSectionSize(200); ui->contacts->header()->setMinimumSectionSize(200);
// header context menu // header context menu

View file

@ -16,8 +16,8 @@ class AddressBookModel : public QAbstractTableModel
public: public:
enum ModelColumn enum ModelColumn
{ {
Address = 0, Description = 0,
Description, Address,
COUNT COUNT
}; };