diff ui/administratorwindow.cpp @ 343:e3d6de930c90

Updated the table ui in administrator app.
author Raimund Renkert <rrenkert@intevation.de>
date Thu, 10 Apr 2014 10:06:47 +0200
parents 811eec4e1b99
children 4454a4dc73a3
line wrap: on
line diff
--- a/ui/administratorwindow.cpp	Thu Apr 10 10:05:32 2014 +0200
+++ b/ui/administratorwindow.cpp	Thu Apr 10 10:06:47 2014 +0200
@@ -61,12 +61,14 @@
     // The certificate list
     QGroupBox *certBox = new QGroupBox(tr("Managed Certificates"));
     certificateView = new QTableView;
-    certificateView->setModel(new CertificateTabelModel());
-    certificateView->setColumnWidth(0, 30);
+    certificateModel = new CertificateTabelModel();
+    certificateView->setModel(certificateModel);
+    certificateView->setColumnWidth(0, 60);
     certificateView->setColumnWidth(2, 130);
     certificateView->setColumnWidth(3, 130);
     certificateView->setColumnWidth(4, 200);
-
+    certificateView->setSelectionBehavior(QAbstractItemView::SelectRows);
+    certificateView->verticalHeader()->setVisible(false);
     certLayout->addWidget(certificateView);
     certBox->setLayout(certLayout);
 

http://wald.intevation.org/projects/trustbridge/