2022-08-02 23:47:54 +05:30
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QTextBrowser>
|
|
|
|
|
|
|
|
#include "QObjectPtr.h"
|
|
|
|
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
class VariableSizedImageObject;
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
|
|
|
/** This subclasses QTextBrowser to provide additional capabilities
|
|
|
|
* to it, like allowing for images to be shown.
|
|
|
|
*/
|
|
|
|
class ProjectDescriptionPage final : public QTextBrowser {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
ProjectDescriptionPage(QWidget* parent = nullptr);
|
|
|
|
|
|
|
|
void setMetaEntry(QString entry);
|
|
|
|
|
2022-10-11 22:49:29 +05:30
|
|
|
public slots:
|
|
|
|
/** Flushes the current processing happening in the page.
|
|
|
|
*
|
|
|
|
* Should be called when changing the page's content entirely, to
|
|
|
|
* prevent old tasks from changing the new content.
|
|
|
|
*/
|
|
|
|
void flush();
|
|
|
|
|
2022-08-02 23:47:54 +05:30
|
|
|
private:
|
|
|
|
shared_qobject_ptr<VariableSizedImageObject> m_image_text_object;
|
|
|
|
};
|