自定义内存分配池
This commit is contained in:
@@ -111,12 +111,13 @@ void Virtual_Keyboard::get_candidate_list(const QString spell) {
|
||||
if (cand == 0) {
|
||||
return;
|
||||
}
|
||||
QStringList ret = core->get_candidate(cand);
|
||||
if (ret.isEmpty()) {
|
||||
std::vector<QString> ret = core->get_candidate(cand);
|
||||
if (ret.empty()) {
|
||||
return;
|
||||
}
|
||||
list_widget->clear();
|
||||
list_widget->addItems(ret);
|
||||
for (const QString& candidate : ret)
|
||||
list_widget->addItem(candidate);
|
||||
}
|
||||
void Virtual_Keyboard::handle_Key_Press(Key_Button* button) {
|
||||
if (state == Chinese) {
|
||||
|
||||
Reference in New Issue
Block a user