Some checks failed
CodeQL Code Scanning / CodeQL (push) Has been cancelled
Build Application / Build Debug (push) Has been cancelled
Nix / Build (${{ matrix.system }}) (macos-13, x86_64-darwin) (push) Has been cancelled
Nix / Build (${{ matrix.system }}) (macos-14, aarch64-darwin) (push) Has been cancelled
Nix / Build (${{ matrix.system }}) (ubuntu-22.04, x86_64-linux) (push) Has been cancelled
Nix / Build (${{ matrix.system }}) (ubuntu-22.04-arm, aarch64-linux) (push) Has been cancelled
Update Flake Lockfile / update-flake (push) Has been cancelled
33 lines
759 B
C++
Executable File
33 lines
759 B
C++
Executable File
#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);
|
|
|
|
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();
|
|
|
|
private:
|
|
shared_qobject_ptr<VariableSizedImageObject> m_image_text_object;
|
|
};
|