From 9b1db44c2a94a8d4d56c85e97c391c5bdf762a95 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Fri, 22 Jul 2016 09:21:42 +0200 Subject: Polish charactermap example MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Use Qt 5 connection syntax. - Introduce helper function to calculate the square size, remove the existing 24 pixel limitation since that makes it impossible to render 20pt fonts. - Add filter chooser for font filters. - Add menu and info dialog showing DPI and default fonts. - Streamline code Change-Id: I0cd4d0475b5a7ed3c475de7a413abebbe688dfe2 Reviewed-by: Topi Reiniƶ --- examples/widgets/widgets/charactermap/characterwidget.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'examples/widgets/widgets/charactermap/characterwidget.h') diff --git a/examples/widgets/widgets/charactermap/characterwidget.h b/examples/widgets/widgets/charactermap/characterwidget.h index d1c0f28bc4..e195c177d0 100644 --- a/examples/widgets/widgets/charactermap/characterwidget.h +++ b/examples/widgets/widgets/charactermap/characterwidget.h @@ -76,6 +76,8 @@ protected: void paintEvent(QPaintEvent *event) Q_DECL_OVERRIDE; private: + void calculateSquareSize(); + QFont displayFont; int columns; int lastKey; -- cgit v1.2.3