text prediction: Move predictors to input panel

This commit is contained in:
Peter Hartmann 2022-01-19 14:55:01 +01:00
parent cec696a78b
commit 54d3379b12
6 changed files with 34 additions and 5 deletions

View File

@ -3,9 +3,6 @@ TARGET = $$qskPluginTarget(qskinputcontext)
QT += gui-private
# CONFIG += pinyin
# CONFIG += hunspell
CONFIG += plugin
CONFIG += qskinny

View File

@ -6,11 +6,10 @@
#ifndef QSK_HUNSPELL_TEXT_PREDICTOR_H
#define QSK_HUNSPELL_TEXT_PREDICTOR_H
#include "QskInputContextGlobal.h"
#include <QskTextPredictor.h>
#include <memory>
class QSK_INPUTCONTEXT_EXPORT QskHunspellTextPredictor : public QskTextPredictor
class QSK_EXPORT QskHunspellTextPredictor : public QskTextPredictor
{
using Inherited = QskTextPredictor;

View File

@ -9,6 +9,9 @@ QSK_SUBDIRS = common graphic nodes controls layouts dialogs inputpanel
INCLUDEPATH *= $${QSK_SUBDIRS}
DEPENDPATH *= $${QSK_SUBDIRS}
# CONFIG += pinyin
CONFIG += hunspell
# DEFINES += QSK_LAYOUT_COMPAT
HEADERS += \
@ -352,6 +355,36 @@ SOURCES += \
inputpanel/QskInputPredictionBar.cpp \
inputpanel/QskVirtualKeyboard.cpp
pinyin {
unix {
CONFIG += link_pkgconfig
PKGCONFIG += pinyin
HEADERS += \
inputpanel/QskPinyinTextPredictor.h
SOURCES += \
inputpanel/QskPinyinTextPredictor.cpp
}
}
hunspell {
unix {
CONFIG += link_pkgconfig
PKGCONFIG += hunspell
HEADERS += \
inputpanel/QskHunspellTextPredictor.h
SOURCES += \
inputpanel/QskHunspellTextPredictor.cpp
}
}
target.path = $${QSK_INSTALL_LIBS}
INSTALLS = target