Skip to content

Commit

Permalink
Merge pull request #93 from dobey/fix-build
Browse files Browse the repository at this point in the history
Fix build failure introduced by fe7ff7a
  • Loading branch information
bhush9 authored Feb 3, 2022
2 parents dabafcc + 70a4f22 commit 698f23c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/plugin/inputmethod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ InputMethod::InputMethod(MAbstractInputMethodHost *host)
bool animationOk = false;
int animationEnv = qEnvironmentVariableIntValue("MALIIT_ENABLE_ANIMATIONS", &animationOk);
d->animationEnabled = animationOk && animationEnv != 0;
Q_EMIT animationEnabledChanged();

QString prefix = qgetenv("KEYBOARD_PREFIX_PATH");
if (!prefix.isEmpty()) {
Expand Down Expand Up @@ -747,7 +748,7 @@ QString InputMethod::surroundingRight()
return d->editor.text()->surroundingRight();
}

bool InputMethod::isAnimationEnabled() const
bool InputMethod::isAnimationEnabled()
{
Q_D(InputMethod);
return d->animationEnabled;
Expand Down
5 changes: 3 additions & 2 deletions src/plugin/inputmethod.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class InputMethod
Q_PROPERTY(QString theme READ theme NOTIFY themeChanged)
Q_PROPERTY(QString surroundingLeft READ surroundingLeft)
Q_PROPERTY(QString surroundingRight READ surroundingRight)
Q_PROPERTY(bool animationEnabled READ isAnimationEnabled CONSTANT)
Q_PROPERTY(bool animationEnabled READ isAnimationEnabled NOTIFY animationEnabledChanged)

public:
/// Same as Maliit::TextContentType but usable in QML
Expand Down Expand Up @@ -145,7 +145,7 @@ class InputMethod
QString surroundingLeft();
QString surroundingRight();

bool isAnimationEnabled() const;
bool isAnimationEnabled();

Q_SLOT void close();

Expand Down Expand Up @@ -180,6 +180,7 @@ class InputMethod
void cursorPositionChanged(int cursor_position);
void opacityChanged(double opacity);
void themeChanged(QString theme);
void animationEnabledChanged();

private:
Q_SLOT void onAutoCorrectSettingChanged();
Expand Down

0 comments on commit 698f23c

Please sign in to comment.