keyboard: make font size grow
This commit is contained in:
parent
fbdfb5aa19
commit
02da3993f2
@ -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 ]()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user