aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-pdf/link.h
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2019-01-02 09:31:52 -0500
committerGitHub <noreply@github.com>2019-01-02 09:31:52 -0500
commitcd407705124fefe2b293120c845319c369929c86 (patch)
tree635f1cea2c9a39ee7495396a43aa04957dad7f2a /src-qt5/desktop-utils/lumina-pdf/link.h
parentMerge pull request #644 from maxsteciuk/bugfix/lumina-fm-crash-on-startup (diff)
parentSwitches from keeping links in a QHash to a std::vector. This fixes some race... (diff)
downloadlumina-cd407705124fefe2b293120c845319c369929c86.tar.gz
lumina-cd407705124fefe2b293120c845319c369929c86.tar.bz2
lumina-cd407705124fefe2b293120c845319c369929c86.zip
Merge pull request #642 from stackyjoe/master
Some changes and fixes to LuminaPDF
Diffstat (limited to 'src-qt5/desktop-utils/lumina-pdf/link.h')
-rw-r--r--src-qt5/desktop-utils/lumina-pdf/link.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src-qt5/desktop-utils/lumina-pdf/link.h b/src-qt5/desktop-utils/lumina-pdf/link.h
new file mode 100644
index 00000000..3f95ef88
--- /dev/null
+++ b/src-qt5/desktop-utils/lumina-pdf/link.h
@@ -0,0 +1,20 @@
+#ifndef LUMINA_PDF_LINK_H
+#define LUMINA_PDF_LINK_H
+
+namespace LuminaPDF {
+
+class Link {
+public:
+ Link(TextData *_data, Poppler::Link *_link) : data(_data), link(_link) {}
+ ~Link() { delete data; }
+
+ TextData *getData() { return data; }
+ Poppler::Link *getLink() { return link; }
+
+private:
+ TextData *data;
+ Poppler::Link *link;
+};
+
+} // namespace LuminaPDF
+#endif // LUMINA_PDF_LINK_H
bgstack15