Browse Source

Merge pull request #13214 from Chocobo1/edit

Disable edit action
adaptive-webui-19844
Mike Tzou 4 years ago committed by GitHub
parent
commit
fd200ac31d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      src/gui/properties/peerlistwidget.cpp
  2. 4
      src/gui/search/searchjobwidget.cpp

1
src/gui/properties/peerlistwidget.cpp

@ -86,6 +86,7 @@ PeerListWidget::PeerListWidget(PropertiesWidget *parent) @@ -86,6 +86,7 @@ PeerListWidget::PeerListWidget(PropertiesWidget *parent)
setRootIsDecorated(false);
setItemsExpandable(false);
setAllColumnsShowFocus(true);
setEditTriggers(QAbstractItemView::NoEditTriggers);
setSelectionMode(QAbstractItemView::ExtendedSelection);
header()->setStretchLastSection(false);
// List Model

4
src/gui/search/searchjobwidget.cpp

@ -69,7 +69,7 @@ SearchJobWidget::SearchJobWidget(SearchHandler *searchHandler, QWidget *parent) @@ -69,7 +69,7 @@ SearchJobWidget::SearchJobWidget(SearchHandler *searchHandler, QWidget *parent)
unused.setVerticalHeader(new QHeaderView(Qt::Horizontal));
loadSettings();
m_ui->resultsBrowser->setSelectionMode(QAbstractItemView::ExtendedSelection);
header()->setStretchLastSection(false);
// Set Search results list model
@ -93,9 +93,11 @@ SearchJobWidget::SearchJobWidget(SearchHandler *searchHandler, QWidget *parent) @@ -93,9 +93,11 @@ SearchJobWidget::SearchJobWidget(SearchHandler *searchHandler, QWidget *parent)
m_ui->resultsBrowser->hideColumn(SearchSortModel::DL_LINK); // Hide url column
m_ui->resultsBrowser->hideColumn(SearchSortModel::DESC_LINK);
m_ui->resultsBrowser->setSelectionMode(QAbstractItemView::ExtendedSelection);
m_ui->resultsBrowser->setRootIsDecorated(false);
m_ui->resultsBrowser->setAllColumnsShowFocus(true);
m_ui->resultsBrowser->setSortingEnabled(true);
m_ui->resultsBrowser->setEditTriggers(QAbstractItemView::NoEditTriggers);
// Ensure that at least one column is visible at all times
bool atLeastOne = false;

Loading…
Cancel
Save