keyboard: make font size grow

This commit is contained in:
Peter Hartmann 2018-03-23 07:59:26 +01:00
parent fbdfb5aa19
commit 02da3993f2

View File

@ -14,6 +14,7 @@
#include <QGuiApplication> #include <QGuiApplication>
#include <QStyleHints> #include <QStyleHints>
#include <QskLinearBox.h> #include <QskLinearBox.h>
#include <QskTextOptions.h>
#include <QTimer> #include <QTimer>
@ -150,6 +151,10 @@ QskKeyButton::QskKeyButton( int keyIndex, QskInputPanel* inputPanel, QQuickItem*
m_keyIndex( keyIndex ), m_keyIndex( keyIndex ),
m_inputPanel( inputPanel ) m_inputPanel( inputPanel )
{ {
QskTextOptions options;
options.setFontSizeMode( QskTextOptions::VerticalFit );
setTextOptions( options );
updateText(); updateText();
connect( this, &QskKeyButton::pressed, this, [ this ]() connect( this, &QskKeyButton::pressed, this, [ this ]()