From 6c31f5fe7a417ba904b7c31aa5065363a8f9d94b Mon Sep 17 00:00:00 2001 From: redsky17 Date: Sat, 26 Jan 2019 18:03:49 +0000 Subject: Add initial support for QtIndenticon Add initial loading of qt jdenticon plugin: https://github.com/redsky17/qt-jdenticon Currently, the library's functionality has not been integrated into the rest of nheko. Next step is to add a configuration item in the User Settings and use the plugin to generate avatars for users without their own picture. These avatars should be cached in the Cache object. --- src/MainWindow.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/MainWindow.h') diff --git a/src/MainWindow.h b/src/MainWindow.h index 2336a929..1aadbf4d 100644 --- a/src/MainWindow.h +++ b/src/MainWindow.h @@ -31,6 +31,8 @@ #include "dialogs/UserProfile.h" #include "ui/OverlayModal.h" +#include "jdenticoninterface.h" + class ChatPage; class LoadingIndicator; class OverlayModal; @@ -129,6 +131,8 @@ private slots: void removeOverlayProgressBar(); private: + bool loadJdenticonPlugin(); + void showDialog(QWidget *dialog); bool hasActiveUser(); void restoreWindowSize(); @@ -158,4 +162,6 @@ private: //! Overlay modal used to project other widgets. OverlayModal *modal_ = nullptr; LoadingIndicator *spinner_ = nullptr; + + JdenticonInterface *jdenticonInteface_ = nullptr; }; -- cgit 1.5.1