Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/qtlua.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkoray kavukcuoglu <koray@kavukcuoglu.org>2012-02-13 09:33:09 +0400
committerkoray kavukcuoglu <koray@kavukcuoglu.org>2012-02-13 09:33:09 +0400
commit7f1c3fb25587fda3309cfa4112374bd12f747707 (patch)
treeb2764b3ac92477af7f54521653b9d16c4aaf34ef
parentc9a924f56d6dc610ed22181e5afb7248e12373d5 (diff)
big pass over documentation to make titles consistent across all packages..
-rw-r--r--packages/qtcore/dok/index.dok82
-rw-r--r--packages/qtgui/dok/index.dok268
-rw-r--r--packages/qtide/dok/index.dok140
-rw-r--r--packages/qtuiloader/dok/index.dok16
-rw-r--r--packages/qtwidget/dok/index.dok336
5 files changed, 421 insertions, 421 deletions
diff --git a/packages/qtcore/dok/index.dok b/packages/qtcore/dok/index.dok
index 771cdac..1d9224b 100644
--- a/packages/qtcore/dok/index.dok
+++ b/packages/qtcore/dok/index.dok
@@ -13,7 +13,7 @@ superclasses and automatically expose
[[..:qt:index#qt.QObjects|properties, slots and signals]].
-==== qt.QByteArray ====
+===== qt.QByteArray =====
{{anchor:qbytearray}}
Class ''qt.QByteArray'' represents Qt values of type
@@ -22,21 +22,21 @@ These values are special because lua strings
are automatically converted to QByteArray objects
when such objects are needed.
-== qt.QByteArray(arg) ==
+==== qt.QByteArray(arg) ===
{{anchor:qbytearray}}
Expression ''qt.QByteArray(arg)'' returns a new byte array object.
Argument ''arg'' may be a lua string or a table containing
the integer values of the successive bytes.
-== qbytearray:totable() ==
+==== qbytearray:totable() ===
{{anchor:qbytearray.totable}}
Expression ''qbytearray:totable()'' returns a table
containing the integer values of the bytes represented
by the bytearray.
-==== qt.QCoreApplication ====
+===== qt.QCoreApplication =====
{{anchor:qcoreapplication}}
The Qt class
@@ -44,13 +44,13 @@ The Qt class
provides an event loop for console Qt applications and serves
as a base class for class [[..:qtgui:index#qapplication|QApplication]].
-=== qt.QCoreApplication() ===
+==== qt.QCoreApplication() ====
{{anchor:qcoreapplication}}
Returns the unique instance of class ''QCoreApplication''.make i
-==== qt.QLine, qt.QLineF ====
+===== qt.QLine, qt.QLineF =====
{{anchor:qline}}
Classes ''qt.QLine'' and ''qt.QLineF'' represent common Qt classes.
@@ -59,7 +59,7 @@ Please refer to the Qt documentation for classes
and [[http://doc.trolltech.com/4.4/qlinef.html|QLineF]]
for details.
-=== qt.QLine(table), qt.QLineF(table) ===
+==== qt.QLine(table), qt.QLineF(table) ====
{{anchor:qline}}
{{anchor:qlineF}}
@@ -69,7 +69,7 @@ representing a segment whose endpoints coordinates
are given by fields ''x1'', ''y1'', ''x2'', and ''y2''
of table ''table''.
-=== qline:totable() ===
+==== qline:totable() ====
{{anchor:qline.totable}}
Expression ''qline:totable()'' returns a table whose fields
@@ -77,7 +77,7 @@ Expression ''qline:totable()'' returns a table whose fields
endpoints of the ''qt.QLine'' or ''qt.QLineF'' object ''qline''.
-==== qt.QObject ====
+===== qt.QObject =====
{{anchor:qobject}}
Qt class
@@ -88,7 +88,7 @@ same inheritance pattern as the corresponding Qt classes.
The metatable [[#qobject|qt.QObject]] sits at the top
of this hierarchy.
-=== qobject:children() ===
+==== qobject:children() ====
{{anchor:qobject.children}}
Expression ''qobject:children()''
@@ -96,7 +96,7 @@ returns a Qt value of class [[#qvariantlist|qt.QVariantList]]
containing all the children of object ''qobject''.
-=== qobject:deleteLater() ===
+==== qobject:deleteLater() ====
{{anchor:qobjectdeletelater}}
Calling ''qobject:deleteLater()'' is the recommended way to delete
@@ -105,7 +105,7 @@ The deletion occurs when the object thread is processing
interactive events.
-=== qobject:dumpObjectInfo() ===
+==== qobject:dumpObjectInfo() ====
{{anchor:qobjectdumobjectinfo}}
Function ''qobject:dumpObjectInfo'' prints a human readable
@@ -114,7 +114,7 @@ This function only works when Qt and QtLua are
compiled in debug mode.
-=== qobject:dumpObjectTree() ===
+==== qobject:dumpObjectTree() ====
{{anchor:qobjectdumobjecttree}}
Function ''qobject:dumpObjectTree'' prints a human readable
@@ -123,7 +123,7 @@ This function only works when Qt and QtLua are
compiled in debug mode.
-=== qobject.objectName ===
+==== qobject.objectName ====
{{anchor:qobjectobjectname}}
Property ''qobject.objectName'' contains a string
@@ -137,13 +137,13 @@ The child object can be accessed using the Lua syntax ''a.b''.
In case of name conflicts, property and methods have precedence
over named children.
-=== qobject:parent() ===
+==== qobject:parent() ====
{{anchor:qobjectparent}}
Expression ''qobject:parent()'' returns the parent of object ''qobject''
if such a parent exists. Otherwise it returns ''nil''.
-==== qt.QPoint, qt.QPointF ====
+===== qt.QPoint, qt.QPointF =====
{{anchor:qpoint}}
{{anchor:qpointf}}
@@ -153,7 +153,7 @@ Please refer to the Qt documentation for classes
and [[http://doc.trolltech.com/4.4/qpointf.html|QPointF]]
for details.
-=== qt.QPoint(table), qt.QPointF(table) ===
+==== qt.QPoint(table), qt.QPointF(table) ====
{{anchor:qpoint}}
{{anchor:qpointf}}
@@ -162,14 +162,14 @@ returns a new ''qt.QPoint'' or ''qt.QPointF'' object
initialized with the contents of fields ''x'' and ''y''
from table ''table''.
-=== qpoint:totable() ===
+==== qpoint:totable() ====
{{anchor:qpoint.totable}}
Expression ''qpoint:totable()'' returns a table whose fields ''x'' and ''y''
contain the coordinates of the ''qt.QPoint'' or ''qt.QPointF'' object ''qpoint''.
-==== qt.QRect, qt.QRectF ====
+===== qt.QRect, qt.QRectF =====
{{anchor:qrect}}
{{anchor:qrectf}}
@@ -179,7 +179,7 @@ Please refer to the Qt documentation for classes
and [[http://doc.trolltech.com/4.4/qrectf.html|QRectF]]
for details.
-=== qt.QRect(table), qt.QRectF(table) ===
+==== qt.QRect(table), qt.QRectF(table) ====
{{anchor:qrect}}
{{anchor:qrectf}}
@@ -190,7 +190,7 @@ specified by table fields ''x'' and ''y''
and whose width and height are specified
by the table fields ''width'' and ''height''.
-=== qrect:totable() ===
+==== qrect:totable() ====
{{anchor:qrect.totable}}
Expression ''qrect:totable()'' returns a table
@@ -199,7 +199,7 @@ and whose fields ''width'' and ''height'' contain the width and
height of the rectangle.
-==== qt.QSize, qt.QSizeF ====
+===== qt.QSize, qt.QSizeF =====
{{anchor:qsize}}
{{anchor:qsizef}}
@@ -217,7 +217,7 @@ Example:
widget:show()
</file>
-=== qt.QSize(table), qt.QSizeF(table) ===
+==== qt.QSize(table), qt.QSizeF(table) ====
{{anchor:qsize}}
{{anchor:qsizef}}
@@ -226,7 +226,7 @@ returns a new ''qt.QSize'' or ''qt.QSizeF'' object
initialized with the contents of fields ''width'' and ''height''
from table ''table''.
-=== qsize:totable() ===
+==== qsize:totable() ====
{{anchor:qsize.totable}}
Expression ''qsize:totable()'' returns a table whose
@@ -234,7 +234,7 @@ fields ''width'' and ''height'' are initialized with
the width and height of the size ''qsize''.
-==== qt.QString ====
+===== qt.QString =====
{{anchor:qstring}}
Class ''qt.QString'' represents Qt values of type
@@ -243,7 +243,7 @@ These values are special because lua strings
are automatically converted to string objects
when such objects are needed.
-== qt.QString(arg) ==
+==== qt.QString(arg) ===
{{anchor:qstring}}
Expression ''qt.QString(arg)'' returns a new string object.
@@ -251,21 +251,21 @@ Argument ''arg'' may be a lua string representing the string
in locale encoding or a table containing the unicode values
for the string characters.
-== qstring:totable() ==
+==== qstring:totable() ===
{{anchor:qstring.totable}}
Expression ''qurl:totable()'' returns a table
containing the integer values of the successive
unicode characters represented by the string.
-==== qt.QStringList ====
+===== qt.QStringList =====
{{anchor:qstringlist}}
Class ''qt.QStringList'' represents Qt values of type
[[http://doc.trolltech.com/4.4/qstringlist.html|QStringList]]
containing a list of Qt strings.
-=== qt.QStringList(table) ===
+==== qt.QStringList(table) ====
{{anchor:qstringlist}}
Expression ''qt.QStringList(table)'' creates a new ''QStringList''
@@ -280,7 +280,7 @@ Example
a = qt.QStringList{"a","b","c"}
</file>
-=== qstringlist:totable() ===
+==== qstringlist:totable() ====
{{anchor:qstringlist.totable}}
Expression ''qstringlist:totable()'' returns a Lua table
@@ -294,7 +294,7 @@ Example
</file>
-==== qt.QTimer ====
+===== qt.QTimer =====
{{anchor:qtimer}}
Class ''qt.QTimer'' is a subclass of [[#qobject|qt.QObject]]
@@ -314,7 +314,7 @@ timer:start(2000) -- wait for 2 seconds...
</file>
-=== qt.QTimer(parent) ===
+==== qt.QTimer(parent) ====
{{anchor:qtimer}}
Expression ''qt.QTimer(parent)'' returns a
@@ -327,27 +327,27 @@ and will be deleted by the Lua garbage collector
when it is no longer referenced.
-==== qt.QUrl ====
+===== qt.QUrl =====
{{anchor:qurl}}
Class ''qt.QStringList'' represents Qt values of type
[[http://doc.trolltech.com/4.4/qurl.html|QUrl]]
containing an URL.
-== qt.QUrl(string) ==
+==== qt.QUrl(string) ===
{{anchor:qurl}}
Expression ''qt.QUrl(string)'' returns a
QUrl object from string ''string''.
-== qurl:tostring() ==
+==== qurl:tostring() ===
{{anchor:qurl.tostring}}
Expression ''qurl:tostring()'' returns a string
describing the QUrl object ''qurl''.
-==== qt.QVariantList ====
+===== qt.QVariantList =====
{{anchor:qvariantlist}}
Class ''qt.QVariantList'' represents Qt values of type
@@ -355,7 +355,7 @@ Class ''qt.QVariantList'' represents Qt values of type
containing a list of values represented by class
[[http://doc.trolltech.com/4.4/qvariant.html|QVariant]].
-=== qt.QVariantList(table) ===
+==== qt.QVariantList(table) ====
{{anchor:qvariantlist}}
Expression ''qt.QVariantList(table)'' creates a new ''QVariantList''
@@ -370,7 +370,7 @@ Example
a = qt.QVariantList{"a",32}
</file>
-=== qvariantlist:totable() ===
+==== qvariantlist:totable() ====
{{anchor:qvariantlist.totable}}
Expression ''qvariantlist:totable()'' returns a Lua table
@@ -384,7 +384,7 @@ Example
</file>
-==== qt.QVariantMap ====
+===== qt.QVariantMap =====
{{anchor:qvariantmap}}
Class ''qt.QVariantList'' represents Qt values of type
@@ -393,7 +393,7 @@ containing a dictionary of named values represented by class
[[http://doc.trolltech.com/4.4/qvariant.html|QVariant]].
-=== qt.QVariantMap(table) ===
+==== qt.QVariantMap(table) ====
{{anchor:qvariantmap}}
Expression ''qt.QVariantMap(table)'' creates a new ''QVariantMap''
@@ -407,7 +407,7 @@ Example
a = qt.QVariantMap{a=23,b=45,c="foo"}
</file>
-=== qvariantmap:totable() ===
+==== qvariantmap:totable() ====
{{anchor:qvariantmap.totable}}
Expression ''qvariantmap:totable()'' returns a Lua table
diff --git a/packages/qtgui/dok/index.dok b/packages/qtgui/dok/index.dok
index 97fb97e..214c8de 100644
--- a/packages/qtgui/dok/index.dok
+++ b/packages/qtgui/dok/index.dok
@@ -12,7 +12,7 @@ automatically expose [[..:qt:index#qt.QObjects|properties, slots and
signals]].
-==== qt.QAction, qt.QtLuaAction ====
+===== qt.QAction, qt.QtLuaAction =====
{{anchor:qaction}}
{{anchor:qtluaaction}}
@@ -23,7 +23,7 @@ that represents actions associated with menu items
and toolbar icons.
-=== qt.QAction([arg]) ===
+==== qt.QAction([arg]) ====
{{anchor:qaction}}
Expression ''qt.QAction([arg])'' returns a new ''QAction'' object.
@@ -36,8 +36,8 @@ of the qt action object.
Example:
<file lua>
- a = qt.QAction { text="Automatic Mode",
- checkable = true, checked = false,
+ a === qt.QAction { text="Automatic Mode",
+ checkable === true, checked === false,
function(b) setAutoMode(b) end }
</file>
@@ -49,18 +49,18 @@ it is no longer referenced.
Actions are always created from the main thread using
the [[..:qt:index#qt.qcall|thread hopping]] mechanism.
-=== qaction:menu() ===
+==== qaction:menu() ====
{{anchor:qaction.menu}}
Same as the C++ function ''QAction::menu()''.
-=== qaction:setMenu() ===
+==== qaction:setMenu() ====
{{anchor:qaction.setmenu}}
Same as the C++ function ''QAction::setMenu()''.
-=== qt.QtLuaAction([arg]) ===
+==== qt.QtLuaAction([arg]) ====
{{anchor:qtluaaction}}
This constructor takes the same arguments as ''qt.QAction''
@@ -74,7 +74,7 @@ functions connected to Qt signals.
Otherwise the action is disabled regardless
of the value of property ''enabled''.
-=== qtluaaction.autoDisable ===
+==== qtluaaction.autoDisable ====
{{anchor:qtluaaction.autodisable}}
This property applies only to action objects of class ''qt.QtLuaAction''.
@@ -83,43 +83,43 @@ when the Lua engine is not available.
The default is ''true''.
-==== qt.QApplication ====
+===== qt.QApplication =====
{{anchor:qapplication}}
Qt class [[http://doc.trolltech.com/4.4/qapplication.html|QApplication]]
manages the GUI application's control flow and main settings. This is a
subclass of [[..:qtcore:index#qcoreapplication|QCoreApplication]].
-=== qt.QApplication.changeOverrideCursor(qcursor) ===
+==== qt.QApplication.changeOverrideCursor(qcursor) ====
{{anchor:qapplication.changeOverrideCursor}}
Changes the currently active application override cursor to cursor
without disturbing the cursor stack. This function has no
effect if ''setOverrideCursor()'' was not called.
-=== qt.QApplication.keyboardModifiers() ===
+==== qt.QApplication.keyboardModifiers() ====
{{anchor:qapplication.keyboardModifiers}}
Returns a string describing the currently depressed keyboard modifiers.
-=== qt.QApplication.mouseButtons() ===
+==== qt.QApplication.mouseButtons() ====
{{anchor:qapplication.mouseButtons}}
Returns a string describing the currently depressed mouse buttons.
-=== qt.QApplication.overrideCursor() ===
+==== qt.QApplication.overrideCursor() ====
{{anchor:qapplication.overrideCursor}}
Returns the active application override cursor.
This function returns ''nil'' if no application cursor
has been defined (i.e. the internal cursor stack is empty).
-=== qt.QApplication.restoreOverrideCursor() ===
+==== qt.QApplication.restoreOverrideCursor() ====
{{anchor:qapplication.restoreOverrideCursor}}
Undoes the last ''setOverrideCursor()''.
-=== qt.QApplication.setOverrideCursor(qcursor) ===
+==== qt.QApplication.setOverrideCursor(qcursor) ====
{{anchor:qapplication.setoverridecursor}}
Sets the application override cursor to ''qcursor''.
@@ -129,7 +129,7 @@ Override cursors are stored on a stack. Function ''setOverrideCursor()'' pushes
Function ''restoreOverrideCursor()'' pops the stack.
-==== qt.QBrush ====
+===== qt.QBrush =====
{{anchor:qbrush}}
Qt class
@@ -139,7 +139,7 @@ are filled and how text is rendered. Brushes are represented
by Qt variants of class ''qt.QBrush''.
-=== qt.QBrush(table) ===
+==== qt.QBrush(table) ====
{{anchor:qbrush}}
{{anchor:qbrushfromtable}}
@@ -158,7 +158,7 @@ The following fields are recognized:
* Field ''style'' contains the name of the [[http://doc.trolltech.com/4.4/qt.html#BrushStyle-enum|brush style]]. The default brush style is ''SolidPatter'' when field ''color'' is defined, ''TexturePattern'' when field ''texture'' is defined, or one of the gradient styles when field ''gradient'' is defined. Otherwise the default style is ''NoBrush'' meaning that nothing is painted.
-=== qbrush:totable() ===
+==== qbrush:totable() ====
{{anchor:qbrush.totable}}
Expression ''qbrush:totable()'' returns a table describing the brush.
@@ -166,19 +166,19 @@ See the documentation of [[#qbrushfromtable|qt.QBrush(table)]]
for a description of the table fields.
-==== qt.QColor ====
+===== qt.QColor =====
{{anchor:qcolor}}
Qt class
[[http://doc.trolltech.com/4.4/qcolor.html|QColor]]
represents colors for painting purposes.
Qt variant of class ''qt.QColor'' have a textual representation
-of the form ="#RRGGBB" where letters ''R'', ''G'', or ''B'' are
+of the form =="#RRGGBB" where letters ''R'', ''G'', or ''B'' are
hexadecimal digits representing the intensities of the
color components.
-=== qt.QColor(...) ===
+==== qt.QColor(...) ====
{{anchor:qcolor}}
There are several ways to construct a Qt variant of class ''qt.QColor''.
@@ -194,7 +194,7 @@ The default value for argument ''a'' is ''1'' for a fully opaque color.
Argument ''string'' is a string representing a color name.
All [[http://www.w3.org/TR/SVG/types.html#ColorKeywords|SVG color names]]
are recognized.Color names can have also the format ''"#RGB"'',
-''"#RRGGBB"'', ''"#RRRGGGBBB"'', or ="#RRRRGGGGBBBB"
+''"#RRGGBB"'', ''"#RRRGGGBBB"'', or =="#RRRRGGGGBBBB"
where letters ''R'', ''G'', or ''B'' represent hexadecimal
digits for each of the color component.
@@ -205,7 +205,7 @@ contain numbers in range ''[0,1]'' representing the intensities
of the red, green, blue, and alpha channels. Such a table
is returned by function [[#qcolortotable|qcolor:totable()]].
-=== qcolor:totable() ===
+==== qcolor:totable() ====
{{anchor:qcolor.totable}}
{{anchor:qcolortotable}}
@@ -215,7 +215,7 @@ representing the intensities of the red, green, blue,
and alpha channels.
-==== qt.QColorDialog ====
+===== qt.QColorDialog =====
{{anchor:qcolordialog}}
Qt class
@@ -223,7 +223,7 @@ Qt class
implements a dialog for selecting colors.
The recommended way to use this class is the static function ''getColor''.
-=== qt.QColorDialog.getColor([font],[parent]) ===
+==== qt.QColorDialog.getColor([font],[parent]) ====
{{anchor:qcolordialog.getcolor}}
Pops up a dialog for selecting a color.
@@ -232,64 +232,64 @@ Argument ''parent'' is the parent widget.
This function returns ''nil'' if the no color was selected.
Otherwise it returns a qvariant of type [[#qcolor|qt.QColor]].
-==== qt.QCursor ====
+===== qt.QCursor =====
{{anchor:qcursor}}
Qt class
[[http://doc.trolltech.com/4.4/qcursor.html|QCursor]]
provides a mouse cursor with an arbitrary shape.
-=== qt.QCursor(cursorshape) ===
+==== qt.QCursor(cursorshape) ====
{{anchor:qcursor}}
Returns a standard cursor.
Argument ''cursorshape'' is the name of a
[[http://doc.trolltech.com/4.4/qt.html#CursorShape-enum|standard shape]].
-=== qt.QCursor(image,[mask],[posx,[posy]) ===
+==== qt.QCursor(image,[mask],[posx,[posy]) ====
{{anchor:qcursor}}
Constructs a cursor with the specified image, mask and hot spot.
-=== qcursor:hotSpot() ===
+==== qcursor:hotSpot() ====
{{anchor:qcursor.hotSpot}}
Return a ''qt.QPoint'' with the cursor's hot spot coordinates.
-=== qcursor:mask() ===
+==== qcursor:mask() ====
{{anchor:qcursor.mask}}
Return the cursor's mask.
-=== qcursor:pixmap() ===
+==== qcursor:pixmap() ====
{{anchor:qcursor.pixmap}}
Return the cursor's pixmap.
-=== qcursor:shape() ===
+==== qcursor:shape() ====
{{anchor:qcursor.shape}}
Return the name of the cursor's
[[http://doc.trolltech.com/4.4/qt.html#CursorShape-enum|standard shape]].
-=== qt.QCursor.pos() ===
+==== qt.QCursor.pos() ====
{{anchor:qcursor.pos}}
Returns a ''QPoint'' with the global coordinates of the mouse cursor.
-=== qt.QCursor.setPos(qpoint) ===
+==== qt.QCursor.setPos(qpoint) ====
{{anchor:qcursor.setPos}}
Sets the global coordinates of the mouse cursor.
-==== qt.QDialog ====
+===== qt.QDialog =====
{{anchor:qdialog}}
Qt class
[[http://doc.trolltech.com/4.4/qdialog.html|QDialog]]
is the base class of dialog windows.
-=== qt.QDialog([parent]) ===
+==== qt.QDialog([parent]) ====
{{anchor:qdialog}}
Expression ''qt.QDialog(parent)'' returns a new ''QDialog'' instance.
@@ -299,14 +299,14 @@ the new widget is owned by the Lua interpreter
and is automatically destroyed when the garbage collector
determines that it is no longer referenced.
-=== qdialog:result() ===
+==== qdialog:result() ====
{{anchor:qdialog.result}}
Gets the dialog's result code as an integer.
This is usually ''1'' when the dialog has been accepted
and ''0'' when the dialog has been rejected.
-=== qdialog:setResult(integer) ===
+==== qdialog:setResult(integer) ====
{{anchor:qdialog.setresult}}
Sets the dialog's result code.
@@ -314,7 +314,7 @@ This is usually ''1'' when the dialog has been accepted
and ''0'' when the dialog has been rejected.
-==== qt.QFileDialog ====
+===== qt.QFileDialog =====
{{anchor:qfiledialog}}
Qt class
@@ -322,7 +322,7 @@ Qt class
provides a dialog that allow users to select files or directories.
This is a subclass of [[#qdialog|qt.QDialog]].
-=== qt.QFileDialog.getExistingDirectory([p.[c,[d,[opt]]]]) ===
+==== qt.QFileDialog.getExistingDirectory([p.[c,[d,[opt]]]]) ====
{{anchor:qfiledialog.getExistingDirectory}}
This convenience function shows a file dialog
@@ -334,7 +334,7 @@ Argument ''opt'' are the [[http://doc.trolltech.com/4.4/qfiledialog.html#Option-
The function returns a ''qt.QString'' containing the selected directory name.
-=== qt.QFileDialog.getOpenFileName([p,[c,[d,[f,[s,[opt]]]]]]) ===
+==== qt.QFileDialog.getOpenFileName([p,[c,[d,[f,[s,[opt]]]]]]) ====
{{anchor:qfiledialog.getOpenFileName}}
This convenience function shows a file dialog
@@ -349,7 +349,7 @@ for selecting an existing file.
The function returns a ''qt.QString'' containing the selected file name
and a ''qt.QString'' contaning the selected filter.
-=== qt.QFileDialog.getOpenFileNames([p,[c,[d,[f,[s,[opt]]]]]]) ===
+==== qt.QFileDialog.getOpenFileNames([p,[c,[d,[f,[s,[opt]]]]]]) ====
{{anchor:qfiledialog.getOpenFileNames}}
This convenience function shows a file dialog
@@ -364,7 +364,7 @@ for selecting multiple existing files.
The function returns a ''qt.QStringList'' containing the file names
and a ''qt.QString'' contaning the selected filter.
-=== qt.QFileDialog.getSaveFileName([p,[c,[d,[f,[s,[opt]]]]]]) ===
+==== qt.QFileDialog.getSaveFileName([p,[c,[d,[f,[s,[opt]]]]]]) ====
{{anchor:qfiledialog.getsavefilename}}
This convenience function shows a file dialog
@@ -379,7 +379,7 @@ for selecting a file name for saving data.
The function returns a ''qt.QString'' containing the selected file name
and a ''qt.QString'' contaning the selected filter.
-=== qt.QFileDialog.new([parent.[caption,[dir,[filters]]]]) ===
+==== qt.QFileDialog.new([parent.[caption,[dir,[filters]]]]) ====
{{anchor:qfiledialog.new}}
Function ''qt.QFileDialog.new'' returns a new file dialog object.
@@ -393,37 +393,37 @@ the new widget is owned by the Lua interpreter
and is automatically destroyed when the garbage collector
determines that it is no longer referenced.
-=== qfiledialog:directory() ===
+==== qfiledialog:directory() ====
{{anchor:qfiledialog.directory}}
Returns a ''qt.QString'' containing the path of the selected directory.
-=== qfiledialog:nameFilters() ===
+==== qfiledialog:nameFilters() ====
{{anchor:qfiledialog.nameFilters}}
Returns a ''qt.QStringList'' containing the name filters.
-=== qfiledialog:selectedFiles() ===
+==== qfiledialog:selectedFiles() ====
{{anchor:qfiledialog.selectedFiles}}
Returns a ''qt.QStringList'' containing the selected files.
-=== qfiledialog:selectFile(fname) ===
+==== qfiledialog:selectFile(fname) ====
{{anchor:qfiledialog.selectFile}}
Select file ''fname'' in the file dialog.
-=== qfiledialog:selectNameFilter(filter) ===
+==== qfiledialog:selectNameFilter(filter) ====
{{anchor:qfiledialog.selectNameFilter}}
Select name filter ''filter'' in the file dialog.
-=== qfiledialog:setDirectory(dirname) ===
+==== qfiledialog:setDirectory(dirname) ====
{{anchor:qfiledialog.setDirectory}}
Set the file dialog directory to ''dirname''.
-=== qfiledialog:setNameFilters(filters) ===
+==== qfiledialog:setNameFilters(filters) ====
{{anchor:qfiledialog.setNameFilters}}
Set the file dialog name filters to ''filters''.
@@ -431,20 +431,20 @@ Argument ''filters'' may be a ''qt.QStringList''
or a string containing the filters separated by
two semicolons ''";;"''.
-=== qfiledialog:setOption(option, bool) ===
+==== qfiledialog:setOption(option, bool) ====
{{anchor:qfiledialog.setOption}}
Sets the specified
[[http://doc.trolltech.com/4.5/qfiledialog.html#Option-enum|file dialog option]]
to the boolean value ''bool''. Not available before Qt-4.5.
-=== qfiledialog:testOption(option) ===
+==== qfiledialog:testOption(option) ====
Returns the value of the specified
[[http://doc.trolltech.com/4.5/qfiledialog.html#Option-enum|file dialog option]].
Not available before Qt-4.5.
-==== qt.QFont ====
+===== qt.QFont =====
{{anchor:qfont}}
Qt class
@@ -453,7 +453,7 @@ represents the painter settings that determine the font(s)
used to display text.
-=== qt.QFont(arg) ===
+==== qt.QFont(arg) ====
{{anchor:qfont}}
{{anchor:qfontfromtable}}
@@ -504,7 +504,7 @@ Example:
</file>
-=== qfont:totable() ===
+==== qfont:totable() ====
{{anchor:qfont.totable}}
Expression ''qfont:totable()'' returns a table
@@ -518,7 +518,7 @@ Example:
for k,v in pairs(f:totable()) do print(k,v) end
</file>
-=== qfont:tostring() ===
+==== qfont:tostring() ====
{{anchor:qfonttostring}}
{{anchor:qfont.tostring}}
@@ -528,7 +528,7 @@ suitable for storing in configuration files for instance.
Use [[#qfontfromtable|qt.QFont(string)]] to
reconstruct the corresponding font object.
-=== qfont:info() ===
+==== qfont:info() ====
{{anchor:qfontinfo}}
{{anchor:qfont.info}}
@@ -543,7 +543,7 @@ This is achieved using the Qt class
Fields ''"underline"'', ''"overline"'', ''"strikeOut"'', and ''"stretch"''
are copied verbatim from the ''qfont'' object.
-==== qt.QFontDialog ====
+===== qt.QFontDialog =====
{{anchor:qfontdialog}}
Qt class
@@ -551,7 +551,7 @@ Qt class
implements a dialog for selecting fonts.
The recommended way to use this class is the static function ''getFont''.
-=== qt.QFontDialog.getFont([font],[parent, [caption]]) ===
+==== qt.QFontDialog.getFont([font],[parent, [caption]]) ====
{{anchor:qfontdialog.getfont}}
Pops up a dialog for selecting a font.
@@ -563,7 +563,7 @@ This function returns ''nil'' if the no font was selected.
Otherwise it returns a qvariant of type [[#qfont|qt.QFont]].
-==== qt.QGradient ====
+===== qt.QGradient =====
{{anchor:qgradient}}
Qt class
@@ -572,14 +572,14 @@ represents a color gradient for use in [[#qbrush|gradient brushes]].
No specific Lua methods have been defined for this Qt variant class.
-==== qt.QIcon ====
+===== qt.QIcon =====
{{anchor:qicon}}
Qt class
[[http://doc.trolltech.com/4.4/qimage.html|QIcon]]
provides scalable icons in different modes and states.
-=== qt.QIcon([arg]) ===
+==== qt.QIcon([arg]) ====
{{anchor:qicon}}
Returns a new icon.
@@ -590,7 +590,7 @@ Alternatively, argument ''arg'' may be a
file name that will be loaded on demand.
-==== qt.QImage ====
+===== qt.QImage =====
{{anchor:qimage}}
Qt class
@@ -599,7 +599,7 @@ represents a device independent off-screen image.
Such images are represented in Lua
as Qt variants of class ''qt.QImage''.
-=== qt.QImage(...) ===
+==== qt.QImage(...) ====
{{anchor:qimage}}
There are several ways to construct a Qt variant of class ''qt.QImage''.
@@ -618,21 +618,21 @@ The [[#qimageformats|file format]] is determined
by the optional string ''format'' or by the file name extension.
-=== qimage:depth() ===
+==== qimage:depth() ====
{{anchor:qimage.depth}}
Expression ''qimage:depth()'' returns the depth of the image ''qimage''.
A depth of 1 indicates a bitonal image.
A depth of 24 or 32 indicates a true color image.
-=== qimage:rect() ===
+==== qimage:rect() ====
{{anchor:qimage.rect}}
Expression ''qimage:rect()'' returns a Qt variant of class
[[..:qtcore:index#qrect|qt.QRect]] representing the
boundaries of the image ''qimage''.
-=== qimage:save(f,[format]) ===
+==== qimage:save(f,[format]) ====
{{anchor:qimage.save}}
Expression ''qimage:save(f,format)'' saves the image data into file ''f''.
@@ -640,14 +640,14 @@ Argument ''f'' can be a file name or a Lua file descriptor.
The [[#qimageformats|file format]] is determined by the
optional string ''format'' or by the file name extension.
-=== qimage:size() ===
+==== qimage:size() ====
{{anchor:qimage.size}}
Expression ''qimage:size()'' returns a Qt variant of class
[[..:qtcore:index#qsize|qt.QSize]] representing the
size of the image ''qimage''.
-=== qt.QImage.formats([string]) ===
+==== qt.QImage.formats([string]) ====
{{anchor:qimage.formats}}
{{anchor:qimageformats}}
@@ -663,14 +663,14 @@ returns a ''qt.QStringList'' with the supported formats.
-==== qt.QKeySequence ====
+===== qt.QKeySequence =====
{{anchor:qkeysequence}}
Qt class
[[http://doc.trolltech.com/4.4/qkeysequence.html|QKeySequence]]
encapsulates a key sequence as used by shortcuts.
-=== qt.QKeySequence(string) ===
+==== qt.QKeySequence(string) ====
{{anchor:qkeysequence}}
Returns a Qt value of class ''qt.QKeySequence''
@@ -678,13 +678,13 @@ associated with the key combination described in string ''string''.
Up to four key codes may be entered by separating
them with commas, e.g. ''"Alt+V,Ctrl+Down,A,Shift+Home"''.
-=== qkeysequence:tostring() ===
+==== qkeysequence:tostring() ====
{{anchor:qkeysequence.tostring}}
Returns a string describing the keys in the key sequence.
-==== qt.QMainWindow ====
+===== qt.QMainWindow =====
{{anchor:qmainwindow}}
Qt class
@@ -692,7 +692,7 @@ Qt class
provides a main application window with menu, statusbar, toolbars
and dockable widgets. This is a subclass of [[#qwidget|QWidget]].
-=== qt.QMainWindow([parent]) ===
+==== qt.QMainWindow([parent]) ====
{{anchor:qmainwindow}}
Expression ''qt.QMainWindow(parent)'' returns a new ''QMainWindow'' instance.
@@ -702,41 +702,41 @@ the new widget is owned by the Lua interpreter
and is automatically destroyed when the garbage collector
determines that it is no longer referenced.
-=== qmainwindow:centralWidget() ===
+==== qmainwindow:centralWidget() ====
{{anchor:qmainwindow.centralWidget}}
Expression ''qmainwindow:centralWidget()'' returns the
central widget managed by the main window.
-=== qmainwindow:menuBar() ===
+==== qmainwindow:menuBar() ====
{{anchor:qmainwindow.menuBar}}
Returns the main window's menu bar.
This function creates and returns an empty menu bar
if the menu bar does not exist yet.
-=== qmainwindow:setCentralWidget(qwidget) ===
+==== qmainwindow:setCentralWidget(qwidget) ====
{{anchor:qmainwindow.setcentralwidget}}
Sets the widget ''qwidget'' to be the main window's central widget.
The main window takes ownership of the widget pointer and
deletes it at the appropriate time.
-=== qmainwindow:setMenuBar(qmenubar) ===
+==== qmainwindow:setMenuBar(qmenubar) ====
{{anchor:qmainwindow.setmenubar}}
Sets the menu bar for the main window to ''qmenubar''.
The main window takes ownership of the menu bar and
deletes it at the appropriate time.
-=== qmainwindow:setStatusBar(qstatusbar) ===
+==== qmainwindow:setStatusBar(qstatusbar) ====
{{anchor:qmainwindow.setstatusbar}}
Sets the status bar for the main window to ''qstatusbar''.
The main window takes ownership of the status bar and
deletes it at the appropriate time.
-=== qmainwindow:statusBar() ===
+==== qmainwindow:statusBar() ====
{{anchor:qmainwindow.statusBar}}
Returns the main window's status bar.
@@ -744,7 +744,7 @@ This function creates and returns an empty status bar
if the status bar does not exist yet.
-==== qt.QMenu ====
+===== qt.QMenu =====
{{anchor:qmenu}}
Qt class
@@ -764,7 +764,7 @@ Function ''qmenu:addLuaAction'' provides a more convenient way
to create menu items bound to specific lua functions.
See [[#qmenubar|qt.QMenuBar]] for an example.
-=== qmenu:addLuaAction([icon,]text[,keys[,statustip]][,function]) ===
+==== qmenu:addLuaAction([icon,]text[,keys[,statustip]][,function]) ====
{{anchor:qmenu.addLuaAction}}
Creates a new [[#qaction|QtLuaAction]] owned by the menu
@@ -779,33 +779,33 @@ Finally argument ''function'' is a Lua function that is
connected to the action signal ''triggered(bool)'' and
therefore is called when the menu item is selected.
-=== qmenu:addMenu(newqmenu) ===
+==== qmenu:addMenu(newqmenu) ====
{{anchor:qmenu.addMenu}}
Adds the menu ''newqmenu'' as a submenu of the menu ''qmenu''
and returns the corresponding action object.
-=== qmenu:addMenu([icon,] text) ===
+==== qmenu:addMenu([icon,] text) ====
{{anchor:qmenu.addMenu}}
Creates a new submenu with the specified ''icon'' and ''text''
and adds it into the menu ''qmenu''. This function returns
the new menu as an object of class ''qt.QMenu''.
-=== qmenu:addSeparator() ===
+==== qmenu:addSeparator() ====
{{anchor:qmenu.addSeparator}}
Adds a separator into the menu
and returns the corresponding action object.
-=== qmenu:clear() ===
+==== qmenu:clear() ====
{{anchor:qmenu.clear}}
Removes all the menu items.
Actions owned by the menu and not shown
in any other widget are deleted.
-=== qmenu:exec([qpoint[, defaultqaction]]) ===
+==== qmenu:exec([qpoint[, defaultqaction]]) ====
{{anchor:qmenu.exec}}
Pops up the menu ''qmenu'' at position ''qpoint'' and returns
@@ -820,7 +820,7 @@ are automatically disabled while Lua is running.
Therefore such actions cannot be used with
''qmenu:exec'' because they would all be disabled.
-=== qmenu:insertMenu(beforeqaction, newqmenu) ===
+==== qmenu:insertMenu(beforeqaction, newqmenu) ====
{{anchor:qmenu.insertMenu}}
Inserts the menu ''newqmenu'' as a submenu into the menu ''qmenu''
@@ -828,18 +828,18 @@ and returns the corresponding action object.
The submenu is inserted before action ''beforeqaction''
or is appended when ''beforeqaction'' is null or invalid for this widget.
-=== qmenu:insertSeparator(beforeqaction) ===
+==== qmenu:insertSeparator(beforeqaction) ====
{{anchor:qmenu.insertSeparator}}
Inserts a new separator before action ''beforeqaction''
and returns the corresponding action object.
-=== qmenu:menuAction() ===
+==== qmenu:menuAction() ====
{{anchor:qmenu.menuAction}}
Returns the action associated with the menu ''qmenu''.
-==== qt,QMenuBar ====
+===== qt,QMenuBar =====
{{anchor:qmenubar}}
Qt class
@@ -849,40 +849,40 @@ This is a subclass of [[#qwidget|qt.QWidget]].
Example:
<file lua>
- w = qt.QMainWindow()
+ w === qt.QMainWindow()
w:setCentralWidget(...) -- do something smart here
- menubar = w:menuBar()
- filemenu = menubar:addMenu("&File")
+ menubar === w:menuBar()
+ filemenu === menubar:addMenu("&File")
filemenu:addLuaAction("&Open", "Ctrl+O", function() doOpen(w) end)
filemenu:addLuaAction("&Close", "Ctrl+W", function() w:close() end)
- editmenu = menubar:addMenu("&Edit")
+ editmenu === menubar:addMenu("&Edit")
editmenu:addLuaAction("&Cu&t", "Ctrl+X", function() doCut(w) end)
editmenu:addLuaAction("&Copy", "Ctrl+C", function() doCopy(w) end)
editmenu:addLuaAction("&Paste", "Ctrl+V", function() doPaste(w) end)
w:show()
</file>
-=== qmenubar:addMenu(qmenu) ===
+==== qmenubar:addMenu(qmenu) ====
{{anchor:qmenubar.addMenu}}
Adds the menu ''qmenu'' as a menu of the menubar ''qmenubar''
and returns the corresponding action object.
-=== qmenubar:addMenu([icon,] text) ===
+==== qmenubar:addMenu([icon,] text) ====
{{anchor:qmenubar.addMenu}}
Creates a new menu with the specified ''icon'' and ''text''
and adds it into the menubar ''qmenubar''. This function returns
the new menu as an object of class ''qt.QMenu''.
-=== qmenubar:clear() ===
+==== qmenubar:clear() ====
{{anchor:qmenubar.clear}}
Removes all the menus and actions from the menu bar.
Actions owned by the menu and not shown
in any other widget are deleted.
-=== qmenubar:insertMenu(beforeqaction, qmenu) ===
+==== qmenubar:insertMenu(beforeqaction, qmenu) ====
{{anchor:qmenubar.insertMenu}}
Inserts the menu ''qmenu'' into the menu bar ''qmenubar''
@@ -890,13 +890,13 @@ and returns the corresponding action object.
The submenu is inserted before action ''beforeqaction''
or is appended when ''beforeqaction'' is null or invalid for this widget.
-=== qmenubar:insertSeparator(beforeqaction) ===
+==== qmenubar:insertSeparator(beforeqaction) ====
{{anchor:qmenubar.insertSeparator}}
Inserts a new separator before action ''beforeqaction''
and returns the corresponding action object.
-==== qt.QPainterPath ====
+===== qt.QPainterPath =====
{{anchor:qpainterpath}}
Qt class
@@ -907,7 +907,7 @@ or delimited using [[..:qtwidget:index#painterstroke|painter:stroke]].
No specific Lua methods have been defined for this Qt variant class.
-==== qt.QPixmap ====
+===== qt.QPixmap =====
{{anchor:qpixmap}}
Qt class
@@ -916,7 +916,7 @@ represents a server-side image containing device-dependent data.
No specific Lua methods have been defined for this Qt variant class.
-==== qt.QPen ====
+===== qt.QPen =====
{{anchor:qpen}}
Qt class
@@ -924,7 +924,7 @@ Qt class
represents the painter settings that determine how
lines are drawn.
-=== qt.QPen(table) ===
+==== qt.QPen(table) ====
{{anchor:qpen}}
{{anchor:qpenfromtable}}
@@ -951,7 +951,7 @@ The following fields are recognized:
* Numerical field ''miterLimit'' determines how far a [[http://doc.trolltech.com/4.4/qpen.html#setMiterLimit|miter join]] can extend from the join point. This is used to reduce artifacts between line joins where the lines are close to parallel.
-=== qpen:totable() ===
+==== qpen:totable() ====
{{anchor:qpen.totable}}
Expression ''qpen:totable()'' returns a table describing the pen.
@@ -959,7 +959,7 @@ See the documentation of [[#qpenfromtable|qt.QPen(table)]]
for a description of the table fields.
-==== qt.QTransform ====
+===== qt.QTransform =====
{{anchor:qtransform}}
Qt class
@@ -968,7 +968,7 @@ represents a 2D transformation of a coordinate system.
Transformation matrices are represented as Qt variants
of class ''qt.QTransform''.
-=== qt.QTransform([table[,table]]) ===
+==== qt.QTransform([table[,table]]) ====
{{anchor:qtransform}}
{{anchor:qtransformfromtable}}
@@ -983,20 +983,20 @@ that maps the quad ''fquad'' to the quad ''tquad''.
Both arguments ''fquad'' and ''tquad'' are table containing exactly four
[[..:qtcore:index#qpoint|qt.QPointF]] representing the four corners of the quad.
-=== qtransform:totable() ===
+==== qtransform:totable() ====
{{anchor:qtransform.totable}}
Expression ''qtransform:totable()'' returns a table suitable
for use with expression [[#qtransformfromtable|qt.QTransform(table)]].
-=== qtransform:scaled(sx,sy) ===
+==== qtransform:scaled(sx,sy) ====
{{anchor:qtransform.scaled}}
Function ''qtransform:scaled'' returns a new transformation matrix
representing a coordinate system whose axes have been
scaled by coefficient ''sx'' and ''sy''.
-=== qtransform:translated(dx,dy) ===
+==== qtransform:translated(dx,dy) ====
{{anchor:qtransform.translated}}
Function ''qtransform:translated'' returns a new transformation matrix
@@ -1004,7 +1004,7 @@ representing a coordinate system whose origin has been
translated by ''dx'' units along the X axis and ''dy'' units along the Y axis.
-=== qtransform:sheared(cx,cy) ===
+==== qtransform:sheared(cx,cy) ====
{{anchor:qtransform.sheared}}
Function ''qtransform:sheared'' returns a new transformation matrix
@@ -1012,7 +1012,7 @@ representing a coordinate system that has been sheared using coefficients
''cx'' horizontally and ''cy'' vertically.
-=== qtransform:rotated(angle,[axis,[unit]]) ===
+==== qtransform:rotated(angle,[axis,[unit]]) ====
{{anchor:qtransform.rotated}}
Function ''qtransform:rotated'' returns a new transformation matrix
@@ -1022,14 +1022,14 @@ defaults to ''ZAxis''. The optional string argument ''unit'' may
be ''Degrees'' or ''Radians''
and default to ''Degrees''.
-=== qtransform:inverted() ===
+==== qtransform:inverted() ====
{{anchor:qtransform.inverted}}
Function ''qtransform:inverted'' returns
the inverse transform of its argument
or ''nil'' when it is not invertible.
-=== qtransform:map(...) ===
+==== qtransform:map(...) ====
{{anchor:qtransform.map}}
Function ''qtransform:map'' applies
@@ -1044,7 +1044,7 @@ This function also take as argument to reals representing
the coordinates of a point and return two reals
representing the transformed coordinates.
-==== qt.QWidget ====
+===== qt.QWidget =====
{{anchor:qwidget}}
Qt class
@@ -1053,7 +1053,7 @@ is the base class of all graphical interface components.
All widgets inherit class ''qt.QWidget'' and
its superclass [[..:qtcore:index#qobject|qt.QObject]].
-=== qt.QWidget([parent]) ===
+==== qt.QWidget([parent]) ====
{{anchor:qwidget}}
Expression ''qt.QWidget(parent)'' returns a new widget.
@@ -1067,14 +1067,14 @@ and is automatically destroyed when the garbage collector
determines that it is no longer referenced.
-=== qwidget:actions() ===
+==== qwidget:actions() ====
{{anchor:qwidget.actions}}
Expression ''qwidget:actions()'' returns a
qt value of class [[..:qtcore:index#qvariantlist|qt.QVariantList]]
containing list of actions associated with this widget.
-=== qwidget:addAction(qaction) ===
+==== qwidget:addAction(qaction) ====
{{anchor:qwidget.addAction}}
Appends action ''qaction'' to the
@@ -1082,32 +1082,32 @@ list of actions associated with this widget.
Example: creating a context menu
<file lua>
- action1 = qt.QtLuaAction{text="Checkme", checkable=true,
+ action1 === qt.QtLuaAction{text="Checkme", checkable=true,
function(b) print("checked:", b) end}
- action2 = qt.QtLuaAction{text="Pickme",
+ action2 === qt.QtLuaAction{text="Pickme",
function() print("picked") end}
w:addAction(action1)
w:addAction(action2)
w.contextMenuPolicy='ActionsContextMenu'
</file>
-=== qwidget:insertAction(beforeqaction, qaction) ===
+==== qwidget:insertAction(beforeqaction, qaction) ====
{{anchor:qwidget.insertAction}}
-Insert action =qaction= into the
+Insert action ==qaction== into the
list actions associated with this widget.
-Argument =beforeqaction= indicates at which position
-to insert the action. If =beforeqaction= is omitted
+Argument ==beforeqaction== indicates at which position
+to insert the action. If ==beforeqaction== is omitted
or invalid, the action is simply appended.
-=== qwidget:mapToGlobal(qpoint) ===
+==== qwidget:mapToGlobal(qpoint) ====
{{anchor:qwidget.mapToGlobal}}
Translates the widget coordinates ''qpoint'' to global screen coordinates.
Both argument ''qpoint'' and the return value are Qt value of class
[[..:qtcore:index#qpoint|qt.QPoint]].
-=== qwidget:mapFromGlobal(qpoint) ===
+==== qwidget:mapFromGlobal(qpoint) ====
{{anchor:qwidget.mapFromGlobal}}
Translates the global screen coordinates ''qpoint'' to widget coordinates.
@@ -1115,14 +1115,14 @@ Both argument ''qpoint'' and the return value are Qt value of class
[[..:qtcore:index#qpoint|qt.QPoint]].
-=== qwidget:removeAction(qaction) ===
+==== qwidget:removeAction(qaction) ====
{{anchor:qwidget.removeAction}}
Removes action ''qaction'' from the
list actions associated with this widget.
-=== qwidget:render([pointer]) ===
+==== qwidget:render([pointer]) ====
{{anchor:qwidget.render}}
When called without argument,
@@ -1138,7 +1138,7 @@ Such pointers can be obtained using functions
When such an argument is specified,
nothing is returned.
-=== qwidget:setAttribute(widgetattribute,[value]) ===
+==== qwidget:setAttribute(widgetattribute,[value]) ====
{{anchor:qwidget.setAttribute}}
Sets the specified
@@ -1147,7 +1147,7 @@ to boolean value ''value''.
Some of these flags are used internally by Qt.
Care is required.
-=== qwidget:setWindowFlag(windowflag,[value]) ===
+==== qwidget:setWindowFlag(windowflag,[value]) ====
{{anchor:qwidget.setWindowFlag}}
Sets the specified
@@ -1158,7 +1158,7 @@ are handled as exclusive flags.
Setting these flags usually hides the window.
You need to do call ''qwidget:show'' again.
-=== qwidget:testAttribute(widgetattribute) ===
+==== qwidget:testAttribute(widgetattribute) ====
{{anchor:qwidget.testAttribute}}
Returns a boolean indicating the value of the specified
@@ -1166,7 +1166,7 @@ Returns a boolean indicating the value of the specified
Flags indicating a window type
are handled as exclusive flags.
-=== qwidget:testWindowFlag(windowflag) ===
+==== qwidget:testWindowFlag(windowflag) ====
{{anchor:qwidget.testWindowFlag}}
Returns a boolean indicating the value of the specified
@@ -1174,7 +1174,7 @@ Returns a boolean indicating the value of the specified
Flags indicating a window type
are handled as exclusive flags.
-=== qwidget:window() ===
+==== qwidget:window() ====
{{anchor:qwidget.window}}
Expression ''qwidget:window()'' returns the window for widget ''qwidget'',
diff --git a/packages/qtide/dok/index.dok b/packages/qtide/dok/index.dok
index af7f0b9..b4f10fb 100644
--- a/packages/qtide/dok/index.dok
+++ b/packages/qtide/dok/index.dok
@@ -10,11 +10,11 @@ This package is not complete because
it is under heavy development.
-==== Functions ====
+===== Functions =====
{{anchor:qtide.functions.}}
{{anchor:qtidefunctions}}
-=== qtide.editor([filename]) ===
+==== qtide.editor([filename]) ====
{{anchor:qtide.editor}}
Called without argument, this function returns a
@@ -28,7 +28,7 @@ Open editors have object names of the form ''editor''//n//
and are accessible by name in the ''qt'' package.
-=== qtide.doeditor(qluaeditor) ===
+==== qtide.doeditor(qluaeditor) ====
{{anchor:qtide.doeditor}}
This function executes the chunk of Lua code
@@ -40,7 +40,7 @@ or has been modified (otherwise one can use the standard
Lua function ''dofile''.)
-=== qtide.browser([url]) ===
+==== qtide.browser([url]) ====
{{anchor:qtide.browser}}
This function opens a web browser for URL ''url''.
@@ -49,19 +49,19 @@ This is the function called by the IDE when one
requests the help index.
-=== qtide.inspector(...) ===
+==== qtide.inspector(...) ====
{{anchor:qtide.inspector}}
Not yet implemented
-=== qtide.preferences() ===
+==== qtide.preferences() ====
{{anchor:qtide.preferences}}
Not yet implemented
-=== qtide.start([style]) ===
+==== qtide.start([style]) ====
{{anchor:qtide.start}}
{{anchor:qtidestart}}
@@ -82,7 +82,7 @@ The recognized IDE styles are:
* ''"tab2"'' groups all editors and the console into a single tabbed window.
-=== qtide.setup([style]) ===
+==== qtide.setup([style]) ====
{{anchor:qtide.setup}}
{{anchor:qtidesetup}}
@@ -92,10 +92,10 @@ want to organize QLua editors and windows without creating
a graphic console.
-==== Qt Classes ====
+===== Qt Classes =====
{{anchor:qtclasses}}
-=== qt.QLuaIde ===
+==== qt.QLuaIde ====
{{anchor:qluaide}}
Object ''qt.qLuaIde'' represetns the global state of the IDE.
@@ -105,7 +105,7 @@ Most of its capabilities are conveniently
accessible using the functions defined
by the [[#qtidefunctions|package ''qtide]].
-== qt.qLuaIde.editOnError ==
+=== qt.qLuaIde.editOnError ===
{{anchor:qluaide.editOnError}}
When a Lua error occurs, this boolean property
@@ -114,89 +114,89 @@ on the location of the error.
This property is ''false'' by default
Function [[#qtidestart|qtide.start]] sets it to ''true''.
-== qt.qLuaIde:windows() ==
+=== qt.qLuaIde:windows() ===
{{anchor:qluaide.windows}}
Returns a variant of type ''qt.QObjectList'' containing
all the main windows managed by the IDE.
-== qt.qLuaIde:windowNames() ==
+=== qt.qLuaIde:windowNames() ===
{{anchor:qluaide.windowNames}}
Returns a variant of type ''qt.QStringList'' containing
the names of all the main windows managed by the IDE.
-== qt.qLuaIde:activeWindow() ==
+=== qt.qLuaIde:activeWindow() ===
{{anchor:qluaide.activeWindow}}
-== qt.qLuaIde:editor([fname]) ==
+=== qt.qLuaIde:editor([fname]) ===
{{anchor:qluaide.editor}}
-== qt.qLuaIde:browser([url]) ==
+=== qt.qLuaIde:browser([url]) ===
{{anchor:qluaide.browser}}
-== qt.qLuaIde:inspector() ==
+=== qt.qLuaIde:inspector() ===
{{anchor:qluaide.inspector}}
-== qt.qLuaIde:recentFiles() ==
+=== qt.qLuaIde:recentFiles() ===
{{anchor:qluaide.recentFiles}}
Returns a variant of type ''qt.QStringList'' containing
the file names appearing in the "Open Recent Files" menu.
-== qt.qLuaIde:addRecentFile(fname) ==
+=== qt.qLuaIde:addRecentFile(fname) ===
{{anchor:qluaide.addRecentFile}}
-== qt.qLuaIde:clearRecentFiles() ==
+=== qt.qLuaIde:clearRecentFiles() ===
{{anchor:qluaide.clearRecentFiles}}
-== qt.qLuaIde:activateWidget(qwidget) ==
+=== qt.qLuaIde:activateWidget(qwidget) ===
{{anchor:qluaide.activateWidget}}
-== qt.qLuaIde:activateConsole() ==
+=== qt.qLuaIde:activateConsole() ===
{{anchor:qluaide.activateConsole}}
-== qt.qLuaIde:messageBox(title,message,buttons,[defbutton,[icon]]) ==
+=== qt.qLuaIde:messageBox(title,message,buttons,[defbutton,[icon]]) ===
{{anchor:qluaide.messageBox}}
-== qt.qLuaIde:hasAction(name) ==
+=== qt.qLuaIde:hasAction(name) ===
{{anchor:qluaide.hasAction}}
-== qt.qLuaIde:stdAction(name) ==
+=== qt.qLuaIde:stdAction(name) ===
{{anchor:qluaide.stdAction}}
-== [qt.QLuaIde signal] prefsRequested(qwidget) ==
+=== [qt.QLuaIde signal] prefsRequested(qwidget) ===
{{anchor:qluaide.prefsRequested}}
This signal is emitted when the "Preferences" menu is selected.
-== [qt.QLuaIde signal] helpRequested(qwidget) ==
+=== [qt.QLuaIde signal] helpRequested(qwidget) ===
{{anchor:qluaide.helpRequested}}
This signal is emitted when the "Help Index" menu is selected.
-=== qt.QLuaMainWindow ===
+==== qt.QLuaMainWindow ====
{{anchor:qluamainwindow}}
This subclass of ''QMainWindow'' implements common
functionalities shared by all main windows defined
by the ''qtide'' package.
-== qluamainwindow:clearStatusMessage() ==
+=== qluamainwindow:clearStatusMessage() ===
{{anchor:qluamainwindow.clearStatusMessage}}
-== qluamainwindow:showStatusMessage(string,[timeout]) ==
+=== qluamainwindow:showStatusMessage(string,[timeout]) ===
{{anchor:qluamainwindow.showStatusMessage}}
-== qluamainwindow:hasAction(name) ==
+=== qluamainwindow:hasAction(name) ===
{{anchor:qluamainwindow.hasAction}}
-== qluamainwindow:stdAction(name) ==
+=== qluamainwindow:stdAction(name) ===
{{anchor:qluamainwindow.stdAction}}
-== qluamainwindow:doXXXX() ==
+=== qluamainwindow:doXXXX() ===
{{anchor:qluamainwindow.doXXXX}}
Methods whose name start with ''do'' implement
@@ -204,7 +204,7 @@ the functions accessible from the menus and toolbar icons
in various subclasses of ''qt.QLuaMainWindow''.
-=== qt.QLuaEditor ===
+==== qt.QLuaEditor ====
{{anchor:qluaeditor}}
This subclass of [[#qluamainwindow|qt.QLuaMainWindow]]
@@ -212,40 +212,40 @@ implements the QLua editor windows using
an instance of [[#qluatextedit|qt.QLuaTextEdit]]
as its main widget.
-== qluaeditor:widget() ==
+=== qluaeditor:widget() ===
{{anchor:qluaeditor.widget}}
Expression ''qluaeditor:widget()'' returns the
[[#qluatextedit|qt.QLuaTextEdit]]
object that underlies the editor window.
-== qluaeditor.fileName ==
+=== qluaeditor.fileName ===
{{anchor:qluaeditor.fileName}}
This property contains the name of the file being edited.
-== qluaeditor:readFile(string) ==
+=== qluaeditor:readFile(string) ===
{{anchor:qluaeditor.readFile}}
-== qluaeditor:writeFile(string) ==
+=== qluaeditor:writeFile(string) ===
{{anchor:qluaeditor.writeFile}}
-=== qt.QLuaBrowser ===
+==== qt.QLuaBrowser ====
{{anchor:qluabrowser}}
This subclass of [[#qluamainwindow|qt.QLuaMainWindow]]
implements the QLua web browser windows using the Qt WebKit interface.
-== qluabrowser.url ==
+=== qluabrowser.url ===
{{anchor:qluabrowser.url}}
This property contains a qt variant
of type [[..:qt:index#qurl|qt.QUrl]]
representing the URL displayed by the browser.
-== qluabrowser.html ==
+=== qluabrowser.html ===
{{anchor:qluabrowser.html}}
This property contains a qt variant of type ''QString''
@@ -254,7 +254,7 @@ representing the HTML text displayed by the browser.
-=== qt.QLuaSdiMain ===
+==== qt.QLuaSdiMain ====
{{anchor:qluasdimain}}
This subclass of [[#qluamainwindow|qt.QLuaMainWindow]]
@@ -262,7 +262,7 @@ implements the QLua console window.
Expression ''qt.qLuaSdiMain'' returns the single console
window when such a window exists.
-== qt.qLuaSdiMain:consoleWidget() ==
+=== qt.qLuaSdiMain:consoleWidget() ===
{{anchor:qluasdimain.consoleWidget}}
Returns the object of class
@@ -270,7 +270,7 @@ Returns the object of class
implementing the part of the main console
where the user can edit and submit lua strings.
-== qt.qLuaSdiMain:editorWidget() ==
+=== qt.qLuaSdiMain:editorWidget() ===
{{anchor:qluasdimain.editorWidget}}
Returns the object of class
@@ -279,7 +279,7 @@ implementing the part of the main console
where the Lua output is shown.
-=== qt.QLuaMdiMain ===
+==== qt.QLuaMdiMain ====
{{anchor:qluamdimain}}
This subclass of [[#qluamainwindow|qt.QLuaMainWindow]]
@@ -287,14 +287,14 @@ aggregates selected windows into a single main window
to implement the IDE styles. Expression ''qt.qLuaMdiMain''
returns the single main window when such a window exists.
-== qt.qLuaMdiMain.tabMode ==
+=== qt.qLuaMdiMain.tabMode ===
{{anchor:qluamdimain.tabMode}}
The boolean property ''qt.qLuaMdiMain.tabMode''
indicates whether the aggregated
windows are displayed using tabs or using a multiple document interface.
-== qt.qLuaMdiMain.clientClass ==
+=== qt.qLuaMdiMain.clientClass ===
{{anchor:qluamdimain.clientClass}}
The string property ''qt.qLuaMdiMain.clientClass''
@@ -302,90 +302,90 @@ contains the name of a class.
All new main windows inheriting this class are then
managed by the single main window.
-== qt.qLuaMdiMain:adoptAll() ==
+=== qt.qLuaMdiMain:adoptAll() ===
{{anchor:qluamdimain.adoptAll}}
Collects all main windows that are
subclasses of ''qt.qLuaMdiMain.clientClass''
and aggregates them into the mdi main window.
-== qt.qLuaMdiMain:adopt(qwidget) ==
+=== qt.qLuaMdiMain:adopt(qwidget) ===
{{anchor:qluamdimain.adopt}}
-== qt.qLuaMdiMain:activate(qwidget) ==
+=== qt.qLuaMdiMain:activate(qwidget) ===
{{anchor:qluamdimain.activate}}
-=== qt.QLuaTextEdit ===
+==== qt.QLuaTextEdit ====
{{anchor:qluatextedit}}
Class ''QLuaTextEdit'' is a text editor widget derived
from ''QPlainTextEdit'' with support for line numbers,
find dialog, replace dialog, and printing.
-== qluatextedit.showLineNumbers ==
+=== qluatextedit.showLineNumbers ===
{{anchor:qluatextedit.showLineNumbers}}
-== qluatextedit.autoComplete ==
+=== qluatextedit.autoComplete ===
{{anchor:qluatextedit.autoComplete}}
-== qluatextedit.autoIndent ==
+=== qluatextedit.autoIndent ===
{{anchor:qluatextedit.autoIndent}}
-== qluatextedit.autoHighlight ==
+=== qluatextedit.autoHighlight ===
{{anchor:qluatextedit.autoHighlight}}
-== qluatextedit.autoMatch ==
+=== qluatextedit.autoMatch ===
{{anchor:qluatextedit.autoMatch}}
-== qluatextedit.tabExpand ==
+=== qluatextedit.tabExpand ===
{{anchor:qluatextedit.tabExpand}}
-== qluatextedit.tabSize ==
+=== qluatextedit.tabSize ===
{{anchor:qluatextedit.tabSize}}
-== qluatextedit:setEditorMode(suffix) ==
+=== qluatextedit:setEditorMode(suffix) ===
{{anchor:qluatextedit.setEditorMode}}
-== qluatextedit:readFile(fname) ==
+=== qluatextedit:readFile(fname) ===
{{anchor:qluatextedit.readFile}}
-== qluatextedit:writeFile(fname) ==
+=== qluatextedit:writeFile(fname) ===
{{anchor:qluatextedit.writeFile}}
-== qluatextedit:showLine(lineno) ==
+=== qluatextedit:showLine(lineno) ===
{{anchor:qluatextedit.showLine}}
-=== qt.QLuaConsoleWidget ===
+==== qt.QLuaConsoleWidget ====
{{anchor:qluaconsolewidget}}
Class ''QLuaConsoleWidget'' is a subclass of
[[#qluatextedit|qt.QLuaTextEdit]]
that captures and display the lua output.
-== qluaconsolewidget.printTimings ==
+=== qluaconsolewidget.printTimings ===
{{anchor:qluaconsolewidget.printTimings}}
Boolean property that indicates whether the console
displays the running time of each command.
-== qluaconsolewidget:addOutput(text,[format]) ==
+=== qluaconsolewidget:addOutput(text,[format]) ===
{{anchor:qluaconsolewidget.addOutput}}
Adds ''text'' to the console window.
Argument ''format'' is a string specifying the text format.
Possible values are ''"default"'', ''"quote"'', and ''"comment"''.
-== qluaconsolewidget:moveToEnd() ==
+=== qluaconsolewidget:moveToEnd() ===
{{anchor:qluaconsolewidget.moveToEnd}}
Shows the bottom of the text displayed in the console window.
-==== Qt Objects ====
+===== Qt Objects =====
{{anchor:qtobjects}}
-=== qt.qLuaIde ===
+==== qt.qLuaIde ====
{{anchor:qtqluaide}}
Expression ''qt.qLuaIde'' refers to the unique instance
@@ -393,7 +393,7 @@ of class [[#qluaide|qt.QLuaIde]].
This instance is created when package ''qtide'' is loaded.
-=== qt.qLuaSdiMain ===
+==== qt.qLuaSdiMain ====
{{anchor:qtqluasdimain}}
Expression ''qt.qLuaSdiMain'' refers to the unique instance of
@@ -401,7 +401,7 @@ class [[#qluasdimain|qt.QLuaSdiMain]],
created by function [[#qtidestart|qtide.start()]].
-=== qt.qLuaMdiMain ===
+==== qt.qLuaMdiMain ====
{{anchor:qtqluamdimain}}
Expression ''qt.qLuaMdiMain'' refers to the unique instance of
diff --git a/packages/qtuiloader/dok/index.dok b/packages/qtuiloader/dok/index.dok
index 6904648..4aacf73 100644
--- a/packages/qtuiloader/dok/index.dok
+++ b/packages/qtuiloader/dok/index.dok
@@ -1,4 +1,4 @@
-====== QtUiLoader Package Reference Manual ======
+====== QtUiLoader Package Reference Manual ======
{{anchor:qtuiloader.dok}}
Package ''qtuiloader'' provides
@@ -26,7 +26,7 @@ Then load file ''test.lua'' into the
</file>
-==== Functions ====
+===== Functions =====
{{anchor:qtuiloader.functions}}
Package ''qtuiloader'' provides a few convenience functions.
@@ -38,7 +38,7 @@ this preallocated loader to construct a widget using a
user interface description.
-=== qtuiloader.availableWidgets() ===
+==== qtuiloader.availableWidgets() ====
{{anchor:qtuiloaderavailablewidgets}}
{{anchor:qtuiloader.availablewidgets}}
@@ -47,7 +47,7 @@ Expression ''qtuiloader.availableWidgets()'' returns a
containing the names of the supported widget classes.
-=== qtuiloader.createWidget(classname,[parent,[objectname]]) ===
+==== qtuiloader.createWidget(classname,[parent,[objectname]]) ====
{{anchor:qtuiloader.createWidget}}
Creates a [[..:qtgui:index#qwidget|widget]] of class ''classname''.
@@ -64,7 +64,7 @@ determines that it is no longer referenced.
-=== qtuiloader.load(filename,[parent]) ===
+==== qtuiloader.load(filename,[parent]) ====
{{anchor:qtuiloaderload}}
{{anchor:qtuiloader.load}}
@@ -79,7 +79,7 @@ and is automatically destroyed when the garbage collector
determines that it is no longer referenced.
-=== qtuiloader.loader() ===
+==== qtuiloader.loader() ====
{{anchor:qtuiloaderloader}}
{{anchor:qtuiloader.loader}}
@@ -88,10 +88,10 @@ returns a preallocated instance
of class [[#quiloader|qt.QUiLoader]].
-==== Classes ====
+===== Classes =====
{{anchor:qtuiloader.classes}}
-=== qt.QUiLoader ===
+==== qt.QUiLoader ====
{{anchor:quiloader}}
Class ''qt.QUiLoader'' provides bindings
diff --git a/packages/qtwidget/dok/index.dok b/packages/qtwidget/dok/index.dok
index 7f007fe..19b2306 100644
--- a/packages/qtwidget/dok/index.dok
+++ b/packages/qtwidget/dok/index.dok
@@ -62,7 +62,7 @@ and you can erase everything with
w:showpage()
</file>
-==== High Level Interface ====
+===== High Level Interface =====
{{anchor:highlevel}}
The following convenience functions
@@ -80,7 +80,7 @@ on these tables.
-=== qtwidget.newwindow(w,h,[title]) ===
+==== qtwidget.newwindow(w,h,[title]) ====
{{anchor:qtwidgetnewwindow}}
{{anchor:qtwidget.newwindow}}
@@ -93,7 +93,7 @@ String argument ''title'' specifies a window title.
The expression returns a Lua table that
serves as a drawing port descriptor.
-=== qtwidget.newimage(...) ===
+==== qtwidget.newimage(...) ====
{{anchor:qtwidgetnewimage}}
{{anchor:qtwidget.newimage}}
@@ -127,7 +127,7 @@ This only works when both packages [[..:torch:index|torch]]
and [[..:qttorch:index|qttorch]] have been loaded.
-=== qtwidget.newps(w,h,filename) ===
+==== qtwidget.newps(w,h,filename) ====
{{anchor:qtwidgetnewps}}
{{anchor:qtwidget.newps}}
@@ -142,7 +142,7 @@ The output file contains incomplete data until
you delete the painter object or call
method [[#qtwidgetclose|close]].
-=== qtwidget.newpdf(w,h,filename) ===
+==== qtwidget.newpdf(w,h,filename) ====
{{anchor:qtwidgetnewpdf}}
{{anchor:qtwidget.newpdf}}
@@ -158,7 +158,7 @@ you delete the painter object or call
method [[#qtwidgetclose|close]].
-=== qtwidget.newsvg(w,h,[filename]) ===
+==== qtwidget.newsvg(w,h,[filename]) ====
{{anchor:qtwidgetnewsvg}}
{{anchor:qtwidget.newsvg}}
@@ -178,7 +178,7 @@ accessible using expression
[[..:qtsvg:index#qtluasvggeneratordata|desc.svg:data()]].
-=== qtwidget.newprint(w,h,[printername]) ===
+==== qtwidget.newprint(w,h,[printername]) ====
{{anchor:qtwidgetnewprint}}
{{anchor:qtwidget.newprint}}
@@ -194,7 +194,7 @@ initial size of the coordinate system.
-=== Painting Functions. ===
+==== Painting Functions. ====
{{anchor:qtpaintingfunctions}}
All the [[#qtluapainterfunctions|painting functions]]
@@ -215,7 +215,7 @@ These calls are simply forwarded to the underlying
* [[#qtluapainterfunctions|Link to the painting functions]].
-=== Other Functions and Fields. ===
+==== Other Functions and Fields. ====
{{anchor:qtwidgetotherfunctions}}
The following fields and functions are defined
@@ -227,7 +227,7 @@ on the descriptor tables returned by the functions
[[#qtwidgetnewprint|qtwidget.newprint]].
-== desc.port ==
+=== desc.port ===
{{anchor:descport}}
{{anchor:qtwidget.desc.port}}
@@ -236,7 +236,7 @@ Field ''desc.port'' contains the
that is used to perform the drawings.
-== desc.widget ==
+=== desc.widget ===
{{anchor:qtwidget.desc.widget}}
Field ''desc.widget'' contains the
@@ -245,7 +245,7 @@ that underlies drawing port descriptors created with
[[#qtwidgetnewwindow|qtwidget.newwindow]].
-== desc.listener ==
+=== desc.listener ===
{{anchor:qtwidget.desc.listener}}
Field ''desc.widget'' contains a
@@ -253,7 +253,7 @@ Field ''desc.widget'' contains a
that can be used to capture events on the widget created by
[[#qtwidgetnewwindow|qtwidget.newwindow]].
-== desc.printer ==
+=== desc.printer ===
{{anchor:qtwidget.desc.printer}}
Field ''desc.printer'' contains the
@@ -263,7 +263,7 @@ that underlies drawing port descriptors created with
[[#qtwidgetnewpdf|qtwidget.newpdf]], or
[[#qtwidgetnewprint|qtwidget.newprint]].
-== desc.svg ==
+=== desc.svg ===
{{anchor:qtwidget.desc.svg}}
Field ''desc.svg'' contains the
@@ -272,18 +272,18 @@ associated with drawing ports created with
[[#qtwidgetnewsvg|qtwidget.newsvg]].
-== desc.width ==
+=== desc.width ===
{{anchor:qtwidget.desc.width}}
Field ''desc.width'' contains the width of the drawing surface.
-== desc.height ==
+=== desc.height ===
{{anchor:qtwidget.desc.height}}
Field ''desc.height'' contains the height of the drawing surface.
-== desc:close() ==
+=== desc:close() ===
{{anchor:qtwidgetclose}}
{{anchor:qtwidget.desc.close}}
@@ -293,7 +293,7 @@ In the case of a drawing port descriptor returned by function
this function also closes the [[..:qtgui:index#qwidget|qt.QWidget]]
and the windows disappears from the screen.
-== desc:resize(w,h) ==
+=== desc:resize(w,h) ===
{{anchor:qtwidget.desc.resize}}
Function ''desc:resize(w,h)'' is only available for
@@ -302,7 +302,7 @@ drawing port descriptor returned by function
It resizes the underlying widget.
-== desc:onResize(f) ==
+=== desc:onResize(f) ===
{{anchor:qtwidget.desc.onResize}}
Function ''desc:onResize(f)'' is only available for
@@ -315,7 +315,7 @@ Each call of ''desc:onResize'' replaces the previous callback function by ''f''.
Calling it with argument ''nil'' removes the current callback.
-== desc:valid() ==
+=== desc:valid() ===
{{anchor:qtwidget.desc.valid}}
Expression ''desc:valid()'' returns ''false'' if the
@@ -324,30 +324,30 @@ for instance because the window has been closed.
Otherwise it returns ''true''.
-==== Classes ====
+===== Classes =====
{{anchor:qtwidget.classes}}
-=== qt.QtLuaListener ===
+==== qt.QtLuaListener ====
{{anchor:qtlualistener}}
Class ''QtLuaListener'' emits signals when its parent receives event messages.
This is convenient because the Lua program can define event handling functions
using the signal connection function [[..:qt:index#qt.connect|qt.connect]].
-== qt.QtLuaListener(qwidget) ==
+=== qt.QtLuaListener(qwidget) ===
{{anchor:qtlualistener}}
Expression ''qt.QtLuaListener(qwidget)'' returns a new ''QtLuaListener'' object
that relays the event messages received by widget ''qwidget''.
This object is a child of ''qwidget''.
-== [QtLuaListener signal] sigClose() ==
+=== [QtLuaListener signal] sigClose() ===
{{anchor:qtlualistener.sigClose}}
Signal ''sigClose'' is emitted when the underlying widget receives a
[[http://doc.trolltech.com/4.4/qcloseevent.html|QCloseEvent]].
-== [QtLuaListener signal] sigResize(int,int) ==
+=== [QtLuaListener signal] sigResize(int,int) ===
{{anchor:qtlualistener.sigResize}}
Signal ''sigResize'' is emitted whenever the underlying widget receives a
@@ -355,7 +355,7 @@ Signal ''sigResize'' is emitted whenever the underlying widget receives a
because it has changed size. The two arguments are the new widget size.
-== [QtLuaListener signal] sigKeyPress(QString,QByteArray,QByteArray) ==
+=== [QtLuaListener signal] sigKeyPress(QString,QByteArray,QByteArray) ===
{{anchor:qtlualistener.sigKeyPress}}
Signal ''sigKeyPress'' is emitted whenever the underlying widget receives a
@@ -369,7 +369,7 @@ The third argument is a string containing the
separated by a vertical bar.
-== [QtLuaListener signal] sigKeyRelease(QString,QByteArray,QByteArray) ==
+=== [QtLuaListener signal] sigKeyRelease(QString,QByteArray,QByteArray) ===
{{anchor:qtlualistener.sigKeyRelease}}
Signal ''sigKeyRelease'' is emitted whenever the underlying widget receives a
@@ -384,7 +384,7 @@ separated by a vertical bar.
-== [QtLuaListener signal] sigMousePress(int,int,QByteArray,QByteArray,QByteArray) ==
+=== [QtLuaListener signal] sigMousePress(int,int,QByteArray,QByteArray,QByteArray) ===
{{anchor:qtlualistener.sigMousePress}}
Signal ''sigMousePress'' is emitted whenever the underlying widget receives a
@@ -402,7 +402,7 @@ separated by a vertical bar.
-== [QtLuaListener signal] sigMouseRelease(int,int,QByteArray,QByteArray,QByteArray) ==
+=== [QtLuaListener signal] sigMouseRelease(int,int,QByteArray,QByteArray,QByteArray) ===
{{anchor:qtlualistener.sigMouseRelease}}
Signal ''sigMouseRelease'' is emitted whenever the underlying widget receives a
@@ -418,7 +418,7 @@ separated by a vertical bar.
The fifth argument is a string containing the names of all depressed buttons
separated by a vertical bar.
-== [QtLuaListener signal] sigMouseDoubleClick(int,int,QByteArray,QByteArray,QByteArray) =={{anchor:qtlualistener.sigMouseDoubleClick}}
+=== [QtLuaListener signal] sigMouseDoubleClick(int,int,QByteArray,QByteArray,QByteArray) =={{anchor:qtlualistener.sigMouseDoubleClick}}
Signal ''sigMouseRelease'' is emitted whenever the underlying widget receives a
[[http://doc.trolltech.com/4.4/qmouseevent.html|QMouseEvent]]
@@ -433,7 +433,7 @@ separated by a vertical bar.
The fifth argument is a string containing the names of all depressed buttons
separated by a vertical bar.
-== [QtLuaListener signal] sigMouseMove(int,int,QByteArray,QByteArray) ==
+=== [QtLuaListener signal] sigMouseMove(int,int,QByteArray,QByteArray) ===
{{anchor:qtlualistener.sigMouseMove}}
Signal ''sigMouseRelease'' is emitted whenever the underlying widget receives a
@@ -451,7 +451,7 @@ separated by a vertical bar.
-== [QtLuaListener signal] sigEnter(bool) ==
+=== [QtLuaListener signal] sigEnter(bool) ===
{{anchor:qtlualistener.sigEnter}}
Signal ''sigEnter'' is emitted whenever the underlying widget receives an
@@ -462,7 +462,7 @@ or
The boolean argument indicates whether the mouse pointer has just
entered or left the widget area.
-== [QtLuaListener signal] sigFocus(bool) ==
+=== [QtLuaListener signal] sigFocus(bool) ===
{{anchor:qtlualistener.sigFocus}}
Signal ''sigEnter'' is emitted whenever the underlying widget receives
@@ -470,7 +470,7 @@ a [[http://doc.trolltech.com/4.4/qfocusevent.html|QFocusEvent]].
The boolean argument indicates whether the widget has just gained
or just lost the keyboard focus.
-== [QtLuaListener signal] sigShow(bool) ==
+=== [QtLuaListener signal] sigShow(bool) ===
{{anchor:qtlualistener.sigShow}}
Signal ''sigEnter'' is emitted whenever the underlying widget receives
@@ -480,13 +480,13 @@ The boolean argument indicates whether the widget has just been
shown or just been hidden.
-== [QtLuaListener signal] sigPaint() ==
+=== [QtLuaListener signal] sigPaint() ===
{{anchor:qtlualistener.sigPaint}}
Signal ''sigEnter'' is emitted whenever the underlying widget receives
a [[http://doc.trolltech.com/4.4/qpaintevent.html|QPaintEvent]].
-=== qt.QtLuaPainter ===
+==== qt.QtLuaPainter ====
{{anchor:qtluapainter}}
Painting in Qt is usually achieved using class
@@ -515,12 +515,12 @@ class [[http://doc.trolltech.com/4.4/qpainter.html|QPainter]]
accurately describes how the painter settings affects drawing operations.
-== qt.QtLuaPainter(...) ==
+=== qt.QtLuaPainter(...) ===
{{anchor:qtluapainter}}
Function ''qt.QtLuaPainter'' constructs a new ''QtLuaPainter'' instance.
-== ''qt.QtLuaPainter(qimage)'' ==
+=== ''qt.QtLuaPainter(qimage)'' ===
{{anchor:qtluapainter}}
Constructs a painter instance that targets an offscreen image.
@@ -530,7 +530,7 @@ passed as argument. Painting operations do not modify the image
passed as argument. Instead a copy of the current image can be
accessed using expression [[#paintergrab|painter:image()]].
-== ''qt.QtLuaPainter(filename, [format])'' ==
+=== ''qt.QtLuaPainter(filename, [format])'' ===
{{anchor:qtluapainter}}
Constructs a painter instance that targets an offscreen image
@@ -540,7 +540,7 @@ The file format is determined by the optional string
Use expression [[#paintergrab|painter.image()]] to
obtain a copy of the offscreen image.
-== ''qt.QtLuaPainter(w,h,[monoflag])'' ==
+=== ''qt.QtLuaPainter(w,h,[monoflag])'' ===
{{anchor:qtluapainter}}
Constructs a painter instance that targets an offscreen image
@@ -550,7 +550,7 @@ the image is a 32 bits RGBA image.
Use expression [[#paintergrab|painter.image()]] to
obtain a copy of the offscreen image.
-== ''qt.QtLuaPainter(qpixmap)'' ==
+=== ''qt.QtLuaPainter(qpixmap)'' ===
{{anchor:qtluapainter}}
Constructs a painter instance that targets a
@@ -564,7 +564,7 @@ the main thread, one must use [[..:qt:index#qt.qcall|qt.pcall]]
to ensure that painting operations are performed from the main thread.
Otherwise Qt prints a lot of warnings and behaves erratically.
-== ''qt.QtLuaPainter(qwidget,[buffered])'' ==
+=== ''qt.QtLuaPainter(qwidget,[buffered])'' ===
{{anchor:qtluapainter}}
Constructs a painter instance that targets the
@@ -592,7 +592,7 @@ Unbuffered widget painters are therefore difficult to use for painting;
they are mostly useful for grabbing the on-screen representation
of a widget using function [[#paintergrab|painter.image()]].
-== ''qt.QtLuaPainter(object)'' ==
+=== ''qt.QtLuaPainter(object)'' ===
{{anchor:qtluapainter}}
Constructs a painter instance that target the output
@@ -605,10 +605,10 @@ that indicates that the object is being destroyed.
Class [[#qtluaprinter|qt.QtLuaPrinter]] does all this.
-== QtLuaPainter Properties ==
+=== QtLuaPainter Properties ===
{{anchor:qtluapainter.properties}}
-== + painter.angleUnit ==
+=== + painter.angleUnit ===
{{anchor:qtluapainterangleunit}}
{{anchor:qtluapainter.angleUnit}}
@@ -619,7 +619,7 @@ The acceptable values are the strings ''"Degrees"'' and ''"Radians"''.
The default unit is the degree.
-== + painter.background ==
+=== + painter.background ===
{{anchor:qtluapainterbackground}}
{{anchor:qtluapainter.background}}
@@ -629,7 +629,7 @@ and the zero color of bitonal images.
The default background brush is an empty brush
meaning that these pixels are not painted at all.
-== + painter.brush ==
+=== + painter.brush ===
{{anchor:qtluapainterbrush}}
{{anchor:qtluapainter.painter}}
@@ -639,7 +639,7 @@ that determine how function [[#painterfill|painter:fill]]
fills shapes and how function [[#painterfill|painter:show]]
draws text.
-== + painter.clippath ==
+=== + painter.clippath ===
{{anchor:qtluapainterclippath}}
{{anchor:qtluapainter.clippath}}
@@ -650,7 +650,7 @@ of the current clipping region. Drawing operations
only modify pixels located within the clip region.
An empty path means that no clipping is performed.
-== + painter.compositionMode ==
+=== + painter.compositionMode ===
{{anchor:qtluapaintercompositionmode}}
{{anchor:qtluapainter.compositionMode}}
@@ -666,7 +666,7 @@ In particular printers often support only the default composition mode.
When a composition mode is not supported, the Qt library prints a warning.
-== + painter.depth ==
+=== + painter.depth ===
{{anchor:qtluapainterdepth}}
{{anchor:qtluapainter.depth}}
@@ -675,7 +675,7 @@ of the target surface for drawings.
A depth of ''1'' indicates a bitonal surface.
A depth of ''24'' or ''32'' indicates a true color surface.
-== + painter.font ==
+=== + painter.font ===
{{anchor:qtluapainterfont}}
{{anchor:qtluapainter.font}}
@@ -683,7 +683,7 @@ Property ''painter.font'' contient a Qt variant of class
[[..:qtgui:index#qfont|qt.QFont]] representing the font settings
used for drawing text.
-== + painter.height ==
+=== + painter.height ===
{{anchor:qtluapainterheight}}
{{anchor:qtluapainter.height}}
@@ -694,7 +694,7 @@ is not affected by the current transformation matrix.
It corresponds to the default coordinate system
set by [[#painterinitmatrix|painter:initmatrix]].
-== + painter.matrix ==
+=== + painter.matrix ===
{{anchor:qtluapaintermatrix}}
{{anchor:qtluapainter.matrix}}
@@ -703,7 +703,7 @@ Property ''painter.font'' contient a Qt variant of class
how coordinates passed to the path construction functions
are transformed into device depending coordinates.
-== + painter.path ==
+=== + painter.path ===
{{anchor:qtluapainterpath}}
{{anchor:qtluapainter.path}}
@@ -717,7 +717,7 @@ and [[#painterstroke|painter:stroke]].
The current path is modified by a rich collection
of path defining functions.
-== + painter.pen ==
+=== + painter.pen ===
{{anchor:qtluapainterpen}}
{{anchor:qtluapainter.pen}}
@@ -726,7 +726,7 @@ Property ''painter.pen'' contains a Qt variant of class
that determine how function [[#painterfill|painter:stroke]]
draws shapes.
-== + painter.point ==
+=== + painter.point ===
{{anchor:qtluapainterpoint}}
{{anchor:qtluapainter.point}}
@@ -737,7 +737,7 @@ are used and updated implicitely by the majority
of the path construction functions.
-== + painter.renderHints ==
+=== + painter.renderHints ===
{{anchor:qtluapainterrenderhints}}
{{anchor:qtluapainter.renderHints}}
@@ -748,7 +748,7 @@ the names of the active rendering flags (without the prefix ''QPainter::'')
separated with a vertical bar "''|''" symbolizing a boolean ''or'' operator.
-== + painter.styleSheet ==
+=== + painter.styleSheet ===
{{anchor:qtluapainterstylesheet}}
{{anchor:qtluapainter.styleSheet}}
@@ -757,7 +757,7 @@ that is used when drawing rich text with
function [[#paintershow|show]].
-== + painter.width ==
+=== + painter.width ===
{{anchor:qtluapainterwidth}}
{{anchor:qtluapainter.width}}
@@ -769,7 +769,7 @@ It corresponds to the default coordinate system
set by [[#painterinitmatrix|painter:initmatrix]].
-== QtLuaPainter Functions ==
+=== QtLuaPainter Functions ===
{{anchor:qtluapainterfunctions}}
Class ''QtLuaPainter'' provides a broad array of
@@ -779,7 +779,7 @@ Additional functions provide capabilities
that are unique to the Qt platform.
-== + painter:arc(x,y,r,angle1,angle2) ==
+=== + painter:arc(x,y,r,angle1,angle2) ===
{{anchor:qtluapainter.arc}}
Expression ''painter:arc(x,y,r,angle1,angle2)''
@@ -799,7 +799,7 @@ The default angle unit is the degree.
See also: PostScript operator ''arc''.
-== + painter:arcn(x,y,r,angle1,angle2) ==
+=== + painter:arcn(x,y,r,angle1,angle2) ===
{{anchor:qtluapainter.arcn}}
Expression ''painter:arcn(x,y,r,angle1,angle2)''
@@ -818,7 +818,7 @@ The default angle unit is the degree.
See also: PostScript operator ''arcn''.
-== + painter:arcto(x1,y1,x2,y2,r) ==
+=== + painter:arcto(x1,y1,x2,y2,r) ===
{{anchor:qtluapainter.arcto}}
Expression ''painter:arcto(x1,y1,x2,y2,r)''
@@ -834,7 +834,7 @@ The second endpoint becomes the new current point.
See also: PostScript operators ''arct'' and ''arcto''.
-== + painter:charpath(string) ==
+=== + painter:charpath(string) ===
{{anchor:qtluapainter.charpath}}
Expression ''painter:charpath(string)''
@@ -850,7 +850,7 @@ After calling this function, the current point is left unset.
See also: PostScript operators ''charpath''.
-== + painter:clip(optnewpath) ==
+=== + painter:clip(optnewpath) ===
{{anchor:painterclip}}
{{anchor:qtluapainter.clip}}
@@ -879,7 +879,7 @@ to restore the initial clip region.
See also: PostScript operator ''clip''.
-== + painter:close() ==
+=== + painter:close() ===
{{anchor:painterclose}}
{{anchor:qtluapainter.close}}
@@ -891,7 +891,7 @@ be closed before the underlying widget
or printer is destroyed.
-== + painter:closepath() ==
+=== + painter:closepath() ===
{{anchor:qtluapainter.closepath}}
Expression ''painter:closepath()''
@@ -911,7 +911,7 @@ the current point is left unset.
See also: PostScript operator ''closepath''.
-== + painter:concat(qtransform) ==
+=== + painter:concat(qtransform) ===
{{anchor:qtluapainter.concat}}
Expression ''painter:concat(qtransform)''
@@ -926,7 +926,7 @@ It is much easier to use functions
See also: PostScript operator ''concat''.
-== + painter:currentangleunit() ==
+=== + painter:currentangleunit() ===
{{anchor:qtluapainter.currentangleunit}}
Expression ''painter:currentangleunit()'' returns the
@@ -936,7 +936,7 @@ Possible values are strings ''"Degrees"'' and ''"Radians"''.
The default angle unit are degrees.
-== + painter:currentbackground() ==
+=== + painter:currentbackground() ===
{{anchor:qtluapainter.currentbackground}}
Expression ''painter:currentbackground()''
@@ -947,7 +947,7 @@ dashed line, text, or bitonal images.
The default is an empty brush.
-== + painter:currentbrush() ==
+=== + painter:currentbrush() ===
{{anchor:qtluapainter.currentbrush}}
Expression ''painter:currentbrush()''
@@ -957,14 +957,14 @@ used for filling path with [[#painterfill|painter:fill()]].
The default is an empty brush.
-== + painter:currentclip() ==
+=== + painter:currentclip() ===
{{anchor:qtluapainter.currentclip}}
Expression ''painter:currentclip()''
returns a [[..:qtgui:index#qpainterpath|QPainterPath]]
representing the [[#qtluapainterclippath|current clip region]].
-== + painter:currentcolor() ==
+=== + painter:currentcolor() ===
{{anchor:qtluapainter.currentcolor}}
Expression ''painter:currentcolor()''
@@ -974,7 +974,7 @@ of the color of the [[..:qtgui:index#qbrush|current brush]].
This numbers range from zero to one.
-== + painter:currentdash() ==
+=== + painter:currentdash() ===
{{anchor:qtluapainter.currentdash}}
Expression ''painter:currentdash()''
@@ -982,7 +982,7 @@ returns the dash pattern and the dash offset
of the [[#qtluapainterpen|current pen]].
-== + painter:currentfont() ==
+=== + painter:currentfont() ===
{{anchor:qtluapainter.currentfont}}
Expression ''painter:currentfont()''
@@ -990,7 +990,7 @@ returns a [[..:qtgui:index#qfont|QFont]]
describing the [[#qtluapainterfont|current font]]
for drawing text.
-== + painter:currentfontsize() ==
+=== + painter:currentfontsize() ===
{{anchor:qtluapainter.currentfontsize}}
Expression ''painter:currentfontsize()''
@@ -998,7 +998,7 @@ returns the size in points of the
[[#qtluapainterfont|current font]].
-== + painter:currenthints() ==
+=== + painter:currenthints() ===
{{anchor:qtluapainter.currenthints}}
Expression ''painter:currenthints()'' returns the
@@ -1006,28 +1006,28 @@ Expression ''painter:currenthints()'' returns the
controlling the quality of the drawings.
-== + painter:currentlinewidth() ==
+=== + painter:currentlinewidth() ===
{{anchor:qtluapainter.currentlinewidth}}
Expression ''painter:currentlinewidth()'' returns
the line width associated with the
[[#qtluapainterpen|current pen]].
-== + painter:currentmatrix() ==
+=== + painter:currentmatrix() ===
{{anchor:qtluapainter.currentmatrix}}
Expression ''painter:currentmatrix()'' returns a Qt variant of class
[[..:qtgui:index#qtransform|qt.QTransform]] representing the
[[#qtluapaintermatrix|current transformation matrix]].
-== + painter:currentmode() ==
+=== + painter:currentmode() ===
{{anchor:qtluapainter.currentmode}}
Expression ''painter:currentmode()'' returns a string representing the
[[#qtluapaintercompositionmode|current composition mode]].
-== + painter:currentpath() ==
+=== + painter:currentpath() ===
{{anchor:qtluapainter.currentpath}}
Expression ''painter:currentpath()'' returns a Qt variant of class
@@ -1035,7 +1035,7 @@ Expression ''painter:currentpath()'' returns a Qt variant of class
[[#qtluapainterpath|current path]].
-== + painter:currentpen() ==
+=== + painter:currentpen() ===
{{anchor:qtluapainter.currentpen}}
Expression ''painter:currentpath()'' returns a Qt variant of class
@@ -1043,7 +1043,7 @@ Expression ''painter:currentpath()'' returns a Qt variant of class
[[#qtluapainterpen|current pen]].
-== + painter:currentpoint() ==
+=== + painter:currentpoint() ===
{{anchor:qtluapainter.currentpoint}}
Expression ''painter:currentpoint()'' returns two numbers
@@ -1051,7 +1051,7 @@ representing the coordinates of the
[[#qtluapainterpoint|current point]].
-== + painter:currentsize() ==
+=== + painter:currentsize() ===
{{anchor:paintercurrentsize}}
{{anchor:qtluapainter.currentsize}}
@@ -1063,7 +1063,7 @@ They correspond to the default coordinate system
sets by [[#painterinitmatrix|painter:initmatrix]].
-== + painter:currentstylesheet() ==
+=== + painter:currentstylesheet() ===
{{anchor:paintercurrentstylesheet}}
{{anchor:qtluapainter.currentstylesheet}}
@@ -1073,7 +1073,7 @@ used by function [[#paintershow|show]] for
displaying rich text.
-== + painter:curveto(x1,y1,x2,y2,x3,y3) ==
+=== + painter:curveto(x1,y1,x2,y2,x3,y3) ===
{{anchor:paintercurveto}}
{{anchor:qtluapainter.curveto}}
@@ -1089,7 +1089,7 @@ when the current point is not set
See also: PostScript operator ''curveto''.
-== + painter:device() ==
+=== + painter:device() ===
{{anchor:painterdevice}}
{{anchor:qtluapainter.device}}
@@ -1102,7 +1102,7 @@ is represented by a Qt variant of type =QPaintDevice*=.
This is not very useful in Lua.
-== + painter:eoclip(optnewpath) ==
+=== + painter:eoclip(optnewpath) ===
{{anchor:paintereoclip}}
{{anchor:qtluapainter.eoclip}}
@@ -1114,7 +1114,7 @@ instead of the winding rule.
-== + painter:eofill(optnewpath) ==
+=== + painter:eofill(optnewpath) ===
{{anchor:paintereofill}}
{{anchor:qtluapainter.eofill}}
@@ -1126,7 +1126,7 @@ instead of the winding rule.
See also: PostScript operator ''eofill''.
-== + painter:fill(optnewpath) ==
+=== + painter:fill(optnewpath) ===
{{anchor:painterfill}}
{{anchor:qtluapainter.fill}}
@@ -1145,7 +1145,7 @@ See function [[#paintereofill|painter:eofill]] for an alternative.
See also: PostScript operator ''fill''.
-== + painter:gbegin() ==
+=== + painter:gbegin() ===
{{anchor:paintergbegin}}
{{anchor:qtluapainter.gbegin}}
@@ -1157,7 +1157,7 @@ usually postponed until the last call to ''painter:gend''.
This is useful for implementing smooth transitions
between successive drawings.
-== + painter:gend([invalidate]) ==
+=== + painter:gend([invalidate]) ===
{{anchor:paintergend}}
{{anchor:qtluapainter.gend}}
@@ -1177,7 +1177,7 @@ the underlying ''QPainter'' object without
using the ''QtLuaPainter'' functions.
-== + painter:grestore() ==
+=== + painter:grestore() ===
{{anchor:paintergrestore}}
{{anchor:qtluapainter.grestore}}
@@ -1192,7 +1192,7 @@ remain unchanged.
-== + painter:gsave() ==
+=== + painter:gsave() ===
{{anchor:paintergsave}}
{{anchor:qtluapainter.gsave}}
@@ -1207,7 +1207,7 @@ to bracket code segments that perform some rendering
in order to ensure that the painter settings
remain unchanged.
-== + painter:image() ==
+=== + painter:image() ===
{{anchor:paintergrab}}
{{anchor:qtluapainter.image}}
@@ -1226,7 +1226,7 @@ Note that this function must be invoked without arguments.
Otherwise see the documentation for [[#painterblit|painter:image(...)]].
-== + painter:image(x,y,[w,h],image,[sx,sy,[sw,sh]]) ==
+=== + painter:image(x,y,[w,h],image,[sx,sy,[sw,sh]]) ===
{{anchor:painterblit}}
{{anchor:qtluapainter.image}}
@@ -1262,7 +1262,7 @@ Otherwise see the documentation for [[#paintergrab|painter:image()]].
See also: PostScript operator ''image''.
-== + painter:initclip() ==
+=== + painter:initclip() ===
{{anchor:painterinitclip}}
{{anchor:qtluapainter.initclip}}
@@ -1277,7 +1277,7 @@ by a subsequent drawing operation.
See also: PostScript operator ''initclip''.
-== + painter:initgraphics() ==
+=== + painter:initgraphics() ===
{{anchor:painterinitgraphics}}
{{anchor:qtluapainter.initgraphics}}
@@ -1299,7 +1299,7 @@ After calling this function:
See also: PostScript operator ''initgraphics''.
-== + painter:initmatrix() ==
+=== + painter:initmatrix() ===
{{anchor:painterinitmatrix}}
{{anchor:qtluapainter.initmatrix}}
@@ -1315,7 +1315,7 @@ on most devices.
See also: PostScript operator ''initmatrix''.
-== + painter:lineto(x,y) ==
+=== + painter:lineto(x,y) ===
{{anchor:qtluapainter.lineto}}
Expression ''painter:lineto(x,y)'' appends
@@ -1331,7 +1331,7 @@ when the current point is not set
See also: PostScript operator ''lineto''.
-== + painter:moveto(x,y) ==
+=== + painter:moveto(x,y) ===
{{anchor:qtluapainter.moveto}}
Expression ''painter:moveto(x,y)'' terminates the
@@ -1341,7 +1341,7 @@ the current point to coordinates ''(x,y)''.
See also: PostScript operator ''moveto''.
-== + painter:newpath() ==
+=== + painter:newpath() ===
{{anchor:painternewpath }}
{{anchor:qtluapainter.newpath}}
@@ -1350,7 +1350,7 @@ After calling this function, the current point is left unset.
See also: PostScript operator ''newpath''.
-== + painter:object() ==
+=== + painter:object() ===
{{anchor:painterobject}}
{{anchor:qtluapainter.object}}
@@ -1361,7 +1361,7 @@ Typical return values are instance of class
[[#qtluaprinter|qt.QtLuaPrinter]].
-== + painter:painter() ==
+=== + painter:painter() ===
{{anchor:painterpainter}}
{{anchor:qtluapainter.painter}}
@@ -1373,7 +1373,7 @@ is neither a Qt variant not a Qt object, this pointer
is represented by a Qt variant of type =QPainter*=.
-== + painter:pixmap() ==
+=== + painter:pixmap() ===
{{anchor:painterpixmap}}
{{anchor:qtluapainter.pixmap}}
@@ -1387,7 +1387,7 @@ as a pixmap, for instance a printer,
this function returns an empty pixmap for which method
[[..:qt:index#qt.tobool|tobool]] returns ''false''.
-== + painter:printer() ==
+=== + painter:printer() ===
{{anchor:qtluapainter.printer}}
Expression ''painter:printer()'' returns a pointer
@@ -1399,7 +1399,7 @@ is represented by a Qt variant of type =QPrinter*=.
-== + painter:rcurveto(x1,y1,x2,y2,x3,y3) ==
+=== + painter:rcurveto(x1,y1,x2,y2,x3,y3) ===
{{anchor:qtluapainter.rcurveto}}
This is similar to calling function
@@ -1418,7 +1418,7 @@ when the current point is not set.
See also: PostScript operator ''rcurveto''.
-== + painter:rect() ==
+=== + painter:rect() ===
{{anchor:qtluapainter.rect}}
Expression ''painter:rect()'' returns a Qt variant
@@ -1434,7 +1434,7 @@ or properties [[#qtluapainterwidth|painter.width]]
and [[#qtluapainterheight|painter.height]].
-== + painter:rectangle(x,y,w,h) ==
+=== + painter:rectangle(x,y,w,h) ===
{{anchor:qtluapainter.rectangle}}
Expression ''painter:rectangle(x,y,w,h)''
@@ -1447,7 +1447,7 @@ the current point is left unset.
-== + painter:refresh() ==
+=== + painter:refresh() ===
{{anchor:qtluapainter.refresh}}
Expression ''painter:refresh()'' immediately
@@ -1458,7 +1458,7 @@ regardless of the nesting count of functions
-== + painter:rlineto(rx,ry) ==
+=== + painter:rlineto(rx,ry) ===
{{anchor:qtluapainter.rlineto}}
Expression ''painter:lineto(x,y)'' appends a line segment
@@ -1472,7 +1472,7 @@ when the current point is not set
See also: PostScript operator ''rlineto''.
-== + painter:rmoveto(rx,ry) ==
+=== + painter:rmoveto(rx,ry) ===
{{anchor:qtluapainter.rmoveto}}
Expression ''painter:moveto(x,y)'' terminates the
@@ -1486,7 +1486,7 @@ when the current point is not set
See also: PostScript operator ''rmoveto''.
-== + painter:rotate(angle) ==
+=== + painter:rotate(angle) ===
{{anchor:painterrotate}}
{{anchor:qtluapainter.rotate}}
@@ -1502,7 +1502,7 @@ The default angle unit is the degree.
See also: PostScript operator ''rotate''.
-== + painter:scale(sx,sy) ==
+=== + painter:scale(sx,sy) ===
{{anchor:painterscale}}
{{anchor:qtluapainter.scale}}
@@ -1514,7 +1514,7 @@ the orientation of the axes are unaffected.
See also: PostScript operator ''scale''.
-== + painter:setangleunit(unit) ==
+=== + painter:setangleunit(unit) ===
{{anchor:paintersetangleunit}}
{{anchor:qtluapainter.setangleunit}}
@@ -1529,7 +1529,7 @@ or ''"Radians"'' for expressing angles in radians.
The default angle unit is the degree.
-== + painter:setbackground(brush) ==
+=== + painter:setbackground(brush) ===
{{anchor:qtluapainter.setbackground}}
Expression ''painter:setbackground(brush)'' sets the
@@ -1537,7 +1537,7 @@ Expression ''painter:setbackground(brush)'' sets the
Argument ''brush'' must be a Qt variant of type
[[..:qtgui:index#qbrush|qt.QBrush]].
-== + painter:setbrush(brush) ==
+=== + painter:setbrush(brush) ===
{{anchor:qtluapainter.setbrush}}
Expression ''painter:setbrush(brush)'' sets the
@@ -1545,7 +1545,7 @@ Expression ''painter:setbrush(brush)'' sets the
Argument ''brush'' must be a Qt variant of type
[[..:qtgui:index#qbrush|qt.QBrush]].
-== + painter:setclip(qpainterpath) ==
+=== + painter:setclip(qpainterpath) ===
{{anchor:qtluapainter.setclip}}
Expression ''painter:setclip(qpainterpath)'' sets the
@@ -1555,7 +1555,7 @@ Argument ''brush'' must be a Qt variant of type
[[..:qtgui:index#qpainterpath|qt.QPainterPath]].
-== + painter:setcolor(...) ==
+=== + painter:setcolor(...) ===
{{anchor:qtluapainter.setcolor}}
Function ''painter:setcolor'' sets the color of both the
@@ -1585,7 +1585,7 @@ representing the intensities of the red, green, blue, and alpha channels.
The default value for argument ''a'' is ''1'' for a fully opaque color.
-== + painter:setdash([sizes,[offset]]) ==
+=== + painter:setdash([sizes,[offset]]) ===
{{anchor:qtluapainter.setdash}}
Function ''painter:setdash'' changes the
@@ -1607,7 +1607,7 @@ The optional argument ''offset'' is a length
representing the starting position of the dash sequence.
-== + painter:setfont(qfont) ==
+=== + painter:setfont(qfont) ===
{{anchor:qtluapainter.setfont}}
Expression ''painter:setfont(qfont)'' sets the
@@ -1615,7 +1615,7 @@ Expression ''painter:setfont(qfont)'' sets the
Argument ''font'' must be a Qt variant of type
[[..:qtgui:index#qfont|qt.QFont]].
-== + painter:setfontsize(size) ==
+=== + painter:setfontsize(size) ===
{{anchor:qtluapainter.setfontsize}}
Expression ''painter:setfontsize(size)'' changes the size
@@ -1623,7 +1623,7 @@ of the [[#qtluapainterfont|current font]].
Argument ''size'' must be a positive number.
-== + painter:sethints(hints) ==
+=== + painter:sethints(hints) ===
{{anchor:qtluapainter.sethints}}
Expression ''painter:sethints(hints)'' sets the
@@ -1634,14 +1634,14 @@ a concatenation of the names of the active
separated with a vertical bar "''|''".
-== + painter:setlinewidth(lw) ==
+=== + painter:setlinewidth(lw) ===
{{anchor:qtluapainter.setlinewidth}}
Expression ''painter:setlinewidth(lw)'' changes the line width
of the [[#qtluapainterpen|current pen]].
Argument ''lw'' must be a positive number.
-== + painter:setmatrix(qtransform) ==
+=== + painter:setmatrix(qtransform) ===
{{anchor:qtluapainter.setmatrix}}
Expression ''painter:setmatrix(qtransform)'' sets the
@@ -1650,7 +1650,7 @@ Argument ''qtransform'' must be a Qt variant of type
[[..:qtgui:index#qtransform|qt.QTransform]].
-== + painter:setmode(compositionmode) ==
+=== + painter:setmode(compositionmode) ===
{{anchor:qtluapainter.setmode}}
Expression ''painter:setmode(compositionmode)'' sets the
@@ -1660,7 +1660,7 @@ Argument ''compositionmode'' must be a string containing the name of a
[[http://doc.trolltech.com/4.4/qpainter.html#CompositionMode-enum|composition mode]].
-== + painter:setpath(qpainterpath) ==
+=== + painter:setpath(qpainterpath) ===
{{anchor:qtluapainter.setpath}}
Expression ''painter:setpath(qpainterpath)'' sets the
@@ -1669,7 +1669,7 @@ Argument ''qpainterpath'' must be a Qt variant of type
[[..:qtgui:index#qpainterpath|qt.QPainterPath]].
-== + painter:setpattern(pattern,[x,y]) ==
+=== + painter:setpattern(pattern,[x,y]) ===
{{anchor:qtluapainter.setpattern}}
Expression ''painter:setpattern(pattern,[x,y])''
@@ -1689,7 +1689,7 @@ The optional arguments ''x'' and ''y'' specify
the origin of the pattern in the source image.
-== + painter:setpen(qpen) ==
+=== + painter:setpen(qpen) ===
{{anchor:qtluapainter.setpen}}
Expression ''painter:setpen(qpen)'' sets the
@@ -1698,7 +1698,7 @@ Argument ''qpen'' must be a Qt variant of type
[[..:qtgui:index#qpen|qt.QPen]].
-== + painter:setpoint(x,y) ==
+=== + painter:setpoint(x,y) ===
{{anchor:qtluapainter.setpoint}}
Expression ''painter:setpoint(x,y)'' sets the
@@ -1706,7 +1706,7 @@ Expression ''painter:setpoint(x,y)'' sets the
Arguments ''x'' and ''y'' must be valid numbers.
-== + painter:setstylesheet(s) ==
+=== + painter:setstylesheet(s) ===
{{anchor:qtluapainter.setstylesheet}}
Expression ''painter:setstylesheet(s)'' sets the
@@ -1716,7 +1716,7 @@ displaying rich text.
-== + painter:show(string,[x,y,w,h,textflags]) ==
+=== + painter:show(string,[x,y,w,h,textflags]) ===
{{anchor:paintershow}}
{{anchor:qtluapainter.show}}
@@ -1765,7 +1765,7 @@ to specify more complicated formats.
See also: PostScript operator ''show''.
-== + painter:showpage() ==
+=== + painter:showpage() ===
{{anchor:qtluapainter.showpage}}
Expression ''painter:showpage()''
@@ -1781,7 +1781,7 @@ unless some drawing operation is performed on each page.
See also: PostScript operator ''showpage''.
-== + painter:size() ==
+=== + painter:size() ===
{{anchor:qtluapainter.size}}
Expression ''painter:size()'' returns a Qt variant
@@ -1796,7 +1796,7 @@ using function [[#paintercurrentsize|painter:currentsize()]]
or properties [[#qtluapainterwidth|painter.width]]
and [[#qtluapainterheight|painter.height]].
-== + painter:stringrect(string,[x,y,w,h,textflags]) ==
+=== + painter:stringrect(string,[x,y,w,h,textflags]) ===
{{anchor:qtluapainter.stringrect}}
Function ''painter:stringrect'' returns a Qt variant of type
@@ -1806,7 +1806,7 @@ by calling function [[#paintershow|painter:show]]
with the same arguments.
-== + painter:stringwidth(string) ==
+=== + painter:stringwidth(string) ===
{{anchor:qtluapainter.stringwidth}}
Fonction ''painter:stringwidth'' returns
@@ -1817,7 +1817,7 @@ by expression [[#paintershow|show(string)]].
See also: PostScript operator ''stringwidth''.
-== + painter:stroke(optnewpath) ==
+=== + painter:stroke(optnewpath) ===
{{anchor:painterstroke}}
{{anchor:qtluapainter.stroke}}
@@ -1832,7 +1832,7 @@ The default is to reset the current path.
See also: PostScript operator ''stroke''.
-== + painter:translate(dx,dy) ==
+=== + painter:translate(dx,dy) ===
{{anchor:paintertranslate}}
{{anchor:qtluapainter.translate}}
@@ -1843,7 +1843,7 @@ the orientation of the axes are unaffected.
See also: PostScript operator ''translate''.
-== + painter:widget() ==
+=== + painter:widget() ===
{{anchor:qtluapainter.widget}}
Expression ''painter:widget()'' returns the Qt object of class
@@ -1852,7 +1852,7 @@ When the painter is not associated with a widget,
this expression returns ''nil''.
-== + painter:write(f,[format]) ==
+=== + painter:write(f,[format]) ===
{{anchor:qtluapainter.write}}
Expression ''painter:write(f)'' saves the image
@@ -1867,7 +1867,7 @@ deduced from the file name extension.
-=== qt.QtLuaPrinter ===
+==== qt.QtLuaPrinter ====
{{anchor:qtluaprinter}}
Printing in Qt is usually achieved using class
@@ -1891,7 +1891,7 @@ Alternatively, function ''printer:setup()'' pops a print dialog
that lets the user adjust these properties interactively.
-== qt.QtLuaPrinter([mode]) ==
+=== qt.QtLuaPrinter([mode]) ===
{{anchor:qtluaprinternew}}
{{anchor:qtluaprinter}}
@@ -1909,7 +1909,7 @@ creating the [[#qtluapainter|qt.QtLuaPainter]]
that will peform the drawings.
-== printer:abort() ==
+=== printer:abort() ===
{{anchor:qtluaprinter.abort}}
Expression ''printer:abort()'' aborts the current print run.
@@ -1918,40 +1918,40 @@ Property [[#printerprinterstate|printer.printerState]]
will then be ''"Aborted"''.
It is not always possible to abort a print job.
-== printer.collateCopies ==
+=== printer.collateCopies ===
{{anchor:qtluaprinter.collateCopies}}
Boolean property ''printer.collateCopies'' specifies
if collation is turned on when multiple copies is selected.
-== printer.colorMode ==
+=== printer.colorMode ===
{{anchor:qtluaprinter.colorMode}}
Boolean property ''printer.colorMode'' is ''true''
when one prints in color (the default) and ''false''
when one prints in gray scale.
-== printer.creator ==
+=== printer.creator ===
{{anchor:qtluaprinter.creator}}
Property ''printer.creator'' is a string containing
the name of the application producing the printout.
This information is passed to the print spooling system.
-== printer.docName ==
+=== printer.docName ===
{{anchor:qtluaprinter.docName}}
Property ''printer.creator'' is a string containing
the name of the document being printed.
This information is passed to the print spooling system
-== printer.doubleSidedPrinting ==
+=== printer.doubleSidedPrinting ===
{{anchor:qtluaprinter.doubleSidedPrinting}}
Boolean property ''printer.doubleSidedPrinting''
indicates whether double sided printing is requested.
-== printer.fontEmbeddingEnabled ==
+=== printer.fontEmbeddingEnabled ===
{{anchor:qtluaprinter.fontEmbeddingEnabled}}
Boolean property ''printer.fontEmbeddingEnabled'' indicates
@@ -1959,14 +1959,14 @@ whether the output data should embed a font description.
This is ''true'' by default.
-== printer.fromPage ==
+=== printer.fromPage ===
{{anchor:qtluaprinter.fromPage}}
Readonly numerical property ''printer.fromPage''
contains the index of the first page to print.
Use function [[#printersetfromto|printer:setFromTo]] to change it.
-== printer.fullPage ==
+=== printer.fullPage ===
{{anchor:qtluaprinter.fullPage}}
Setting boolean property ''printer.fullPage'' to ''true''
@@ -1974,7 +1974,7 @@ enables support for painting over the entire page.
Otherwise painting is restricted to the printable area
reported by the device.
-== printer.landscape ==
+=== printer.landscape ===
{{anchor:qtluaprinter.landscape}}
Setting boolean property ''printer.landscape'' to ''true''
@@ -1982,7 +1982,7 @@ sets the printout in landscape mode.
Otherwise printing happens in portrait mode.
-== printer:newPage() ==
+=== printer:newPage() ===
{{anchor:qtluaprinter.newPage}}
Expression ''printer:newPage()''
@@ -1990,7 +1990,7 @@ tells the printer to eject the current page and
to continue printing on a new page.
Returns ''true'' if this was successful.
-== printer.numCopies ==
+=== printer.numCopies ===
{{anchor:qtluaprinter.numCopies}}
Property ''printer.numCopies'' contains the number of copies to be printed.
@@ -2004,7 +2004,7 @@ On Windows, Mac OS X and X11 systems that support CUPS,
reading property ''printer.numCopies'' always return 1 because these systems
internally handle the number of copies.
-== printer.outputFileName ==
+=== printer.outputFileName ===
{{anchor:printeroutputfilename}}
{{anchor:qtluaprinter.outputFileName}}
@@ -2013,7 +2013,7 @@ string indicates that printing should be redirected
to the specified file.
-== printer.outputFormat ==
+=== printer.outputFormat ===
{{anchor:printeroutputformat}}
{{anchor:qtluaprinter.outputFormat}}
@@ -2023,7 +2023,7 @@ Recognized values are ''"PdfFormat"'', ''"PostScriptFormat"'',
and ''"NativeFormat"''.
-== printer.pageRect ==
+=== printer.pageRect ===
{{anchor:printerpagerect}}
{{anchor:qtluaprinter.pageRect}}
@@ -2040,7 +2040,7 @@ This coordinate system is not related the
the drawing coordinate system.
-== printer.pageSize ==
+=== printer.pageSize ===
{{anchor:printerpagesize}}
{{anchor:qtluaprinter.pageSize}}
@@ -2062,7 +2062,7 @@ When using an earlier version of Qt,
setting this property to ''"Custom"'' does nothing.
-== printer.paperRect ==
+=== printer.paperRect ===
{{anchor:printerpaperrect}}
{{anchor:qtluaprinter.paperRect}}
@@ -2077,7 +2077,7 @@ and with units specified according to
This coordinate system is not related the
the drawing coordinate system.
-== printer.paperSize ==
+=== printer.paperSize ===
{{anchor:printerpapersize}}
{{anchor:qtluaprinter.paperSize}}
@@ -2097,7 +2097,7 @@ is equal to ''"Custom"'', property ''printer.paperSize''
also specifies the size of the image described
by the output file.
-== printer:printer() ==
+=== printer:printer() ===
{{anchor:printerprinter}}
{{anchor:qtluaprinter.printer}}
@@ -2105,7 +2105,7 @@ Returns a pointer to the real ''QPrinter'' object
which is a subclass of ''QPaintDevice''.
-== printer.printProgram ==
+=== printer.printProgram ===
{{anchor:qtluaprinter.printProgram}}
Setting string property ''printer.printProgram'' overrides
@@ -2113,7 +2113,7 @@ the name of the program used to submit the printout
to the spooling system.
-== printer.printerName ==
+=== printer.printerName ===
{{anchor:printerprintername}}
{{anchor:qtluaprinter.printerName}}
@@ -2123,7 +2123,7 @@ This value is initially set to the name of the
default printer for your system.
-== printer.printerState ==
+=== printer.printerState ===
{{anchor:printerprinterstate}}
{{anchor:qtluaprinter.printerState}}
@@ -2133,7 +2133,7 @@ Possible values are ''Idle'', ''Active'', ''Aborted'' and ''Error''.
That does not work on all systems.
-== printer.resolution ==
+=== printer.resolution ===
{{anchor:printerresolution}}
{{anchor:qtluaprinter.resolution}}
@@ -2149,7 +2149,7 @@ when property [[#printerpapersize|printer.papersize]]
does not contain a valid size.
-== printer:setFromTo(frompage,topage) ==
+=== printer:setFromTo(frompage,topage) ===
{{anchor:printersetfromto}}
{{anchor:qtluaprinter.setFromTo}}
@@ -2158,7 +2158,7 @@ specifies the indices of the page range to print.
If both ''frompage'' and ''topage'' are zero (the default),
the whole document is printed.
-== printer:setup([parentwidget]) ==
+=== printer:setup([parentwidget]) ===
{{anchor:qtluaprinter.setup}}
Expression ''printer:setup()'' displays a dialog
@@ -2167,7 +2167,7 @@ and select various print settings.
It returns ''true'' if the user presses the button "Print"
and ''false'' if the user cancels.
-== printer.toPage ==
+=== printer.toPage ===
{{anchor:qtluaprinter.toPage}}
Readonly numerical property ''printer.toPage''