// private QTreeWidgetItem* QgsAuthSslConfigWidget::addRootItem( const QString &label ) { QTreeWidgetItem *item = new QTreeWidgetItem( QStringList() << label, ( int )ConfigParent ); setItemBold_( item ); item->setTextAlignment( 0, Qt::AlignVCenter ); item->setFlags( item->flags() & ~Qt::ItemIsSelectable ); treeSslConfig->insertTopLevelItem( treeSslConfig->topLevelItemCount(), item ); return item; }
void QgsAuthAuthoritiesEditor::setupCaCertsTree() { treeWidgetCAs->setColumnCount( 4 ); treeWidgetCAs->setHeaderLabels( QStringList() << tr( "Common Name" ) << tr( "Serial #" ) << tr( "Expiry Date" ) << tr( "Trust Policy" ) ); treeWidgetCAs->setColumnWidth( 0, 300 ); treeWidgetCAs->setColumnWidth( 1, 75 ); treeWidgetCAs->setColumnWidth( 2, 200 ); // add root sections mDbCaSecItem = new QTreeWidgetItem( treeWidgetCAs, QStringList( QgsAuthCertUtils::getCaSourceName( QgsAuthCertUtils::InDatabase ) ), ( int )QgsAuthAuthoritiesEditor::Section ); setItemBold_( mDbCaSecItem ); mDbCaSecItem->setFlags( Qt::ItemIsEnabled ); mDbCaSecItem->setExpanded( true ); treeWidgetCAs->insertTopLevelItem( 0, mDbCaSecItem ); mFileCaSecItem = new QTreeWidgetItem( treeWidgetCAs, QStringList( QgsAuthCertUtils::getCaSourceName( QgsAuthCertUtils::FromFile ) ), ( int )QgsAuthAuthoritiesEditor::Section ); setItemBold_( mFileCaSecItem ); mFileCaSecItem->setFlags( Qt::ItemIsEnabled ); mFileCaSecItem->setExpanded( true ); treeWidgetCAs->insertTopLevelItem( 0, mFileCaSecItem ); mRootCaSecItem = new QTreeWidgetItem( treeWidgetCAs, QStringList( QgsAuthCertUtils::getCaSourceName( QgsAuthCertUtils::SystemRoot ) ), ( int )QgsAuthAuthoritiesEditor::Section ); setItemBold_( mRootCaSecItem ); mRootCaSecItem->setFlags( Qt::ItemIsEnabled ); mRootCaSecItem->setExpanded( false ); treeWidgetCAs->insertTopLevelItem( 0, mRootCaSecItem ); }
void QgsAuthIdentitiesEditor::setupIdentitiesTree() { treeIdentities->setColumnCount( 3 ); treeIdentities->setHeaderLabels( QStringList() << tr( "Common Name" ) << tr( "Serial #" ) << tr( "Expiry Date" ) ); treeIdentities->setColumnWidth( 0, 300 ); treeIdentities->setColumnWidth( 1, 75 ); // add root sections mRootCertIdentItem = new QTreeWidgetItem( treeIdentities, QStringList( tr( "Certificate Bundles" ) ), ( int )QgsAuthIdentitiesEditor::Section ); setItemBold_( mRootCertIdentItem ); mRootCertIdentItem->setFlags( Qt::ItemIsEnabled ); mRootCertIdentItem->setExpanded( true ); treeIdentities->insertTopLevelItem( 0, mRootCertIdentItem ); }
void QgsAuthServersEditor::setupSslConfigsTree() { treeServerConfigs->setColumnCount( 3 ); treeServerConfigs->setHeaderLabels( QStringList() << tr( "Common Name" ) << tr( "Host" ) << tr( "Expiry Date" ) ); treeServerConfigs->setColumnWidth( 0, 275 ); treeServerConfigs->setColumnWidth( 1, 200 ); // add root sections mRootSslConfigItem = new QTreeWidgetItem( treeServerConfigs, QStringList( tr( "SSL Server Configurations" ) ), ( int )QgsAuthServersEditor::Section ); setItemBold_( mRootSslConfigItem ); mRootSslConfigItem->setFlags( Qt::ItemIsEnabled ); mRootSslConfigItem->setExpanded( true ); treeServerConfigs->insertTopLevelItem( 0, mRootSslConfigItem ); }
void QgsAuthTrustedCAsDialog::setupCaCertsTree() { treeTrustedCAs->setColumnCount( 3 ); treeTrustedCAs->setHeaderLabels( QStringList() << tr( "Common Name" ) << tr( "Serial #" ) << tr( "Expiry Date" ) ); treeTrustedCAs->setColumnWidth( 0, 300 ); treeTrustedCAs->setColumnWidth( 1, 75 ); // add root section mRootCaSecItem = new QTreeWidgetItem( treeTrustedCAs, QStringList( tr( "Authorities/Issuers" ) ), ( int )QgsAuthTrustedCAsDialog::Section ); setItemBold_( mRootCaSecItem ); mRootCaSecItem->setFlags( Qt::ItemIsEnabled ); mRootCaSecItem->setExpanded( true ); treeTrustedCAs->insertTopLevelItem( 0, mRootCaSecItem ); }