From de3482f5a8dcd3f07c2d9eff28608b7f5a01858f Mon Sep 17 00:00:00 2001 From: ConfuSomu Date: Sat, 18 Nov 2023 22:21:41 -0500 Subject: Remove duplicate status info widget --- src/mainwindow.cpp | 6 +++--- src/mainwindow.ui | 23 ----------------------- 2 files changed, 3 insertions(+), 26 deletions(-) (limited to 'src') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 8f72f23..82f4b37 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1,6 +1,5 @@ #include "mainwindow.h" #include "./ui_mainwindow.h" -#include "src/activitypub/appost.h" #include "src/archive/base_archive.h" #include "src/finddialog.h" #include "src/list_item.h" @@ -154,8 +153,9 @@ void MainWindow::on_actionOpen_URL_triggered(bool checked) { if (ok and not url.isEmpty()) { Instance* instance = Instance::create_instance(); APPost* post = instance->get_post_from_url(url); - QString html = post->get_html_render({ui->statusInfoText->width(), &locale_context}); - ui->statusInfoText->setHtml(html); + // Activity will be freed by StatusInfoWidget + APActivity* activity = new APActivity({.object = post}); + status_info_widget->do_process_activity(activity); delete instance; instance = nullptr; } else return; } diff --git a/src/mainwindow.ui b/src/mainwindow.ui index 2d7cf30..0ab8c02 100644 --- a/src/mainwindow.ui +++ b/src/mainwindow.ui @@ -57,29 +57,6 @@ - - - - IBeamCursor - - - false - - - true - - - <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> -<html><head><meta name="qrichtext" content="1" /><style type="text/css"> -p, li { white-space: pre-wrap; } -</style></head><body style=" font-family:'Noto Sans'; font-size:10pt; font-weight:400; font-style:normal;"> -<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-style:italic;">Select Status to display from list.</span></p></body></html> - - - Qt::TextBrowserInteraction - - - -- cgit v1.2.3-54-g00ecf