diff --git a/saoriviewentry.cpp b/saoriviewentry.cpp index 6869e5c..d9a221a 100644 --- a/saoriviewentry.cpp +++ b/saoriviewentry.cpp @@ -30,7 +30,7 @@ #include #include -SaoriViewEntry::SaoriViewEntry(uint id, QWidget *parent) : +SaoriViewEntry::SaoriViewEntry(long id, QWidget *parent) : QTextBrowser(parent) { setReadOnly(true); @@ -62,6 +62,11 @@ setFixedHeight(document()->size().height()); } +long SaoriViewEntry::id() +{ + return m_id; +} + void SaoriViewEntry::resizeEvent(QResizeEvent *e) { document()->adjustSize(); diff --git a/saoriviewentry.h b/saoriviewentry.h index a3a809f..c512150 100644 --- a/saoriviewentry.h +++ b/saoriviewentry.h @@ -36,9 +36,9 @@ Q_OBJECT public: - SaoriViewEntry(uint id,QWidget *parent = nullptr); + SaoriViewEntry(long id,QWidget *parent = nullptr); void setContent(const QString content); - + long id(); protected: virtual void resizeEvent(QResizeEvent *e); @@ -46,7 +46,7 @@ const QString imageReplacer(); protected: - uint m_id; + long m_id; QString m_original; QMap m_urlmap;