text inside of message is selectable again, links are clickable, some refactor, some bugfixes

This commit is contained in:
Blue 2021-05-03 14:23:41 +03:00
parent 05d6761baa
commit f34289399e
14 changed files with 115 additions and 292 deletions

View file

@ -32,6 +32,7 @@
#include "shared/icons.h"
#include "shared/global.h"
#include "shared/utils.h"
namespace Models {
struct FeedItem;
@ -64,6 +65,7 @@ protected:
QPushButton* getButton(const Models::FeedItem& data) const;
QProgressBar* getBar(const Models::FeedItem& data) const;
QLabel* getStatusIcon(const Models::FeedItem& data) const;
QLabel* getBody(const Models::FeedItem& data) const;
void clearHelperWidget(const Models::FeedItem& data) const;
QSize calculateAttachSize(const QString& path, const QRect& bounds) const;
QSize constrainAttachSize(QSize src, QSize bounds) const;
@ -91,6 +93,7 @@ private:
std::map<QString, FeedButton*>* buttons;
std::map<QString, QProgressBar*>* bars;
std::map<QString, QLabel*>* statusIcons;
std::map<QString, QLabel*>* bodies;
std::set<QString>* idsToKeep;
bool clearingWidgets;