Browse Source

Prevent editing of contact list and chat list

chat
Duke Leto 4 years ago
parent
commit
9d583e69b7
  1. 4
      src/mainwindow.cpp

4
src/mainwindow.cpp

@ -138,6 +138,10 @@ MainWindow::MainWindow(QWidget *parent) :
QItemSelectionModel* qsm = ui->chatView->selectionModel();
QObject::connect(qsm, SIGNAL(selectionChanged(const QItemSelection&, const QItemSelection&)),this, SLOT(itemselectionChanged()));
// Contacts and chat views should not be editable
ui->chatView->setEditTriggers(QAbstractItemView::NoEditTriggers);
ui->contactsView->setEditTriggers(QAbstractItemView::NoEditTriggers);
setupSendTab();
setupTransactionsTab();
setupReceiveTab();

Loading…
Cancel
Save