Skip to content

Commit 1cbe295

Browse files
committed
TextBrowser changes required for handling resizes.
1 parent 9815563 commit 1cbe295

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ui/textbrowser.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <QtCore/QMutex>
1010
#include <QtCore/QWaitCondition>
1111
#include <QtCore/QSharedPointer>
12+
#include <QtCore/QTimer>
1213
#include <queue>
1314
#include <optional>
1415
#include "binaryninjaapi.h"
@@ -112,8 +113,9 @@ class BINARYNINJAUIAPI TextBrowser : public QTextBrowser
112113
std::set<QUrl> m_requested;
113114
std::optional<QUrl> m_markdownUrl;
114115
QString m_markdownPrefix;
116+
QTimer m_layoutTimer;
115117

116-
void resizeImageFragment(
118+
bool resizeImageFragment(
117119
QTextBlock& block, QTextFragment fragment, QTextImageFormat imgFormat, const QImage& contents);
118120

119121
protected:

0 commit comments

Comments
 (0)