- Redesign with GTK4 and libadwaita 1.2
diff --git a/src/models/transaction.cpp b/src/models/transaction.cpp
index 3420f1e89..7b445d140 100644
--- a/src/models/transaction.cpp
+++ b/src/models/transaction.cpp
@@ -47,6 +47,39 @@ RepeatInterval Transaction::getRepeatInterval() const
return m_repeatInterval;
}
+std::string Transaction::getRepeatIntervalAsString() const
+{
+ if(m_repeatInterval == RepeatInterval::Never)
+ {
+ return "Never";
+ }
+ else if(m_repeatInterval == RepeatInterval::Daily)
+ {
+ return "Daily";
+ }
+ else if(m_repeatInterval == RepeatInterval::Weekly)
+ {
+ return "Weekly";
+ }
+ else if(m_repeatInterval == RepeatInterval::Monthly)
+ {
+ return "Monthly";
+ }
+ else if(m_repeatInterval == RepeatInterval::Quarterly)
+ {
+ return "Quarterly";
+ }
+ else if(m_repeatInterval == RepeatInterval::Yearly)
+ {
+ return "Yearly";
+ }
+ else if(m_repeatInterval == RepeatInterval::Biyearly)
+ {
+ return "Biyearly";
+ }
+ return "";
+}
+
void Transaction::setRepeatInterval(RepeatInterval repeatInterval)
{
m_repeatInterval = repeatInterval;
diff --git a/src/models/transaction.hpp b/src/models/transaction.hpp
index 6e1cf1d7c..0cd781c9b 100644
--- a/src/models/transaction.hpp
+++ b/src/models/transaction.hpp
@@ -89,6 +89,12 @@ namespace NickvisionMoney::Models
* @returns The repeat interval of the transaction
*/
RepeatInterval getRepeatInterval() const;
+ /**
+ * Gets the repeat interval of the transaction as a string
+ *
+ * @returns The repeat interval of the transaction as a string
+ */
+ std::string getRepeatIntervalAsString() const;
/**
* Sets the repeat interval of the transaction
*
diff --git a/src/ui/application.cpp b/src/ui/application.cpp
index 73ff426ca..86ecf728e 100644
--- a/src/ui/application.cpp
+++ b/src/ui/application.cpp
@@ -13,7 +13,7 @@ Application::Application(const std::string& id, GApplicationFlags flags) : m_adw
m_appInfo.setName("Nickvision Money");
m_appInfo.setShortName("Money");
m_appInfo.setDescription("A personal finance manager.");
- m_appInfo.setVersion("2022.10.0-beta1");
+ m_appInfo.setVersion("2022.10.0-beta2");
m_appInfo.setChangelog("