~thomas-moenicke/phablet-extras/maliit-plugins-pinyin

« back to all changes in this revision

Viewing changes to maliit-keyboard/lib/models/layout.h

when typing, word suggestions now show up on top of keyboard:
- making WordRibbon a ListModel that can be accessed from QML
- adding ListView and delegate to QML to show WordRibbon candidates
- connecting delegates to event handler
- enable presage and preedit in build system.

Approved by PS Jenkins bot, Bill Filler, Thomas Moenicke.

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
                         NOTIFY widthChanged)
68
68
    Q_PROPERTY(int height READ height
69
69
                          NOTIFY heightChanged)
 
70
    Q_PROPERTY(int wordribbon_height READ wordRibbonHeight
 
71
                          NOTIFY wordRibbonHeightChanged)
70
72
    Q_PROPERTY(QPoint origin READ origin
71
73
                             NOTIFY originChanged)
72
74
    Q_PROPERTY(QUrl background READ background
113
115
    Q_SLOT int height() const;
114
116
    Q_SIGNAL void heightChanged(int changed);
115
117
 
 
118
    Q_SLOT int wordRibbonHeight() const;
 
119
    Q_SIGNAL void wordRibbonHeightChanged(int changed);
 
120
 
116
121
    Q_SLOT QPoint origin() const;
117
122
    Q_SIGNAL void originChanged(const QPoint &changed);
118
123