summaryrefslogtreecommitdiffstats
path: root/src/modules/objects/class_listviewitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/objects/class_listviewitem.cpp')
-rw-r--r--src/modules/objects/class_listviewitem.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/modules/objects/class_listviewitem.cpp b/src/modules/objects/class_listviewitem.cpp
index 31df9020..0834796c 100644
--- a/src/modules/objects/class_listviewitem.cpp
+++ b/src/modules/objects/class_listviewitem.cpp
@@ -46,7 +46,7 @@
The listviewitem class implements a list view item.
A list view item is a multi-column object capable of displaying itself in a [class]listview[/class].
To use this class you must instantiate it with another listviewitem or a [class]listview[/class]
- as parent. The item will be automatically displayed.
+ as tqparent. The item will be automatically displayed.
You can set the text and a pixmap in each column and you can make it checkable
with [classfnc:listviewitem]$setCheckable[/classfnc]().
A checkable listviewitem will display a small check mark in the first column.
@@ -71,7 +71,7 @@
Returns $true if this item is enabled and $false otherwise
!fn: $setOpen(<bOpen:boolean>)
- Opens or closes the item to show its children items
+ Opens or closes the item to show its tqchildren items
!fn: $isOpen()
Returns the open state of this item
@@ -80,7 +80,7 @@
Makes this item checkable or not. This function should be called immediately
after the item creation: changing this property later at runtime may have
strange results (like the item being moved inside the list, text disappearing,
- hidden children etc... don't do it :D ).
+ hidden tqchildren etc... don't do it :D ).
!fn: $isCheckable()
Returns $true if this item is checkable and $false otherwise
@@ -94,7 +94,7 @@
have been previously called.
!fn: <listviewitem> $firstChild()
- Returns the first child item of this listviewitem or $null if this item has no children.
+ Returns the first child item of this listviewitem or $null if this item has no tqchildren.
!fn: <listviewitem> $nextSibling()
Returns the next sibling item of this listviewitem or $null if there are no sibling items.
@@ -137,19 +137,19 @@ KVSO_END_CONSTRUCTOR(KviKvsObject_listviewitem)
bool KviKvsObject_listviewitem::init(KviKvsRunTimeContext * pContext,KviKvsVariantList *pParams)
{
- if (!parentObject())
+ if (!tqparentObject())
{
- pContext->error(__tr2qs("The listviewitem cannot be parentless"));
+ pContext->error(__tr2qs("The listviewitem cannot be tqparentless"));
return false;
}
- if(parentObject()->inherits("KviKvsObject_listviewitem"))
+ if(tqparentObject()->inherits("KviKvsObject_listviewitem"))
{
- m_pListViewItem = new KviKvsMdmStandardListViewItem(this,((KviKvsObject_listviewitem *)parentObject())->m_pListViewItem);
+ m_pListViewItem = new KviKvsMdmStandardListViewItem(this,((KviKvsObject_listviewitem *)tqparentObject())->m_pListViewItem);
} else {
- if(parentObject()->inherits("KviKvsObject_listview"))
- m_pListViewItem = new KviKvsMdmStandardListViewItem(this,((KviTalListView *)parentScriptWidget()));
+ if(tqparentObject()->inherits("KviKvsObject_listview"))
+ m_pListViewItem = new KviKvsMdmStandardListViewItem(this,((KviTalListView *)tqparentScriptWidget()));
else {
- pContext->error(__tr2qs("The parent of the listviewitem must be either another listviewitem or a listview"));
+ pContext->error(__tr2qs("The tqparent of the listviewitem must be either another listviewitem or a listview"));
return false;
}
}
@@ -181,12 +181,12 @@ KviKvsMdmStandardListViewItem::~KviKvsMdmStandardListViewItem()
KviKvsMdmCheckListViewItem::KviKvsMdmCheckListViewItem(KviKvsObject_listviewitem * ob,KviTalListView * par)
-:KviTalCheckListItem(par,QString::null,KviTalCheckListItem::CheckBox), m_pMasterObject(ob)
+:KviTalCheckListItem(par,TQString(),KviTalCheckListItem::CheckBox), m_pMasterObject(ob)
{
}
KviKvsMdmCheckListViewItem::KviKvsMdmCheckListViewItem(KviKvsObject_listviewitem * ob,KviTalListViewItem * par)
-:KviTalCheckListItem(par,QString::null,KviTalCheckListItem::CheckBox), m_pMasterObject(ob)
+:KviTalCheckListItem(par,TQString(),KviTalCheckListItem::CheckBox), m_pMasterObject(ob)
{
}
@@ -210,7 +210,7 @@ kvs_hobject_t KviKvsObject_listviewitem::itemToHandle(KviTalListViewItem * it)
bool KviKvsObject_listviewitem::function_setText(KviKvsObjectFunctionCall *c)
{
kvs_uint_t uCol;
- QString szText;
+ TQString szText;
KVSO_PARAMETERS_BEGIN(c)
KVSO_PARAMETER("column",KVS_PT_UNSIGNEDINTEGER,0,uCol)
KVSO_PARAMETER("text",KVS_PT_STRING,0,szText)
@@ -304,7 +304,7 @@ bool KviKvsObject_listviewitem::function_setChecked(KviKvsObjectFunctionCall *c)
KVSO_PARAMETER("bChecked",KVS_PT_BOOL,0,bChecked)
KVSO_PARAMETERS_END(c)
if(!m_pListViewItem)return true;
- if(m_pListViewItem->rtti() != 1)return true; // not a QCheckListItem
+ if(m_pListViewItem->rtti() != 1)return true; // not a TQCheckListItem
((KviKvsMdmCheckListViewItem *)m_pListViewItem)->setOn(bChecked);
return true;
}
@@ -334,8 +334,8 @@ bool KviKvsObject_listviewitem::function_setCheckable(KviKvsObjectFunctionCall *
if(!m_pListViewItem)return true;
if(bCheckable)
{
- if(m_pListViewItem->rtti() == 1)return true; // a QCheckListItem already
- KviTalListViewItem * pParent = m_pListViewItem->parent();
+ if(m_pListViewItem->rtti() == 1)return true; // a TQCheckListItem already
+ KviTalListViewItem * pParent = m_pListViewItem->tqparent();
KviTalListView * pLV = (KviTalListView *)m_pListViewItem->listView();
// swap the items, so we don't die now
KviTalListViewItem * pThis = m_pListViewItem;
@@ -346,8 +346,8 @@ bool KviKvsObject_listviewitem::function_setCheckable(KviKvsObjectFunctionCall *
else
m_pListViewItem = new KviKvsMdmCheckListViewItem(this,pLV);
} else {
- if(m_pListViewItem->rtti() != 1)return true; // not a QCheckListItem yet
- KviTalListViewItem * pParent = m_pListViewItem->parent();
+ if(m_pListViewItem->rtti() != 1)return true; // not a TQCheckListItem yet
+ KviTalListViewItem * pParent = m_pListViewItem->tqparent();
KviTalListView * pLV = (KviTalListView *)m_pListViewItem->listView();
// swap the items, so we don't die now
KviTalListViewItem * pThis = m_pListViewItem;
@@ -393,7 +393,7 @@ bool KviKvsObject_listviewitem::function_setPixmap(KviKvsObjectFunctionCall *c)
KVSO_PARAMETER("column",KVS_PT_UNSIGNEDINTEGER,0,uCol)
KVSO_PARAMETER("pixmap",KVS_PT_VARIANT,0,vPixmap)
KVSO_PARAMETERS_END(c)
- QPixmap *pix = 0;
+ TQPixmap *pix = 0;
if(vPixmap->isHObject())
{
vPixmap->asHObject(obHpixmap);
@@ -405,7 +405,7 @@ bool KviKvsObject_listviewitem::function_setPixmap(KviKvsObjectFunctionCall *c)
}
pix=((KviKvsObject_pixmap *)obPixmap)->getPixmap();
} else {
- QString szPix;
+ TQString szPix;
vPixmap->asString(szPix);
pix=g_pIconManager->getImage(szPix);
if(!pix)