summaryrefslogtreecommitdiffstats
path: root/src/qalculateunitsdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qalculateunitsdialog.cpp')
-rw-r--r--src/qalculateunitsdialog.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/qalculateunitsdialog.cpp b/src/qalculateunitsdialog.cpp
index 399e5d4..8710f2f 100644
--- a/src/qalculateunitsdialog.cpp
+++ b/src/qalculateunitsdialog.cpp
@@ -24,16 +24,16 @@
#include <tqsplitter.h>
#include <tqvbox.h>
#include <tqhbox.h>
-#include <klistview.h>
-#include <kmessagebox.h>
-#include <klocale.h>
+#include <tdelistview.h>
+#include <tdemessagebox.h>
+#include <tdelocale.h>
#include <tqlayout.h>
#include <kcombobox.h>
#include <tqlabel.h>
#include <tqgroupbox.h>
#include <klineedit.h>
#include <kiconloader.h>
-#include <kapplication.h>
+#include <tdeapplication.h>
#include <kstdguiitem.h>
extern tree_struct unit_cats;
@@ -59,11 +59,11 @@ QalculateUnitsDialog::QalculateUnitsDialog(TQWidget *parent, const char *name) :
splitter->setSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding);
leftLayout->addWidget(splitter);
- categoryView = new KListView(splitter);
+ categoryView = new TDEListView(splitter);
categoryView->addColumn(i18n("Category"));
categoryView->setRootIsDecorated(false);
- unitView = new KListView(splitter);
+ unitView = new TDEListView(splitter);
unitView->addColumn(i18n("Unit"));
unitView->addColumn(i18n("Names"));
unitView->addColumn(i18n("Base"));
@@ -139,7 +139,7 @@ QalculateUnitsDialog::~QalculateUnitsDialog() {
}
void QalculateUnitsDialog::slotHelp() {
- KApplication::kApplication()->invokeHelp("qalculate-managers");
+ TDEApplication::kApplication()->invokeHelp("qalculate-managers");
}
void QalculateUnitsDialog::updateUnitTree() {
@@ -147,7 +147,7 @@ void QalculateUnitsDialog::updateUnitTree() {
comboItems.clear();
categoryItems.clear();
categoryView->clear();
- TQListViewItem *i = new KListViewItem(categoryView, i18n("All")), *i2;
+ TQListViewItem *i = new TDEListViewItem(categoryView, i18n("All")), *i2;
categoryItems[i] = i18n("All");
i->setOpen(true);
TQString str;
@@ -165,7 +165,7 @@ void QalculateUnitsDialog::updateUnitTree() {
while(item) {
str += "/";
str += item->item.c_str();
- i = new KListViewItem(i2, item->item.c_str());
+ i = new TDEListViewItem(i2, item->item.c_str());
i->setOpen(false);
categoryItems[i] = str;
if(str == selected_category) {
@@ -194,7 +194,7 @@ void QalculateUnitsDialog::updateUnitTree() {
}
if(!unit_cats.objects.empty()) {
//add "Uncategorized" category if there are units without category
- i = new KListViewItem(categoryView, i18n("Uncategorized"));
+ i = new TDEListViewItem(categoryView, i18n("Uncategorized"));
categoryItems[i] = i18n("Uncategorized");
if(selected_category == i18n("Uncategorized")) {
categoryView->ensureItemVisible(i);
@@ -203,7 +203,7 @@ void QalculateUnitsDialog::updateUnitTree() {
}
if(!ia_units.empty()) {
//add "Inactive" category if there are inactive units
- i = new KListViewItem(categoryView, i18n("Inactive"));
+ i = new TDEListViewItem(categoryView, i18n("Inactive"));
categoryItems[i] = i18n("Inactive");
if(selected_category == i18n("Inactive")) {
categoryView->ensureItemVisible(i);
@@ -393,7 +393,7 @@ void QalculateUnitsDialog::addUnitTreeItem(Unit *u) {
break;
}
}
- TQListViewItem *i = new KListViewItem(unitView, u->title(true).c_str(), snames, sbase);
+ TQListViewItem *i = new TDEListViewItem(unitView, u->title(true).c_str(), snames, sbase);
unitItems[i] = u;
if(u == selected_unit) {
unitView->setSelected(i, true);