• Frederik Gladhorn's avatar
    TextInput: Fix cursor navigation with mask · 5f7ba49e
    Frederik Gladhorn authored
    
    text().length() was used to check if a cursor movement
    to the right was valid. The problem is that with a mask and
    not text set yet (inputMask: "#0:00;*") pressing the right
    arrow would not move the cursor.
    The input and other functions use the actual d->m_text
    since that includes the mask length.
    
    Task-number: QTBUG-30740
    
    Change-Id: Ic225778e5a49d80b754b63d0eb4a438eaa9818e2
    Reviewed-by: default avatarGabriel de Dietrich <gabriel.dedietrich@digia.com>
    5f7ba49e