comparison 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
comparison
equal deleted inserted replaced
342:fba80767fd7a 343:e3d6de930c90
59 QHBoxLayout *bottomLayout = new QHBoxLayout; 59 QHBoxLayout *bottomLayout = new QHBoxLayout;
60 60
61 // The certificate list 61 // The certificate list
62 QGroupBox *certBox = new QGroupBox(tr("Managed Certificates")); 62 QGroupBox *certBox = new QGroupBox(tr("Managed Certificates"));
63 certificateView = new QTableView; 63 certificateView = new QTableView;
64 certificateView->setModel(new CertificateTabelModel()); 64 certificateModel = new CertificateTabelModel();
65 certificateView->setColumnWidth(0, 30); 65 certificateView->setModel(certificateModel);
66 certificateView->setColumnWidth(0, 60);
66 certificateView->setColumnWidth(2, 130); 67 certificateView->setColumnWidth(2, 130);
67 certificateView->setColumnWidth(3, 130); 68 certificateView->setColumnWidth(3, 130);
68 certificateView->setColumnWidth(4, 200); 69 certificateView->setColumnWidth(4, 200);
69 70 certificateView->setSelectionBehavior(QAbstractItemView::SelectRows);
71 certificateView->verticalHeader()->setVisible(false);
70 certLayout->addWidget(certificateView); 72 certLayout->addWidget(certificateView);
71 certBox->setLayout(certLayout); 73 certBox->setLayout(certLayout);
72 74
73 // The header (icon, about text) 75 // The header (icon, about text)
74 QImage *logoImage = new QImage(":/img/logo.png"); 76 QImage *logoImage = new QImage(":/img/logo.png");

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