[PATCH 1 of 2] (issue166) Disable multiple selection for certificates

Wald Commits scm-commit at wald.intevation.org
Tue Oct 14 18:11:40 CEST 2014


# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1413303017 -7200
# Node ID c582b935c12024a4b29c6a22fbdea13dd0b1dc41
# Parent  02c7dea7ea676cf6de70e1dbc6d9520d39aea10c
(issue166) Disable multiple selection for certificates.

diff -r 02c7dea7ea67 -r c582b935c120 ui/administratorwindow.cpp
--- a/ui/administratorwindow.cpp	Mon Oct 13 18:13:22 2014 +0200
+++ b/ui/administratorwindow.cpp	Tue Oct 14 18:10:17 2014 +0200
@@ -101,6 +101,7 @@
     certificateView->resizeColumnsToContents();
     certificateView->setColumnWidth(0, 60);
     certificateView->setSelectionBehavior(QAbstractItemView::SelectRows);
+    certificateView->setSelectionMode(QAbstractItemView::SingleSelection);
     connect(certificateView, SIGNAL(clicked(const QModelIndex&)), this,
         SLOT(clickedCertificate(const QModelIndex&)));
     certificateView->verticalHeader()->setVisible(false);


More information about the Trustbridge-commits mailing list