From 52c050dd0ff72f7399cb1bd743d20c7d447e094b Mon Sep 17 00:00:00 2001 From: Noldor Date: Tue, 23 Jan 2007 16:31:02 +0000 Subject: added new buttongroup classes,dcc.setBandwidthLimit; fixed/removed some old code, added doc to dynamictooltips git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@234 17fca916-40b9-46aa-a4ea-0a15b648b75c --- src/modules/objects/class_multilineedit.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/modules/objects/class_multilineedit.cpp') diff --git a/src/modules/objects/class_multilineedit.cpp b/src/modules/objects/class_multilineedit.cpp index d4fb3c534..f836980d7 100644 --- a/src/modules/objects/class_multilineedit.cpp +++ b/src/modules/objects/class_multilineedit.cpp @@ -81,20 +81,20 @@ static int mod_cod[] = { ommited, the line is put at end. !fn: $removeLine() Removes line number . - !fn: $insertAt(, , ) + !fn: $insertAt(, , ) Inserts txt at line number line, after character number col in the line. If txt contains newline characters, new lines are inserted. !fn: $numLines() Returns number of lines in the widget. - !fn: $setCursorPosition(, , ) + !fn: $setCursorPosition(, , ) Sets the cursor position to character number col in line number line. The parameters are adjusted to lie within the legal range.[br] If mark is 1, the selection is cleared. otherwise it is extended !fn: $cursorPosition() - Returns current cursor position in ", " format. + Returns current cursor position in ", " format. !fn: $setReadOnly() Sets the editor to be read-only if bReadOnly is 1 or removes the read-only status is ReadOnly is 0 @@ -395,12 +395,12 @@ bool KviKvsObject_mledit::functionRemoveLine(KviKvsObjectFunctionCall *c) bool KviKvsObject_mledit::functionInsertAt(KviKvsObjectFunctionCall *c) { - kvs_int_t iLine,iCol; + kvs_uint_t iLine,iCol; QString szInsert; KVSO_PARAMETERS_BEGIN(c) KVSO_PARAMETER("text",KVS_PT_STRING,0,szInsert) - KVSO_PARAMETER("line",KVS_PT_INT,0,iLine) - KVSO_PARAMETER("col",KVS_PT_INT,0,iCol) + KVSO_PARAMETER("line",KVS_PT_UNSIGNEDINTEGER,0,iLine) + KVSO_PARAMETER("col",KVS_PT_UNSIGNEDINTEGER,0,iCol) KVSO_PARAMETERS_END(c) if(!widget())return true; if(iLine < 0 || iCol < 0 || iLine > ((QMultiLineEdit *)widget())->numLines()) @@ -421,7 +421,7 @@ bool KviKvsObject_mledit::functionSetCursorPosition(KviKvsObjectFunctionCall *c) { bool bFlag; - kvs_int_t iLine,iCol; + kvs_uint_t iLine,iCol; KVSO_PARAMETERS_BEGIN(c) KVSO_PARAMETER("line",KVS_PT_UNSIGNEDINTEGER,0,iLine) KVSO_PARAMETER("col",KVS_PT_UNSIGNEDINTEGER,0,iCol) @@ -524,7 +524,7 @@ bool KviKvsObject_mledit::functionLength(KviKvsObjectFunctionCall *c) bool KviKvsObject_mledit::functionSetMaxLines(KviKvsObjectFunctionCall *c) { - kvs_int_t imaxLines; + kvs_uint_t imaxLines; KVSO_PARAMETERS_BEGIN(c) KVSO_PARAMETER("max_lines",KVS_PT_UNSIGNEDINTEGER,0,imaxLines) KVSO_PARAMETERS_END(c) @@ -842,12 +842,12 @@ bool KviKvsObject_mledit::functionsetColor(KviKvsObjectFunctionCall *c) bool KviKvsObject_mledit::functionsetPointSize(KviKvsObjectFunctionCall *c) { - kvs_int_t iPointSize; + kvs_uint_t uPointSize; KVSO_PARAMETERS_BEGIN(c) - KVSO_PARAMETER("point_size",KVS_PT_UNSIGNEDINTEGER,0,iPointSize) + KVSO_PARAMETER("point_size",KVS_PT_UNSIGNEDINTEGER,0,uPointSize) KVSO_PARAMETERS_END(c) if (widget()) - ((QMultiLineEdit *)widget())->setPointSize(iPointSize); + ((QMultiLineEdit *)widget())->setPointSize(uPointSize); return true; } -- cgit v1.3.1-10-gc9f91