diff options
Diffstat (limited to 'src/profileengine/editor/profileeditor.cpp')
-rw-r--r-- | src/profileengine/editor/profileeditor.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/src/profileengine/editor/profileeditor.cpp b/src/profileengine/editor/profileeditor.cpp index 7732ea90..c10aca8c 100644 --- a/src/profileengine/editor/profileeditor.cpp +++ b/src/profileengine/editor/profileeditor.cpp @@ -38,17 +38,17 @@ #include "addprofilewidget.h" -class ProfileItem: public KListViewItem { +class ProfileItem: public TDEListViewItem { public: - ProfileItem(KListView *parent, Profile *profile) - :KListViewItem(parent), m_profile(profile) + ProfileItem(TDEListView *parent, Profile *profile) + :TDEListViewItem(parent), m_profile(profile) { setText(0, profile->genericName()); setText(1, profile->description()); } - ProfileItem(KListViewItem *parent, Profile *profile) - : KListViewItem(parent), m_profile(profile) + ProfileItem(TDEListViewItem *parent, Profile *profile) + : TDEListViewItem(parent), m_profile(profile) { setText(0, profile->genericName()); setText(1, profile->description()); @@ -60,10 +60,10 @@ private: Profile *m_profile; }; -class EDListItem: public KListViewItem{ +class EDListItem: public TDEListViewItem{ public: - EDListItem(KListView *parent, const TQString &text, bool derived) - : KListViewItem(parent, text), m_derived(derived) + EDListItem(TDEListView *parent, const TQString &text, bool derived) + : TDEListViewItem(parent, text), m_derived(derived) { } @@ -74,7 +74,7 @@ public: TQColorGroup cgNew = cg; if (m_derived) cgNew.setColor(TQColorGroup::Text, TDEGlobalSettings::inactiveTextColor()); - KListViewItem::paintCell(p, cgNew, column, width, alignment); + TDEListViewItem::paintCell(p, cgNew, column, width, alignment); } private: @@ -134,22 +134,22 @@ void ProfileEditor::refreshAvailableList() { //filling a list of available plugins allList->clear(); - allCore = new KListViewItem(allList, i18n("Core")); + allCore = new TDEListViewItem(allList, i18n("Core")); allCore->setOpen(true); - allGlobal = new KListViewItem(allList, i18n("Global")); + allGlobal = new TDEListViewItem(allList, i18n("Global")); allGlobal->setOpen(true); - allProject = new KListViewItem(allList, i18n("Project")); + allProject = new TDEListViewItem(allList, i18n("Project")); allProject->setOpen(true); TDETrader::OfferList olist = engine.allOffers(ProfileEngine::Core); for (TDETrader::OfferList::iterator it = olist.begin(); it != olist.end(); ++it) - new KListViewItem(allCore, (*it)->desktopEntryName(), (*it)->genericName()); + new TDEListViewItem(allCore, (*it)->desktopEntryName(), (*it)->genericName()); olist = engine.allOffers(ProfileEngine::Global); for (TDETrader::OfferList::iterator it = olist.begin(); it != olist.end(); ++it) - new KListViewItem(allGlobal, (*it)->desktopEntryName(), (*it)->genericName()); + new TDEListViewItem(allGlobal, (*it)->desktopEntryName(), (*it)->genericName()); olist = engine.allOffers(ProfileEngine::Project); for (TDETrader::OfferList::iterator it = olist.begin(); it != olist.end(); ++it) - new KListViewItem(allProject, (*it)->desktopEntryName(), (*it)->genericName()); + new TDEListViewItem(allProject, (*it)->desktopEntryName(), (*it)->genericName()); } void ProfileEditor::profileExecuted(TQListViewItem *item) @@ -198,29 +198,29 @@ void ProfileEditor::fillPluginsList(Profile *profile) { pluginsView->clear(); - KListViewItem *core = new KListViewItem(pluginsView, i18n("Core Plugins")); + TDEListViewItem *core = new TDEListViewItem(pluginsView, i18n("Core Plugins")); core->setOpen(true); - KListViewItem *global = new KListViewItem(pluginsView, i18n("Global Plugins")); + TDEListViewItem *global = new TDEListViewItem(pluginsView, i18n("Global Plugins")); global->setOpen(true); - KListViewItem *project = new KListViewItem(pluginsView, i18n("Project Plugins")); + TDEListViewItem *project = new TDEListViewItem(pluginsView, i18n("Project Plugins")); project->setOpen(true); TDETrader::OfferList coreOffers = engine.offers(profile->name(), ProfileEngine::Core); for (TDETrader::OfferList::const_iterator it = coreOffers.constBegin(); it != coreOffers.constEnd(); ++it) - new KListViewItem(core, (*it)->desktopEntryName(), (*it)->genericName(), + new TDEListViewItem(core, (*it)->desktopEntryName(), (*it)->genericName(), (*it)->property("X-TDevelop-Properties").toStringList().join(", ")); TDETrader::OfferList globalOffers = engine.offers(profile->name(), ProfileEngine::Global); for (TDETrader::OfferList::const_iterator it = globalOffers.constBegin(); it != globalOffers.constEnd(); ++it) - new KListViewItem(global, (*it)->desktopEntryName(), (*it)->genericName(), + new TDEListViewItem(global, (*it)->desktopEntryName(), (*it)->genericName(), (*it)->property("X-TDevelop-Properties").toStringList().join(", ")); TDETrader::OfferList projectOffers = engine.offers(profile->name(), ProfileEngine::Project); for (TDETrader::OfferList::const_iterator it = projectOffers.constBegin(); it != projectOffers.constEnd(); ++it) - new KListViewItem(project, (*it)->desktopEntryName(), (*it)->genericName(), + new TDEListViewItem(project, (*it)->desktopEntryName(), (*it)->genericName(), (*it)->property("X-TDevelop-Properties").toStringList().join(", ")); } @@ -245,7 +245,7 @@ void ProfileEditor::addProfile() prof->genericNameEdit->text(), prof->descriptionEdit->text()); profilesList->currentItem()->setOpen(true); - new ProfileItem(static_cast<KListViewItem*>(profilesList->currentItem()), profile); + new ProfileItem(static_cast<TDEListViewItem*>(profilesList->currentItem()), profile); } } |