text prediction: Move predictors to input panel
This commit is contained in:
parent
cec696a78b
commit
54d3379b12
|
@ -3,9 +3,6 @@ TARGET = $$qskPluginTarget(qskinputcontext)
|
|||
|
||||
QT += gui-private
|
||||
|
||||
# CONFIG += pinyin
|
||||
# CONFIG += hunspell
|
||||
|
||||
CONFIG += plugin
|
||||
CONFIG += qskinny
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
33
src/src.pro
33
src/src.pro
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue