diff options
Diffstat (limited to 'noatun-plugins/oblique/cmodule.cpp')
-rw-r--r-- | noatun-plugins/oblique/cmodule.cpp | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/noatun-plugins/oblique/cmodule.cpp b/noatun-plugins/oblique/cmodule.cpp index 729ff54..5df19b0 100644 --- a/noatun-plugins/oblique/cmodule.cpp +++ b/noatun-plugins/oblique/cmodule.cpp @@ -28,17 +28,17 @@ #include <tqtabwidget.h> #include <tqheader.h> -SchemaConfig::SchemaConfig(TQWidget *parent, Oblique *oblique) - : TQWidget(parent) +SchemaConfig::SchemaConfig(TQWidget *tqparent, Oblique *oblique) + : TQWidget(tqparent) { mOblique = oblique; mIgnore = true; mRegexpEditor=0; { - TQVBoxLayout *layout = new TQVBoxLayout(this, 11, 7); - layout->setAutoAdd(true); - layout->setSpacing(7); + TQVBoxLayout *tqlayout = new TQVBoxLayout(this, 11, 7); + tqlayout->setAutoAdd(true); + tqlayout->setSpacing(7); } @@ -159,7 +159,7 @@ SchemaConfig::SchemaConfig(TQWidget *parent, Oblique *oblique) connect(mOptionPlayable, TQT_SIGNAL(toggled(bool)), TQT_SLOT(updateCurrent())); mOptionChildrenVisible = new TQCheckBox(i18n("&Children visible"), groupbox); - TQWhatsThis::add(mOptionChildrenVisible, i18n("Don't create this node, this nodes children become direct children of this node's parent")); + TQWhatsThis::add(mOptionChildrenVisible, i18n("Don't create this node, this nodes tqchildren become direct tqchildren of this node's tqparent")); connect(mOptionChildrenVisible, TQT_SIGNAL(toggled(bool)), TQT_SLOT(updateCurrent())); mOptionAutoOpen = new TQCheckBox(i18n("Auto &open"), groupbox); @@ -176,14 +176,14 @@ class QueryGroupItem : public KListViewItem QueryGroup *mItem; public: - QueryGroupItem(QueryGroupItem *parent, QueryGroup *group, QueryGroupItem *after=0) - : KListViewItem(parent, after) + QueryGroupItem(QueryGroupItem *tqparent, QueryGroup *group, QueryGroupItem *after=0) + : KListViewItem(tqparent, after) { init(group); } - QueryGroupItem(KListView *parent, QueryGroup *group, QueryGroupItem *after=0) - : KListViewItem(parent, after) + QueryGroupItem(KListView *tqparent, QueryGroup *group, QueryGroupItem *after=0) + : KListViewItem(tqparent, after) { init(group); } @@ -198,8 +198,8 @@ public: setText(2, item()->presentation()); } - QueryGroupItem *parent() - { return static_cast<QueryGroupItem*>(KListViewItem::parent()); } + QueryGroupItem *tqparent() + { return static_cast<QueryGroupItem*>(KListViewItem::tqparent()); } KListView *listView() { return static_cast<KListView*>(KListViewItem::listView()); } @@ -218,8 +218,8 @@ private: { if (QueryGroup *after = group->nextSibling()) { - if (parent()) - new QueryGroupItem(parent(), after, this); + if (tqparent()) + new QueryGroupItem(tqparent(), after, this); else new QueryGroupItem(listView(), after, this); } @@ -272,7 +272,7 @@ void SchemaConfig::save() TQString SchemaConfig::nameToFilename(const TQString &_name) { TQString name = _name; - name = name.replace(TQRegExp("[^a-zA-Z0-9]"), "_"); + name = name.tqreplace(TQRegExp("[^a-zA-Z0-9]"), "_"); return name; } @@ -288,7 +288,7 @@ void SchemaConfig::newSchema() TQString filename = nameToFilename(str); - if (mQueries.contains(nameToFilename(filename))) return; + if (mQueries.tqcontains(nameToFilename(filename))) return; QueryItem queryitem; queryitem.query = Query(); @@ -312,7 +312,7 @@ void SchemaConfig::copySchema() TQString filename = nameToFilename(str); - if (mQueries.contains(nameToFilename(filename))) return; + if (mQueries.tqcontains(nameToFilename(filename))) return; QueryItem queryitem; queryitem.query = currentQuery()->query; @@ -355,7 +355,7 @@ void SchemaConfig::editValueRegexp() { mRegexpEditor = KParts::ComponentFactory::createInstanceFromQuery<TQDialog>( - "KRegExpEditor/KRegExpEditor", TQString::null, this + "KRegExpEditor/KRegExpEditor", TQString(), TQT_TQOBJECT(this) ); } @@ -413,7 +413,7 @@ void SchemaConfig::move(TQListViewItem *_item, TQListViewItem *, TQListViewItem QueryGroupItem *afterNow = static_cast<QueryGroupItem*>(_afterNow); QueryGroup *after, *under; - under = item->parent() ? item->parent()->item() : 0; + under = item->tqparent() ? item->tqparent()->item() : 0; after = afterNow ? afterNow->item() : 0; item->item()->move(¤tQuery()->query, under, after); @@ -436,8 +436,8 @@ void SchemaConfig::addSibling() // now match the action in the tree QueryGroupItem *created; - if (item->parent()) - created = new QueryGroupItem(item->parent(), g, item); + if (item->tqparent()) + created = new QueryGroupItem(item->tqparent(), g, item); else created = new QueryGroupItem(item->listView(), g, item); @@ -500,8 +500,8 @@ SchemaConfig::QueryItem *SchemaConfig::currentQuery() } -SliceConfig::SliceConfig(TQWidget *parent, Oblique *oblique) - : TQWidget(parent) +SliceConfig::SliceConfig(TQWidget *tqparent, Oblique *oblique) + : TQWidget(tqparent) { mOblique = oblique; (new TQVBoxLayout(this, 11, 7))->setAutoAdd(true); @@ -539,16 +539,16 @@ class SliceListItem : public KListViewItem { Slice *mSlice; public: - SliceListItem(KListView *parent, Slice *slice) - : KListViewItem(parent, slice->name()), mSlice(slice) + SliceListItem(KListView *tqparent, Slice *slice) + : KListViewItem(tqparent, slice->name()), mSlice(slice) { } /** * new item **/ - SliceListItem(KListView *parent) - : KListViewItem(parent, i18n("New Slice")), mSlice(0) + SliceListItem(KListView *tqparent) + : KListViewItem(tqparent, i18n("New Slice")), mSlice(0) { } @@ -621,7 +621,7 @@ void SliceConfig::addSibling() void SliceConfig::removeSelf() { SliceListItem *r = currentItem(); - if (mAddedItems.contains(r)) + if (mAddedItems.tqcontains(r)) { mAddedItems.remove(r); } |