diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2016-07-22 09:21:42 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2016-08-02 18:57:49 +0000 |
commit | 9b1db44c2a94a8d4d56c85e97c391c5bdf762a95 (patch) | |
tree | 4c4a7b47ef45bca4d689ac4b3c67ee26b7a7f4db /examples/widgets/widgets/charactermap/mainwindow.h | |
parent | 879fd5bb5ce94d9d98b966448029c030832eb582 (diff) |
Polish charactermap example
- 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ƶ <topi.reinio@theqtcompany.com>
Diffstat (limited to 'examples/widgets/widgets/charactermap/mainwindow.h')
-rw-r--r-- | examples/widgets/widgets/charactermap/mainwindow.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/widgets/widgets/charactermap/mainwindow.h b/examples/widgets/widgets/charactermap/mainwindow.h index 75e7e78fed..b24816418b 100644 --- a/examples/widgets/widgets/charactermap/mainwindow.h +++ b/examples/widgets/widgets/charactermap/mainwindow.h @@ -63,18 +63,18 @@ public: MainWindow(); public slots: + void filterChanged(int); void findStyles(const QFont &font); void findSizes(const QFont &font); void insertCharacter(const QString &character); #ifndef QT_NO_CLIPBOARD void updateClipboard(); #endif + void showInfo(); private: CharacterWidget *characterWidget; -#ifndef QT_NO_CLIPBOARD - QClipboard *clipboard; -#endif + QComboBox *filterCombo; QComboBox *styleCombo; QComboBox *sizeCombo; QFontComboBox *fontCombo; |