Compare commits

..

4 Commits

Author SHA1 Message Date
Zack Mak
30370b1da3 Merge branch 'work/hires_wheel_page_scroll_rework' into 'master'
Fixed Page Scroll Using Hires Scroll Wheel

See merge request graphics/okular!658
2024-06-24 22:47:06 +00:00
Pratham Gandhi
e5900f9a4f created global qobject 2024-06-24 10:39:38 +05:30
l10n daemon script
b0ba4a343d GIT_SILENT Sync po/docbooks with svn 2024-06-23 01:24:01 +00:00
l10n daemon script
10e622c356 GIT_SILENT Sync po/docbooks with svn 2024-06-22 01:28:12 +00:00
6 changed files with 48 additions and 4 deletions

View File

@ -487,6 +487,7 @@ if (TARGET Qt6::Qml)
core/script/js_util.cpp
core/script/js_event.cpp
core/script/js_ocg.cpp
core/script/js_global.cpp
)
target_link_libraries(okularcore PRIVATE Qt6::Qml)
endif()

View File

@ -20,6 +20,7 @@
#include "js_event_p.h"
#include "js_field_p.h"
#include "js_fullscreen_p.h"
#include "js_global_p.h"
#include "js_ocg_p.h"
#include "js_spell_p.h"
#include "js_util_p.h"
@ -71,6 +72,7 @@ void ExecutorJSPrivate::initTypes()
m_interpreter.globalObject().setProperty(QStringLiteral("display"), m_interpreter.newQObject(new JSDisplay));
m_interpreter.globalObject().setProperty(QStringLiteral("spell"), m_interpreter.newQObject(new JSSpell));
m_interpreter.globalObject().setProperty(QStringLiteral("util"), m_interpreter.newQObject(new JSUtil));
m_interpreter.globalObject().setProperty(QStringLiteral("global"), m_interpreter.newQObject(new JSGlobal));
}
ExecutorJS::ExecutorJS(DocumentPrivate *doc)

16
core/script/js_global.cpp Normal file
View File

@ -0,0 +1,16 @@
/*
SPDX-FileCopyrightText: 2024 Pratham Gandhi <ppg.1382@gmail.com>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "js_global_p.h"
using namespace Okular;
JSGlobal::JSGlobal(QObject *parent)
: QObject(parent)
{
}
JSGlobal::~JSGlobal() = default;

25
core/script/js_global_p.h Normal file
View File

@ -0,0 +1,25 @@
/*
SPDX-FileCopyrightText: 2024 Pratham Gandhi <ppg.1382@gmail.com>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef OKULAR_SCRIPT_JS_GLOBAL_P_H
#define OKULAR_SCRIPT_JS_GLOBAL_P_H
#include <QObject>
namespace Okular
{
class JSGlobal : public QObject
{
Q_OBJECT
public:
explicit JSGlobal(QObject *parent = nullptr);
~JSGlobal() override;
};
}
#endif

View File

@ -21,7 +21,7 @@ msgstr ""
"Project-Id-Version: kdegraphics-kde4\n"
"Report-Msgid-Bugs-To: https://bugs.kde.org\n"
"POT-Creation-Date: 2024-06-20 00:38+0000\n"
"PO-Revision-Date: 2024-03-22 16:14+0300\n"
"PO-Revision-Date: 2024-06-22 13:04+0300\n"
"Last-Translator: Emir SARI <emir_sari@icloud.com>\n"
"Language-Team: Turkish <kde-l10n-tr@kde.org>\n"
"Language: tr\n"
@ -29,7 +29,7 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"X-Generator: Lokalize 24.02.1\n"
"X-Generator: Lokalize 24.07.70\n"
#, kde-format
msgctxt "NAME OF TRANSLATORS"
@ -4768,7 +4768,7 @@ msgstr "Küçük görselleri sayfa ile eşzamanla"
#: part/part.cpp:3126
#, kde-format
msgid "Add Bookmark"
msgstr "Yer İmi Ekle"
msgstr "Yer İmi Koy"
#: part/part.cpp:3148
#, kde-format

View File

@ -2887,7 +2887,7 @@ msgstr "启用图像抗锯齿"
#, kde-format
msgctxt "@option:check Config dialog, performance page"
msgid "Enable text hinting"
msgstr "启用字微调"
msgstr "启用字体轮廓微调"
#: part/dlgperformance.cpp:77
#, kde-format