re-enable link resolver, but fix the underlying issue in the "link changed" signal.
The feature itself still doesn't work for me, but this code does the same thing. only thing that's really different is it also disconnects the signal properly once the TextLayoutElement is deleted
This commit is contained in:
@@ -83,6 +83,8 @@ public:
|
||||
const QSize &size, QColor color, FontStyle style,
|
||||
float scale);
|
||||
|
||||
void listenToLinkChanges();
|
||||
|
||||
protected:
|
||||
void addCopyTextToString(QString &str, int from = 0,
|
||||
int to = INT_MAX) const override;
|
||||
@@ -96,6 +98,8 @@ private:
|
||||
QColor color;
|
||||
FontStyle style;
|
||||
float scale;
|
||||
|
||||
std::vector<pajlada::Signals::ScopedConnection> managedConnections_;
|
||||
};
|
||||
|
||||
// TEXT ICON
|
||||
|
||||
Reference in New Issue
Block a user