qskinny/src/inputpanel/QskTextPredictor.cpp

38 lines
891 B
C++
Raw Normal View History

2018-02-06 13:55:35 +00:00
/******************************************************************************
* QSkinny - Copyright (C) 2016 Uwe Rathmann
* This file may be used under the terms of the QSkinny License, Version 1.0
*****************************************************************************/
#include "QskTextPredictor.h"
2017-07-21 16:21:34 +00:00
QskTextPredictor::QskTextPredictor(
Attributes attributes, QObject* parent ):
QObject( parent ),
2018-04-20 06:52:26 +00:00
m_attributes( attributes )
2017-07-21 16:21:34 +00:00
{
}
QskTextPredictor::~QskTextPredictor()
2017-07-21 16:21:34 +00:00
{
}
QskTextPredictor::Attributes QskTextPredictor::attributes() const
2017-07-21 16:21:34 +00:00
{
return m_attributes;
2017-07-21 16:21:34 +00:00
}
QStringList QskTextPredictor::candidates() const
{
const auto count = candidateCount();
QStringList candidates;
candidates.reserve( count );
for( int i = 0; i < count; i++ )
candidates += candidate( i );
return candidates;
}
#include "moc_QskTextPredictor.cpp"