Added extensions section in about dialog; fixed url as well

This commit is contained in:
Jonathan White 2016-12-07 22:40:09 -05:00
parent 65992ba6ae
commit fa891edb7c
No known key found for this signature in database
GPG Key ID: 506BDC439519BC13
2 changed files with 27 additions and 3 deletions

View File

@ -56,6 +56,22 @@ AboutDialog::AboutDialog(QWidget* parent)
.arg(Crypto::backendVersion()); .arg(Crypto::backendVersion());
m_ui->label_libs->setText(libs); m_ui->label_libs->setText(libs);
QString extensions;
#ifdef WITH_XC_HTTP
extensions += "- KeePassHTTP\n";
#endif
#ifdef WITH_XC_AUTOTYPE
extensions += "- Autotype\n";
#endif
#ifdef WITH_XC_YUBIKEY
extensions += "- Yubikey\n";
#endif
if (extensions.isEmpty())
extensions = "None";
m_ui->label_features->setText(m_ui->label_features->text() + extensions);
setAttribute(Qt::WA_DeleteOnClose); setAttribute(Qt::WA_DeleteOnClose);
connect(m_ui->buttonBox, SIGNAL(rejected()), SLOT(close())); connect(m_ui->buttonBox, SIGNAL(rejected()), SLOT(close()));
} }

View File

@ -6,8 +6,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>375</width> <width>455</width>
<height>210</height> <height>238</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
@ -53,7 +53,7 @@
</sizepolicy> </sizepolicy>
</property> </property>
<property name="text"> <property name="text">
<string notr="true">&lt;a href=&quot;http://www.keepassx.org/&quot;&gt;http://www.keepassx.org/&lt;/a&gt;</string> <string notr="true">&lt;a href=&quot;https://www.keepassxc.org/&quot;&gt;https://www.keepassxc.org/&lt;/a&gt;</string>
</property> </property>
<property name="openExternalLinks"> <property name="openExternalLinks">
<bool>true</bool> <bool>true</bool>
@ -93,6 +93,14 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="QLabel" name="label_features">
<property name="text">
<string>Extensions:
</string>
</property>
</widget>
</item>
<item> <item>
<widget class="QDialogButtonBox" name="buttonBox"> <widget class="QDialogButtonBox" name="buttonBox">
<property name="standardButtons"> <property name="standardButtons">