|
|
@ -9,6 +9,7 @@ |
|
|
|
#include <QDropEvent> |
|
|
|
#include <QDropEvent> |
|
|
|
#include <QFileDialog> |
|
|
|
#include <QFileDialog> |
|
|
|
#include <QGuiApplication> |
|
|
|
#include <QGuiApplication> |
|
|
|
|
|
|
|
#include <QInputMethod> |
|
|
|
#include <QMimeData> |
|
|
|
#include <QMimeData> |
|
|
|
#include <QMimeDatabase> |
|
|
|
#include <QMimeDatabase> |
|
|
|
#include <QStandardPaths> |
|
|
|
#include <QStandardPaths> |
|
|
@ -234,6 +235,8 @@ InputBar::nextText() |
|
|
|
void |
|
|
|
void |
|
|
|
InputBar::send() |
|
|
|
InputBar::send() |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
QInputMethod *im = QGuiApplication::inputMethod(); |
|
|
|
|
|
|
|
im->commit(); |
|
|
|
if (text().trimmed().isEmpty()) |
|
|
|
if (text().trimmed().isEmpty()) |
|
|
|
return; |
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|