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