summaryrefslogtreecommitdiffstats
path: root/src/qalculateconvertunitsdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qalculateconvertunitsdialog.cpp')
-rw-r--r--src/qalculateconvertunitsdialog.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/qalculateconvertunitsdialog.cpp b/src/qalculateconvertunitsdialog.cpp
index 0808780..25336c4 100644
--- a/src/qalculateconvertunitsdialog.cpp
+++ b/src/qalculateconvertunitsdialog.cpp
@@ -22,13 +22,13 @@
#include <tqlabel.h>
#include <klineedit.h>
-#include <klocale.h>
+#include <tdelocale.h>
#include <tqhbox.h>
-#include <klistview.h>
-#include <klocale.h>
+#include <tdelistview.h>
+#include <tdelocale.h>
#include <tqvbox.h>
-#include <klistview.h>
-#include <kmessagebox.h>
+#include <tdelistview.h>
+#include <tdemessagebox.h>
#include <tqlayout.h>
#include <tqpushbutton.h>
#include <tqsplitter.h>
@@ -59,12 +59,12 @@ QalculateConvertUnitsDialog::QalculateConvertUnitsDialog(TQWidget *parent, const
setDetailsWidget(box_d);
- categoryView = new KListView(splitter);
+ categoryView = new TDEListView(splitter);
categoryView->addColumn(i18n("Category"));
categoryView->setRootIsDecorated(false);
categoryView->setFullWidth(true);
- unitView = new KListView(splitter);
+ unitView = new TDEListView(splitter);
unitView->addColumn(i18n("Unit"));
unitView->setRootIsDecorated(false);
unitView->setFullWidth(true);
@@ -82,7 +82,7 @@ void QalculateConvertUnitsDialog::updateUnitTree() {
unitItems.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;
@@ -100,7 +100,7 @@ void QalculateConvertUnitsDialog::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) {
@@ -129,7 +129,7 @@ void QalculateConvertUnitsDialog::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);
@@ -161,7 +161,7 @@ void QalculateConvertUnitsDialog::unitSelected() {
}
void QalculateConvertUnitsDialog::addUnitTreeItem(Unit *u) {
- TQListViewItem *i = new KListViewItem(unitView, u->title(true).c_str());
+ TQListViewItem *i = new TDEListViewItem(unitView, u->title(true).c_str());
unitItems[i] = u;
}