summary refs log tree commit diff
path: root/include/timeline/widgets
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-02-19 23:33:11 +0200
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-02-19 23:33:11 +0200
commit127c52e39a5455d574fcbffd75753b31897e4877 (patch)
tree16847e445836393906136dde4f5fb830034d6612 /include/timeline/widgets
parentMove scaleImage() in Utils (diff)
downloadnheko-127c52e39a5455d574fcbffd75753b31897e4877.tar.xz
Scale down the preview image to fit in the application window
On macOS the modal has some extra space around the main content
that might make it unusable with a big enough image.
Diffstat (limited to 'include/timeline/widgets')
-rw-r--r--include/timeline/widgets/ImageItem.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/timeline/widgets/ImageItem.h b/include/timeline/widgets/ImageItem.h

index 0069a9fe..21d91b52 100644 --- a/include/timeline/widgets/ImageItem.h +++ b/include/timeline/widgets/ImageItem.h
@@ -26,6 +26,10 @@ #include "MatrixClient.h" +namespace dialogs { +class ImageOverlay; +} + class ImageItem : public QWidget { Q_OBJECT @@ -75,4 +79,5 @@ private: mtx::events::RoomEvent<mtx::events::msg::Image> event_; QSharedPointer<MatrixClient> client_; + QSharedPointer<dialogs::ImageOverlay> image_dialog_; };