Browse Source

Contacts: switch Name and Address

Suggested by /u/stephen_gordon9 on Reddit
https://old.reddit.com/r/Monero/comments/nmapig/_/gzssmlo/
beta-8-fixes-3
tobtoht 6 months ago
parent
commit
2336989147
  1. 4
      src/ContactsWidget.cpp
  2. 4
      src/model/AddressBookModel.h

4
src/ContactsWidget.cpp

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

4
src/model/AddressBookModel.h

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

Loading…
Cancel
Save