summaryrefslogtreecommitdiffstats
path: root/lib/koproperty/editoritem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/koproperty/editoritem.cpp')
-rw-r--r--lib/koproperty/editoritem.cpp64
1 files changed, 32 insertions, 32 deletions
diff --git a/lib/koproperty/editoritem.cpp b/lib/koproperty/editoritem.cpp
index 1c0e1b72..653cbe0a 100644
--- a/lib/koproperty/editoritem.cpp
+++ b/lib/koproperty/editoritem.cpp
@@ -93,8 +93,8 @@ static void paintListViewExpander(TQPainter* p, TQWidget* w, int height, const T
class GroupWidgetBase : public TQWidget
{
public:
- GroupWidgetBase(TQWidget* tqparent)
- : TQWidget(tqparent)
+ GroupWidgetBase(TQWidget* parent)
+ : TQWidget(parent)
, m_isOpen(true)
, m_mouseDown(false)
{
@@ -204,8 +204,8 @@ class GroupContainer::Private
using namespace KoProperty;
-GroupContainer::GroupContainer(const TQString& title, TQWidget* tqparent)
-: TQWidget(tqparent)
+GroupContainer::GroupContainer(const TQString& title, TQWidget* parent)
+: TQWidget(parent)
, d(new Private())
{
tqsetSizePolicy(TQSizePolicy(TQSizePolicy::Preferred, TQSizePolicy::Fixed, 0, 1));
@@ -254,8 +254,8 @@ bool GroupContainer::event( TQEvent * e ) {
//////////////////////////////////////////////////////
-EditorItem::EditorItem(Editor *editor, EditorItem *tqparent, Property *property, TQListViewItem *after)
- : KListViewItem(tqparent, after,
+EditorItem::EditorItem(Editor *editor, EditorItem *parent, Property *property, TQListViewItem *after)
+ : KListViewItem(parent, after,
property->captionForDisplaying().isEmpty() ? property->name() : property->captionForDisplaying())
{
d = new EditorItemPrivate();
@@ -280,8 +280,8 @@ EditorItem::EditorItem(Editor *editor, EditorItem *tqparent, Property *property,
*/
}
-EditorItem::EditorItem(KListView *tqparent)
- : KListViewItem(tqparent)
+EditorItem::EditorItem(KListView *parent)
+ : KListViewItem(parent)
{
d = new EditorItemPrivate();
d->property = 0;
@@ -289,8 +289,8 @@ EditorItem::EditorItem(KListView *tqparent)
setMultiLinesEnabled(true);
}
-EditorItem::EditorItem(EditorItem *tqparent, const TQString &text)
- : KListViewItem(tqparent, text)
+EditorItem::EditorItem(EditorItem *parent, const TQString &text)
+ : KListViewItem(parent, text)
{
d = new EditorItemPrivate();
d->property = 0;
@@ -298,8 +298,8 @@ EditorItem::EditorItem(EditorItem *tqparent, const TQString &text)
setMultiLinesEnabled(true);
}
-EditorItem::EditorItem(EditorItem *tqparent, EditorItem *after, const TQString &text)
- : KListViewItem(tqparent, after, text)
+EditorItem::EditorItem(EditorItem *parent, EditorItem *after, const TQString &text)
+ : KListViewItem(parent, after, text)
{
d = new EditorItemPrivate();
d->property = 0;
@@ -334,18 +334,18 @@ EditorItem::paintCell(TQPainter *p, const TQColorGroup & cg, int column, int wid
p->setBrush(cg.highlight());
p->setPen(cg.highlightedText());
KListViewItem::paintCell(p, cg, column, width, align);
- p->fillRect(tqparent() ? 0 : 50, 0, width, height()-1,
+ p->fillRect(parent() ? 0 : 50, 0, width, height()-1,
TQBrush(isSelected() ? cg.highlight() : backgroundColor()));
p->setPen(isSelected() ? cg.highlightedText() : cg.text());
int delta = -20+KPROPEDITOR_ITEM_MARGIN;
- if ((firstChild() && dynamic_cast<EditorGroupItem*>(tqparent()))) {
+ if ((firstChild() && dynamic_cast<EditorGroupItem*>(parent()))) {
delta = -KPROPEDITOR_ITEM_MARGIN-1;
}
- if (dynamic_cast<EditorDummyItem*>(tqparent())) {
+ if (dynamic_cast<EditorDummyItem*>(parent())) {
delta = KPROPEDITOR_ITEM_MARGIN*2;
}
- else if (tqparent() && dynamic_cast<EditorDummyItem*>(tqparent()->tqparent())) {
- if (dynamic_cast<EditorGroupItem*>(tqparent()))
+ else if (parent() && dynamic_cast<EditorDummyItem*>(parent()->parent())) {
+ if (dynamic_cast<EditorGroupItem*>(parent()))
delta += KPROPEDITOR_ITEM_MARGIN*2;
else
delta += KPROPEDITOR_ITEM_MARGIN*5;
@@ -359,7 +359,7 @@ EditorItem::paintCell(TQPainter *p, const TQColorGroup & cg, int column, int wid
p->drawLine(0, -1, width-1, -1);
p->setPen( KPROPEDITOR_ITEM_BORDER_COLOR ); //! \todo custom color?
- if (dynamic_cast<EditorDummyItem*>(tqparent()))
+ if (dynamic_cast<EditorDummyItem*>(parent()))
p->drawLine(0, 0, 0, height()-1 );
}
else if(column == 1)
@@ -408,21 +408,21 @@ EditorItem::paintBranches(TQPainter *p, const TQColorGroup &cg, int w, int y, in
int delta = 0;
int fillWidth = w;
int x = 0;
- if (dynamic_cast<EditorGroupItem*>(item->tqparent())) {
+ if (dynamic_cast<EditorGroupItem*>(item->parent())) {
delta = 0;//-19;
fillWidth += 19;
}
else {
- if (dynamic_cast<EditorGroupItem*>(item) || /*for flat mode*/ dynamic_cast<EditorDummyItem*>(item->tqparent()))
+ if (dynamic_cast<EditorGroupItem*>(item) || /*for flat mode*/ dynamic_cast<EditorDummyItem*>(item->parent()))
x = 19;
else
x = -19;
fillWidth += 19;
}
- if (dynamic_cast<EditorDummyItem*>(item->tqparent())) {
+ if (dynamic_cast<EditorDummyItem*>(item->parent())) {
x = 19;
}
- else if (item->tqparent() && dynamic_cast<EditorDummyItem*>(item->tqparent()->tqparent())) {
+ else if (item->parent() && dynamic_cast<EditorDummyItem*>(item->parent()->parent())) {
x = 0;
}
p->fillRect(x+1, 0, fillWidth-1, item->height()-1, TQBrush(backgroundColor));
@@ -434,7 +434,7 @@ EditorItem::paintBranches(TQPainter *p, const TQColorGroup &cg, int w, int y, in
// for (int i=0; i<10000000; i++)
// ;
// if(item->isSelected()) {
-// p->fillRect(tqparent() ? 0 : 50, 0, w, item->height()-1, TQBrush(cg.highlight()));
+// p->fillRect(parent() ? 0 : 50, 0, w, item->height()-1, TQBrush(cg.highlight()));
// p->fillRect(-50,0,50, item->height(), TQBrush(cg.highlight()));
// }
@@ -443,20 +443,20 @@ EditorItem::paintBranches(TQPainter *p, const TQColorGroup &cg, int w, int y, in
|| (static_cast<EditorItem*>(item)->property() && static_cast<EditorItem*>(item)->property()->isModified()) );
p->setFont(font);
p->setPen(item->isSelected() ? cg.highlightedText() : cg.text());
- if (item->firstChild() && dynamic_cast<EditorGroupItem*>(item->tqparent())) {
+ if (item->firstChild() && dynamic_cast<EditorGroupItem*>(item->parent())) {
delta = 19-KPROPEDITOR_ITEM_MARGIN-1;
}
- else if (dynamic_cast<EditorDummyItem*>(item->tqparent())) {
+ else if (dynamic_cast<EditorDummyItem*>(item->parent())) {
delta = 19;
}
- if (item->tqparent() && dynamic_cast<EditorDummyItem*>(item->tqparent()->tqparent())) {
- if (dynamic_cast<EditorGroupItem*>(item->tqparent()))
+ if (item->parent() && dynamic_cast<EditorDummyItem*>(item->parent()->parent())) {
+ if (dynamic_cast<EditorGroupItem*>(item->parent()))
delta += KPROPEDITOR_ITEM_MARGIN*2;
else
delta += KPROPEDITOR_ITEM_MARGIN*5;
}
- if (!dynamic_cast<EditorDummyItem*>(item->tqparent()))
+ if (!dynamic_cast<EditorDummyItem*>(item->parent()))
p->drawText(TQRect(delta+1,0, w+listView()->columnWidth(1), item->height()),
TQt::AlignLeft | TQt::AlignVCenter /*| TQt::SingleLine*/, item->text(0));
@@ -512,16 +512,16 @@ EditorItem::setHeight( int height )
//////////////////////////////////////////////////////
-EditorGroupItem::EditorGroupItem(EditorItem *tqparent, EditorItem *after, const TQString &text, const TQString &icon, int sortOrder)
- : EditorItem(tqparent, after, text)
+EditorGroupItem::EditorGroupItem(EditorItem *parent, EditorItem *after, const TQString &text, const TQString &icon, int sortOrder)
+ : EditorItem(parent, after, text)
, m_label(0)
, m_sortOrder(sortOrder)
{
init(icon);
}
-EditorGroupItem::EditorGroupItem(EditorItem *tqparent, const TQString &text, const TQString &icon, int sortOrder)
- : EditorItem(tqparent, text)
+EditorGroupItem::EditorGroupItem(EditorItem *parent, const TQString &text, const TQString &icon, int sortOrder)
+ : EditorItem(parent, text)
, m_label(0)
, m_sortOrder(sortOrder)
{