diff options
Diffstat (limited to 'src/qalculatevariablesdialog.cpp')
-rw-r--r-- | src/qalculatevariablesdialog.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/qalculatevariablesdialog.cpp b/src/qalculatevariablesdialog.cpp index 202cc9d..57e07ea 100644 --- a/src/qalculatevariablesdialog.cpp +++ b/src/qalculatevariablesdialog.cpp @@ -27,11 +27,11 @@ #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 <kapplication.h> +#include <tdeapplication.h> #include <kstdguiitem.h> extern tree_struct variable_cats; @@ -53,10 +53,10 @@ QalculateVariablesDialog::QalculateVariablesDialog(TQWidget *parent, const char TQSplitter *splitter = new TQSplitter(TQt::Horizontal, this); layout->addWidget(splitter); - categoryView = new KListView(splitter); + categoryView = new TDEListView(splitter); categoryView->addColumn(i18n("Category")); - variableView = new KListView(splitter); + variableView = new TDEListView(splitter); variableView->addColumn(i18n("Variable Name")); variableView->addColumn(i18n("Value")); variableView->setRootIsDecorated(false); @@ -106,14 +106,14 @@ QalculateVariablesDialog::QalculateVariablesDialog(TQWidget *parent, const char QalculateVariablesDialog::~QalculateVariablesDialog() {} void QalculateVariablesDialog::slotHelp() { - KApplication::kApplication()->invokeHelp("qalculate-managers"); + TDEApplication::kApplication()->invokeHelp("qalculate-managers"); } void QalculateVariablesDialog::updateVariableTree() { variableItems.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; @@ -131,7 +131,7 @@ void QalculateVariablesDialog::updateVariableTree() { 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) { @@ -162,7 +162,7 @@ void QalculateVariablesDialog::updateVariableTree() { if(!variable_cats.objects.empty()) { //add "Uncategorized" category if there are variables 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); @@ -171,7 +171,7 @@ void QalculateVariablesDialog::updateVariableTree() { } if(!ia_variables.empty()) { //add "Inactive" category if there are inactive variables - i = new KListViewItem(categoryView, i18n("Inactive")); + i = new TDEListViewItem(categoryView, i18n("Inactive")); categoryItems[i] = i18n("Inactive"); if(selected_category == i18n("Inactive")) { categoryView->ensureItemVisible(i); @@ -440,7 +440,7 @@ void QalculateVariablesDialog::addVariableTreeItem(Variable *v) { value = i18n("default assumptions"); } } - TQListViewItem *i = new KListViewItem(variableView, v->title(true).c_str(), value); + TQListViewItem *i = new TDEListViewItem(variableView, v->title(true).c_str(), value); variableItems[i] = v; if(v == selected_variable) { variableView->setSelected(i, true); |