diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-10-15 09:34:36 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-10-15 09:34:36 +0000 |
commit | 586a5f786f9af3ddccdb6eba16fd529a5e88ed4c (patch) | |
tree | a889bda9cdb4e705ef7bf50ea2a0a8e53b33a3bc /kiosktool/pageWidget.cpp | |
parent | 281b2113b209bd51bd923ad8f289f4041ff03a0f (diff) | |
download | kiosktool-586a5f786f9af3ddccdb6eba16fd529a5e88ed4c.tar.gz kiosktool-586a5f786f9af3ddccdb6eba16fd529a5e88ed4c.zip |
Raw TQt conversion of kiosktool
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kiosktool@1258970 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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); |