Mercurial > trustbridge
comparison ui/createcertlistdialog.cpp @ 426:d7cda835abd6
Some wording and Layout in TrustBridge Administration.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Thu, 17 Apr 2014 12:06:57 +0200 |
parents | 03c562b1a3ea |
children | d1819cd56dee |
comparison
equal
deleted
inserted
replaced
424:81cf25402cb0 | 426:d7cda835abd6 |
---|---|
35 QHBoxLayout *certLayout = new QHBoxLayout; | 35 QHBoxLayout *certLayout = new QHBoxLayout; |
36 QHBoxLayout *saveLayout = new QHBoxLayout; | 36 QHBoxLayout *saveLayout = new QHBoxLayout; |
37 | 37 |
38 QLabel *header = new QLabel("<h3>" + tr("Save certificate list") + "</h3>"); | 38 QLabel *header = new QLabel("<h3>" + tr("Save certificate list") + "</h3>"); |
39 QLabel *description = new QLabel( | 39 QLabel *description = new QLabel( |
40 tr("Save all managed root certificates in a new, signed certificate list")); | 40 tr("Save all managed root certificates in a new, signed certificate list.")); |
41 headerSubLayout->insertSpacing(0, 40); | 41 headerSubLayout->insertSpacing(0, 40); |
42 headerSubLayout->addWidget(description); | 42 headerSubLayout->addWidget(description); |
43 QFrame *headerSeparator = new QFrame(); | 43 QFrame *headerSeparator = new QFrame(); |
44 headerSeparator->setFrameShape(QFrame::HLine); | 44 headerSeparator->setFrameShape(QFrame::HLine); |
45 headerSeparator->setFrameShadow(QFrame::Sunken); | 45 headerSeparator->setFrameShadow(QFrame::Sunken); |
62 mSaveFile = new QLineEdit(); | 62 mSaveFile = new QLineEdit(); |
63 QPushButton *saveSelect = new QPushButton("..."); | 63 QPushButton *saveSelect = new QPushButton("..."); |
64 connect(saveSelect, SIGNAL(clicked()), this, SLOT(openSaveLocation())); | 64 connect(saveSelect, SIGNAL(clicked()), this, SLOT(openSaveLocation())); |
65 saveSelect->setFixedWidth(30); | 65 saveSelect->setFixedWidth(30); |
66 | 66 |
67 QString footerText = tr("In addition, each certificate list will be saved" | 67 QString footerText = tr("In addition, each certificate list will be saved " |
68 "automatically in the archive directory:\n"); | 68 "automatically in the archive directory:\n"); |
69 // TODO print out the path, not the displayName. | 69 // TODO print out the path, not the displayName. |
70 footerText.append(QStandardPaths::displayName(QStandardPaths::DataLocation)); | 70 footerText.append(QStandardPaths::writableLocation( |
71 QStandardPaths::DataLocation)); | |
72 //footerText.append(QStandardPaths::displayName(QStandardPaths::DataLocation)); | |
71 QLabel *footer = new QLabel(footerText); | 73 QLabel *footer = new QLabel(footerText); |
72 saveLayout->addWidget(saveLabel); | 74 saveLayout->addWidget(saveLabel); |
73 saveLayout->addWidget(mSaveFile); | 75 saveLayout->addWidget(mSaveFile); |
74 saveLayout->addWidget(saveSelect); | 76 saveLayout->addWidget(saveSelect); |
75 | 77 |