Move to Qt

Everything seems to be working
Only timer is not moved over
This commit is contained in:
2024-09-12 16:59:54 +02:00
parent fc181726b9
commit 9eef1fc3ff
39 changed files with 399 additions and 501 deletions
+1 -13
View File
@@ -1,4 +1,5 @@
#include "Test.hpp"
#include <QObject>
TEST(UI_button, to_from_json)
{
@@ -10,16 +11,3 @@ TEST(UI_button, to_from_json)
EXPECT_EQ(button.fg_color(), button2.fg_color());
EXPECT_EQ(button.bg_color(), button2.bg_color());
}
void on_click(std::string id)
{
UNUSED(id);
EXPECT_EQ(id, "button_id");
}
TEST(UI_button, on_click)
{
UI_button button("button_id", "button_text", Color(255, 255, 255), Color(0, 0, 0), on_click);
button.click();
std::this_thread::sleep_for(std::chrono::milliseconds(1));
}