diff options
Diffstat (limited to 'kiosktool/pageWidget.cpp')
-rw-r--r-- | kiosktool/pageWidget.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/kiosktool/pageWidget.cpp b/kiosktool/pageWidget.cpp index 487fac6..3316f8f 100644 --- a/kiosktool/pageWidget.cpp +++ b/kiosktool/pageWidget.cpp @@ -25,14 +25,14 @@ #include "kioskdata.h" #include "kioskrun.h" -ComponentActionItem::ComponentActionItem( QListView * parent, ComponentAction *action, int index) - : QCheckListItem(parent, action->caption, QCheckListItem::CheckBox), +ComponentActionItem::ComponentActionItem( TQListView * parent, ComponentAction *action, int index) + : TQCheckListItem(parent, action->caption, TQCheckListItem::CheckBox), m_action(action), m_index(index) { } -int ComponentActionItem::compare ( QListViewItem * i, int, bool ) const +int ComponentActionItem::compare ( TQListViewItem * i, int, bool ) const { ComponentActionItem *cai = static_cast<ComponentActionItem*>(i); if (m_index == cai->m_index) @@ -42,7 +42,7 @@ int ComponentActionItem::compare ( QListViewItem * i, int, bool ) const return 1; } -PageWidget::PageWidget(QWidget *me) +PageWidget::PageWidget(TQWidget *me) { m_widget = me; } @@ -63,7 +63,7 @@ PageWidget::fillActionList(KListView *listView, ComponentData *componentData) item->setSelected(true); if (action->type == ComponentAction::ActRestrict) { - QString file = action->file; + TQString file = action->file; if (file.isEmpty()) file = "kdeglobals"; KConfig *cfg = KioskRun::self()->configFile(file); @@ -73,7 +73,7 @@ PageWidget::fillActionList(KListView *listView, ComponentData *componentData) } else if (action->type == ComponentAction::ActResource) { - QString file = action->file; + TQString file = action->file; if (file.isEmpty()) file = "kdeglobals"; KConfig *cfg = KioskRun::self()->configFile(file); @@ -83,7 +83,7 @@ PageWidget::fillActionList(KListView *listView, ComponentData *componentData) } else if (action->type == ComponentAction::ActModule) { - QString file = "kdeglobals"; + TQString file = "kdeglobals"; KConfig *cfg = KioskRun::self()->configFile(file); cfg->setGroup("KDE Control Module Restrictions"); bool restricted = !cfg->readBoolEntry(action->key, true); @@ -91,10 +91,10 @@ PageWidget::fillActionList(KListView *listView, ComponentData *componentData) } else if (action->type == ComponentAction::ActImmutable) { - QString file = action->file; + TQString file = action->file; if (file.isEmpty()) file = "kdeglobals"; - QString group = action->group; + TQString group = action->group; bool immutable = KioskRun::self()->isConfigImmutable(file, group); qWarning("File = %s Group = %s Immutable = %s", file.latin1(), group.latin1(), immutable ? "true" : "false"); item->setOn(immutable); @@ -106,7 +106,7 @@ qWarning("File = %s Group = %s Immutable = %s", file.latin1(), group.latin1(), i } else if (action->type == ComponentAction::ActConfig) { - QString file = action->file; + TQString file = action->file; if (file.isEmpty()) file = "kdeglobals"; KConfig *cfg = KioskRun::self()->configFile(file); @@ -123,7 +123,7 @@ PageWidget::saveActionListItem(ComponentAction *action, bool b) { if (action->type == ComponentAction::ActRestrict) { - QString file = action->file; + TQString file = action->file; if (file.isEmpty()) file = "kdeglobals"; KConfig *cfg = KioskRun::self()->configFile(file); @@ -138,7 +138,7 @@ PageWidget::saveActionListItem(ComponentAction *action, bool b) } else if (action->type == ComponentAction::ActResource) { - QString file = action->file; + TQString file = action->file; if (file.isEmpty()) file = "kdeglobals"; KConfig *cfg = KioskRun::self()->configFile(file); @@ -153,7 +153,7 @@ PageWidget::saveActionListItem(ComponentAction *action, bool b) } else if (action->type == ComponentAction::ActModule) { - QString file = "kdeglobals"; + TQString file = "kdeglobals"; KConfig *cfg = KioskRun::self()->configFile(file); cfg->setGroup("KDE Control Module Restrictions"); @@ -166,10 +166,10 @@ PageWidget::saveActionListItem(ComponentAction *action, bool b) } else if (action->type == ComponentAction::ActImmutable) { - QString file = action->file; + TQString file = action->file; if (file.isEmpty()) file = "kdeglobals"; - QString group = action->group; + TQString group = action->group; KioskRun::self()->setConfigImmutable(file, group, b); } else if (action->type == ComponentAction::ActCustom) @@ -178,7 +178,7 @@ PageWidget::saveActionListItem(ComponentAction *action, bool b) } else if (action->type == ComponentAction::ActConfig) { - QString file = action->file; + TQString file = action->file; if (file.isEmpty()) file = "kdeglobals"; KConfig *cfg = KioskRun::self()->configFile(file); |