about: add versions tab
authortobtoht <tob@featherwallet.org>
Thu, 10 Apr 2025 02:19:34 +0000 (04:19 +0200)
committertobtoht <tob@featherwallet.org>
Thu, 10 Apr 2025 02:19:34 +0000 (04:19 +0200)
src/dialog/AboutDialog.cpp
src/dialog/AboutDialog.ui

index 123b195da7bdfd0b9f9ea727194bc23a5eeca564..bf8c7cf1d3fe087d8f8a94d473a72547cfa8adf7 100644 (file)
@@ -6,8 +6,10 @@
 
 #include <QMessageBox>
 #include <QDate>
+#include <QSslSocket>
 
 #include "utils/Utils.h"
+#include "version.h"
 
 AboutDialog::AboutDialog(QWidget *parent)
         : WindowModalDialog(parent)
@@ -26,6 +28,12 @@ AboutDialog::AboutDialog(QWidget *parent)
     auto ack_text = Utils::barrayToString(ack);
     ui->ackText->setText(ack_text);
 
+    ui->label_featherVersion->setText(FEATHER_VERSION);
+    ui->label_moneroVersion->setText(MONERO_VERSION);
+    ui->label_qtVersion->setText(QT_VERSION_STR);
+    ui->label_torVersion->setText(TOR_VERSION);
+    ui->label_sslVersion->setText(QSslSocket::sslLibraryVersionString());
+
     this->adjustSize();
 }
 
index 14c8b93175e2b89bd4d1973b6d6b920478a74f27..1d06e2e85580154896ce600027a70dbefcb19c0f 100644 (file)
@@ -23,7 +23,7 @@
    <item>
     <widget class="QTabWidget" name="tabWidget">
      <property name="currentIndex">
-      <number>0</number>
+      <number>2</number>
      </property>
      <widget class="QWidget" name="Feather">
       <attribute name="title">
        </item>
       </layout>
      </widget>
+     <widget class="QWidget" name="tab_2">
+      <attribute name="title">
+       <string>Versions</string>
+      </attribute>
+      <layout class="QFormLayout" name="formLayout_2">
+       <item row="0" column="0">
+        <widget class="QLabel" name="label_5">
+         <property name="text">
+          <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:700;&quot;&gt;Feather:&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
+         </property>
+        </widget>
+       </item>
+       <item row="0" column="1">
+        <widget class="QLabel" name="label_featherVersion">
+         <property name="text">
+          <string>TextLabel</string>
+         </property>
+        </widget>
+       </item>
+       <item row="1" column="0">
+        <widget class="QLabel" name="label_20">
+         <property name="text">
+          <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:700;&quot;&gt;Monero:&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
+         </property>
+        </widget>
+       </item>
+       <item row="1" column="1">
+        <widget class="QLabel" name="label_moneroVersion">
+         <property name="text">
+          <string>TextLabel</string>
+         </property>
+        </widget>
+       </item>
+       <item row="2" column="0">
+        <widget class="QLabel" name="label_22">
+         <property name="text">
+          <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:700;&quot;&gt;Qt:&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
+         </property>
+        </widget>
+       </item>
+       <item row="2" column="1">
+        <widget class="QLabel" name="label_qtVersion">
+         <property name="text">
+          <string>TextLabel</string>
+         </property>
+        </widget>
+       </item>
+       <item row="4" column="0">
+        <widget class="QLabel" name="label_24">
+         <property name="text">
+          <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:700;&quot;&gt;SSL:&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
+         </property>
+        </widget>
+       </item>
+       <item row="4" column="1">
+        <widget class="QLabel" name="label_sslVersion">
+         <property name="text">
+          <string>TextLabel</string>
+         </property>
+        </widget>
+       </item>
+       <item row="3" column="0">
+        <widget class="QLabel" name="label_26">
+         <property name="text">
+          <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;span style=&quot; font-weight:700;&quot;&gt;Tor:&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
+         </property>
+        </widget>
+       </item>
+       <item row="3" column="1">
+        <widget class="QLabel" name="label_torVersion">
+         <property name="text">
+          <string>TextLabel</string>
+         </property>
+        </widget>
+       </item>
+      </layout>
+     </widget>
      <widget class="QWidget" name="acknowledgements">
       <attribute name="title">
        <string>Acknowledgements</string>