mirror of
https://github.com/chris2511/xca.git
synced 2026-09-12 19:51:05 +05:00
38 lines
759 B
C++
38 lines
759 B
C++
/* vi: set sw=4 ts=4:
|
|
*
|
|
* Copyright (C) 2001 - 2009 Christian Hohnstaedt.
|
|
*
|
|
* All rights reserved.
|
|
*/
|
|
|
|
|
|
#include "CertExtend.h"
|
|
#include "lib/base.h"
|
|
#include "lib/func.h"
|
|
#include "lib/asn1time.h"
|
|
#include "widgets/validity.h"
|
|
#include "widgets/MainWindow.h"
|
|
#include <qlabel.h>
|
|
#include <qlineedit.h>
|
|
#include <qcombobox.h>
|
|
#include <qcheckbox.h>
|
|
|
|
|
|
CertExtend::CertExtend(QWidget *parent)
|
|
:QDialog(parent)
|
|
{
|
|
setupUi(this);
|
|
a1time time;
|
|
setWindowTitle(tr(XCA_TITLE));
|
|
image->setPixmap(*MainWindow::certImg);
|
|
validNumber->setText("1");
|
|
validRange->setCurrentIndex(2);
|
|
applyTimeDiff();
|
|
}
|
|
|
|
void CertExtend::applyTimeDiff()
|
|
{
|
|
applyTD(this, validNumber->text().toInt(), validRange->currentIndex(),
|
|
midnightCB->isChecked(), notBefore, notAfter);
|
|
}
|