summary refs log tree commit diff
path: root/include/Utils.h
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-05-11 16:00:14 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-05-11 16:00:14 +0300
commit18061f06002b349bdc0e5b439a84d54545b9c87e (patch)
treec58d47200c244c8005ac05e7f7f73c030943088d /include/Utils.h
parentMake explicit that MatrixClient & Cache are unique pointers (diff)
downloadnheko-18061f06002b349bdc0e5b439a84d54545b9c87e.tar.xz
Use the correct avatar size for HiDPI displays
Diffstat (limited to 'include/Utils.h')
-rw-r--r--include/Utils.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/Utils.h b/include/Utils.h

index 6fea4962..ad8e2073 100644 --- a/include/Utils.h +++ b/include/Utils.h
@@ -8,6 +8,7 @@ #include "timeline/widgets/VideoItem.h" #include <QDateTime> +#include <QPixmap> #include <mtx/events/collections.hpp> namespace utils { @@ -168,4 +169,7 @@ message_body(const mtx::events::collections::TimelineEvents &event) //! Calculate the Levenshtein distance between two strings with character skipping. int levenshtein_distance(const std::string &s1, const std::string &s2); + +QPixmap +scaleImageToPixmap(const QImage &img, int size); }