summaryrefslogtreecommitdiffstats
path: root/ksim/monitorprefs.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:52:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:52:55 +0000
commit5f5ee2367157176ed223b86343eb0a9e4022e020 (patch)
tree6a9c87f14ee38e90eff3c77c784f14e4f38fd5a1 /ksim/monitorprefs.cpp
parent4facf42feec57b22dcf46badc115ad6c5b5cc512 (diff)
downloadtdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.tar.gz
tdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1157653 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksim/monitorprefs.cpp')
-rw-r--r--ksim/monitorprefs.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/ksim/monitorprefs.cpp b/ksim/monitorprefs.cpp
index 1e67945..0038c85 100644
--- a/ksim/monitorprefs.cpp
+++ b/ksim/monitorprefs.cpp
@@ -29,7 +29,7 @@
#include <ksimconfig.h>
#include <pluginloader.h>
-KSim::MonitorPrefs::MonitorPrefs(QWidget *parent, const char *name)
+KSim::MonitorPrefs::MonitorPrefs(TQWidget *parent, const char *name)
: KListView(parent, name)
{
addColumn(i18n("Monitor"));
@@ -42,15 +42,15 @@ KSim::MonitorPrefs::MonitorPrefs(QWidget *parent, const char *name)
setDragEnabled(true);
setAcceptDrops(true);
setAllColumnsShowFocus(true);
- setSelectionMode(QListView::Single);
+ setSelectionMode(TQListView::Single);
// Scan for .desktop files and enter them into the KListView
m_locatedFiles = KGlobal::dirs()->findAllResources("data", "ksim/monitors/*.desktop");
m_locatedFiles.sort();
- QStringList::ConstIterator it;
+ TQStringList::ConstIterator it;
for (it = m_locatedFiles.begin(); it != m_locatedFiles.end(); ++it) {
KDesktopFile file((*it), true);
- (void)(new QCheckListItem(this, file.readName(), QCheckListItem::CheckBox))->setText(1, file.readComment());
+ (void)(new TQCheckListItem(this, file.readName(), TQCheckListItem::CheckBox))->setText(1, file.readComment());
}
sort();
@@ -63,11 +63,11 @@ KSim::MonitorPrefs::~MonitorPrefs()
void KSim::MonitorPrefs::saveConfig(KSim::Config *config)
{
- QCheckListItem *item;
- QStringList::ConstIterator it;
+ TQCheckListItem *item;
+ TQStringList::ConstIterator it;
for (it = m_locatedFiles.begin(); it != m_locatedFiles.end(); ++it) {
KSim::PluginInfo info = KSim::PluginLoader::self().findPluginInfo((*it));
- item = static_cast<QCheckListItem *>(findItem(info.name(), 0));
+ item = static_cast<TQCheckListItem *>(findItem(info.name(), 0));
config->setEnabledMonitor(info.libName(), item->isOn());
config->setMonitorCommand(info.libName(), item->text(2));
config->setMonitorLocation(info.libName(), itemIndex(item));
@@ -77,15 +77,15 @@ void KSim::MonitorPrefs::saveConfig(KSim::Config *config)
void KSim::MonitorPrefs::readConfig(KSim::Config *config)
{
int location;
- QCheckListItem *origItem;
- QStringList::ConstIterator it;
+ TQCheckListItem *origItem;
+ TQStringList::ConstIterator it;
for (it = m_locatedFiles.begin(); it != m_locatedFiles.end(); ++it) {
KSim::PluginInfo info = KSim::PluginLoader::self().findPluginInfo((*it));
location = config->monitorLocation(info.libName());
- origItem = static_cast<QCheckListItem *>(findItem(info.name(), 0));
+ origItem = static_cast<TQCheckListItem *>(findItem(info.name(), 0));
origItem->setOn(config->enabledMonitor(info.libName()));
origItem->setText(2, config->monitorCommand(info.libName()));
- if (QListViewItem *item = itemAtIndex(location)) {
+ if (TQListViewItem *item = itemAtIndex(location)) {
if (location) {
origItem->moveItem(item->itemAbove());
}