Skip to content

Commit

Permalink
chore: Revive spell check feature.
Browse files Browse the repository at this point in the history
  • Loading branch information
iphydf committed Nov 17, 2024
1 parent b9f3780 commit ac039b9
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 25 deletions.
5 changes: 4 additions & 1 deletion buildscripts/docker/Dockerfile.alpine
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.19
FROM alpine:3.20

RUN ["apk", "add", \
"clang", \
Expand All @@ -18,8 +18,11 @@ RUN ["apk", "add", \
"qt6-qttools", \
"qt6-qttools-dev", \
"samurai", \
"sonnet-dev", \
"sqlcipher-dev"]

ENV CC=clang CXX=clang++

RUN git clone --recurse-submodules --depth=1 https://github.com/TokTok/c-toxcore /work/c-toxcore
WORKDIR /work/c-toxcore
RUN cmake -B_build -H. -GNinja
Expand Down
1 change: 1 addition & 0 deletions buildscripts/docker/Dockerfile.archlinux
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ RUN pacman -Syu --noconfirm --needed \
ffmpeg \
libexif \
qrencode \
sonnet \
sqlcipher \
openal \
git \
Expand Down
1 change: 1 addition & 0 deletions buildscripts/docker/Dockerfile.fedora
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ RUN dnf --nodocs -y install dnf-plugins-core && \
libexif-devel \
qrencode-devel \
openal-soft-devel \
kf6-sonnet-devel \
libXScrnSaver-devel \
patch \
sqlite-devel \
Expand Down
6 changes: 3 additions & 3 deletions cmake/Dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ search_dependency(SQLCIPHER PACKAGE sqlcipher)
search_dependency(VPX PACKAGE vpx)

if(${SPELL_CHECK})
find_package(KF5Sonnet)
if(KF5Sonnet_FOUND)
find_package(KF6Sonnet)
if(KF6Sonnet_FOUND)
add_definitions(-DSPELL_CHECKING)
add_dependency(KF5::SonnetUi)
add_dependency(KF6::SonnetUi)
else()
message(WARNING "Sonnet not found. Spell checking will be disabled.")
endif()
Expand Down
40 changes: 20 additions & 20 deletions simple_make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ apt_install() {
libopenal-dev
libopus-dev
libqrencode-dev
libqt5opengl5-dev
libqt5svg5-dev
libqt6opengl5-dev
libqt6svg5-dev
libsodium-dev
libtool
libvpx-dev
libxss-dev
qrencode
qt5-default
qt6-default
qttools5-dev
qttools5-dev-tools
libsqlcipher-dev
Expand All @@ -61,7 +61,7 @@ pacman_install() {
openal
opus
qrencode
qt5
qt6
sqlcipher
)
sudo pacman -S --needed "${pacman_packages[@]}"
Expand All @@ -87,7 +87,7 @@ dnf_install() {
git
glib2-devel
gtk2-devel
kf5-sonnet-devel
kf6-sonnet-devel
libconfig-devel
libexif-devel
libsodium-devel
Expand All @@ -97,12 +97,12 @@ dnf_install() {
openssl-devel
opus-devel
qrencode-devel
qt5-devel
qt5-qtdoc
qt5-qtsvg
qt5-qtsvg-devel
qt5-qttools-devel
qtsingleapplication-qt5
qt6-devel
qt6-qtdoc
qt6-qtsvg
qt6-qtsvg-devel
qt6-qttools-devel
qtsingleapplication-qt6
readline-devel
sqlcipher-devel
sqlite-devel
Expand Down Expand Up @@ -137,15 +137,15 @@ zypper_install() {
libavdevice-devel
libopus-devel
libexif-devel
libQt5Concurrent-devel
libqt5-linguist
libqt5-linguist-devel
libQt5Network-devel
libQt5OpenGL-devel
libqt5-qtbase-common-devel
libqt5-qtsvg-devel
libQt5Test-devel
libQt5Xml-devel
libQt6Concurrent-devel
libqt6-linguist
libqt6-linguist-devel
libQt6Network-devel
libQt6OpenGL-devel
libqt6-qtbase-common-devel
libqt6-qtsvg-devel
libQt6Test-devel
libQt6Xml-devel
libsodium-devel
libvpx-devel
libXScrnSaver-devel
Expand Down
2 changes: 1 addition & 1 deletion src/widget/form/genericchatform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#include <QtGlobal>

#ifdef SPELL_CHECKING
#include <KF5/SonnetUi/sonnet/spellcheckdecorator.h>
#include <KF6/SonnetUi/sonnet/spellcheckdecorator.h>
#endif

/**
Expand Down

0 comments on commit ac039b9

Please sign in to comment.