@@ -6,10 +6,10 @@ Scripting API
6
6
CopyQ provides scripting capabilities to automatically handle clipboard
7
7
changes, organize items, change settings and much more.
8
8
9
- Supported language features and base function can be found at `ECMAScript
10
- Reference <http ://doc.qt.io/qt-5/ecmascript .html> `__. The language is mostly
11
- equivalent to modern JavaScript. Some features may be missing but feel free to
12
- use for example `JavaScript reference on MDN
9
+ Supported language features and functions can be found at `ECMAScript Reference
10
+ <https ://doc.qt.io/qt-6/qtqml-javascript-functionlist .html> `__. The language is
11
+ mostly equivalent to modern JavaScript. Some features may be missing but feel
12
+ free to use for example `JavaScript reference on MDN
13
13
<https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/> `__.
14
14
15
15
CopyQ-specific features described in this document:
@@ -1242,9 +1242,8 @@ unlike in GUI, where row numbers start from 1 by default.
1242
1242
1243
1243
Returns text representation of current date and time.
1244
1244
1245
- See `Date QML Type
1246
- <https://doc.qt.io/qt-5/qml-qtqml-date.html#format-strings> `__ for details
1247
- on formatting date and time.
1245
+ See `Date QML Type <https://doc.qt.io/qt-6/qdatetime.html#toString >`__ for
1246
+ details on formatting date and time.
1248
1247
1249
1248
:returns: Current date and time as string.
1250
1249
:rtype: string
@@ -1739,7 +1738,7 @@ Types
1739
1738
1740
1739
Wrapper for QByteArray Qt class.
1741
1740
1742
- See `QByteArray <http://doc.qt.io/qt-5 /qbytearray.html >`__.
1741
+ See `QByteArray <http://doc.qt.io/qt-6 /qbytearray.html >`__.
1743
1742
1744
1743
``ByteArray `` is used to store all item data (image data, HTML and even
1745
1744
plain text).
@@ -1756,7 +1755,7 @@ Types
1756
1755
1757
1756
Wrapper for QFile Qt class.
1758
1757
1759
- See `QFile <http://doc.qt.io/qt-5 /qfile.html >`__.
1758
+ See `QFile <http://doc.qt.io/qt-6 /qfile.html >`__.
1760
1759
1761
1760
To open file in different modes use:
1762
1761
@@ -1795,13 +1794,13 @@ Types
1795
1794
1796
1795
Use forward slash as path separator, for example "D:/Documents/".
1797
1796
1798
- See `QDir <http://doc.qt.io/qt-5 /qdir.html >`__.
1797
+ See `QDir <http://doc.qt.io/qt-6 /qdir.html >`__.
1799
1798
1800
1799
.. js :class :: TemporaryFile
1801
1800
1802
1801
Wrapper for QTemporaryFile Qt class.
1803
1802
1804
- See `QTemporaryFile <https://doc.qt.io/qt-5 /qtemporaryfile.html >`__.
1803
+ See `QTemporaryFile <https://doc.qt.io/qt-6 /qtemporaryfile.html >`__.
1805
1804
1806
1805
.. code-block :: js
1807
1806
@@ -1816,7 +1815,7 @@ Types
1816
1815
1817
1816
Reads and writes INI configuration files. Wrapper for QSettings Qt class.
1818
1817
1819
- See `QSettings <https://doc.qt.io/qt-5 /qsettings.html >`__.
1818
+ See `QSettings <https://doc.qt.io/qt-6 /qsettings.html >`__.
1820
1819
1821
1820
.. code-block :: js
1822
1821
0 commit comments