changeset 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 fba80767fd7a
children 4454a4dc73a3
files ui/administratorwindow.cpp ui/administratorwindow.h
diffstat 2 files changed, 10 insertions(+), 3 deletions(-) [+]
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);
 
--- a/ui/administratorwindow.h	Thu Apr 10 10:05:32 2014 +0200
+++ b/ui/administratorwindow.h	Thu Apr 10 10:06:47 2014 +0200
@@ -12,6 +12,9 @@
 #include <QTableView>
 #include <QPushButton>
 
+#include "certificatelist.h"
+#include "certificatetablemodel.h"
+
 class QMenu;
 class QAction;
 
@@ -38,6 +41,8 @@
     QMenuBar *menuBar;
 
     QTableView *certificateView;
+    CertificateList certList;
+    CertificateTabelModel *certificateModel;
     QPushButton *saveButton;
     QPushButton *loadButton;
     QPushButton *addButton;

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