mirror of
https://github.com/savoirfairelinux/jami-client-qt.git
synced 2026-01-06 21:39:56 +08:00
spellcheck: for linux system dicts
Implement a first version of the spellcheck for linux that use the systemwide installed dictionaries. GitLab: #1997 Change-Id: I7158e6c61061e7d0a7fe651069247227bbe399a4
This commit is contained in:
committed by
Page Magnier-Slimani
parent
88d0539085
commit
2a72da564e
@@ -16,6 +16,7 @@
|
||||
*/
|
||||
|
||||
#include "appsettingsmanager.h"
|
||||
#include "spellcheckdictionarymanager.h"
|
||||
#include "connectivitymonitor.h"
|
||||
#include "mainapplication.h"
|
||||
#include "previewengine.h"
|
||||
@@ -94,6 +95,7 @@ public Q_SLOTS:
|
||||
settingsManager_.reset(new AppSettingsManager(this));
|
||||
systemTray_.reset(new SystemTray(settingsManager_.get(), this));
|
||||
previewEngine_.reset(new PreviewEngine(connectivityMonitor_.get(), this));
|
||||
spellCheckDictionaryManager_.reset(new SpellCheckDictionaryManager(settingsManager_.get(), this));
|
||||
|
||||
QFontDatabase::addApplicationFont(":/images/FontAwesome.otf");
|
||||
|
||||
@@ -152,6 +154,7 @@ public Q_SLOTS:
|
||||
lrcInstance_.get(),
|
||||
systemTray_.get(),
|
||||
settingsManager_.get(),
|
||||
spellCheckDictionaryManager_.get(),
|
||||
connectivityMonitor_.get(),
|
||||
previewEngine_.get(),
|
||||
&screenInfo_,
|
||||
@@ -169,6 +172,7 @@ private:
|
||||
|
||||
QScopedPointer<ConnectivityMonitor> connectivityMonitor_;
|
||||
QScopedPointer<AppSettingsManager> settingsManager_;
|
||||
QScopedPointer<SpellCheckDictionaryManager> spellCheckDictionaryManager_;
|
||||
QScopedPointer<SystemTray> systemTray_;
|
||||
QScopedPointer<PreviewEngine> previewEngine_;
|
||||
ScreenInfo screenInfo_;
|
||||
|
||||
@@ -44,14 +44,14 @@ Item {
|
||||
|
||||
SignalSpy {
|
||||
id: spyDownloadSuccessful
|
||||
target: ImageDownloader
|
||||
signalName: "onDownloadImageSuccessful"
|
||||
target: FileDownloader
|
||||
signalName: "onDownloadFileSuccessful"
|
||||
}
|
||||
|
||||
SignalSpy {
|
||||
id: spyDownloadFailed
|
||||
target: ImageDownloader
|
||||
signalName: "onDownloadImageFailed"
|
||||
target: FileDownloader
|
||||
signalName: "onDownloadFileFailed"
|
||||
}
|
||||
|
||||
function test_goodDownLoad() {
|
||||
|
||||
Reference in New Issue
Block a user