diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2016-04-09 20:52:31 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2016-04-09 20:52:31 +0200 |
commit | c5f75332bb8fa8d1a0a28037b4cc8f7f71e37f8f (patch) | |
tree | 1ec78a7a0c522677ca47ba31aed55edb1e9853d0 /src/qalculatefunctionsdialog.cpp | |
parent | 91d2d7482c36e67cb36df9d1dcdbd989911e4ceb (diff) | |
download | qalculate-tde-c5f75332bb8fa8d1a0a28037b4cc8f7f71e37f8f.tar.gz qalculate-tde-c5f75332bb8fa8d1a0a28037b4cc8f7f71e37f8f.zip |
Initial TDE conversion
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'src/qalculatefunctionsdialog.cpp')
-rw-r--r-- | src/qalculatefunctionsdialog.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/qalculatefunctionsdialog.cpp b/src/qalculatefunctionsdialog.cpp index b511394..4bb53bf 100644 --- a/src/qalculatefunctionsdialog.cpp +++ b/src/qalculatefunctionsdialog.cpp @@ -24,12 +24,12 @@ #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 <ktextbrowser.h> -#include <kapplication.h> +#include <tdeapplication.h> #include <kstdguiitem.h> extern tree_struct function_cats; @@ -51,11 +51,11 @@ QalculateFunctionsDialog::QalculateFunctionsDialog(TQWidget *parent, const char TQSplitter *splitter = new TQSplitter(TQt::Horizontal, this); leftLayout->addWidget(splitter); - categoryView = new KListView(splitter); + categoryView = new TDEListView(splitter); categoryView->addColumn(i18n("Category")); categoryView->setRootIsDecorated(false); - functionView = new KListView(splitter); + functionView = new TDEListView(splitter); functionView->addColumn(i18n("Function Name")); functionView->setRootIsDecorated(false); @@ -108,14 +108,14 @@ QalculateFunctionsDialog::~QalculateFunctionsDialog() { } void QalculateFunctionsDialog::slotHelp() { - KApplication::kApplication()->invokeHelp("qalculate-managers"); + TDEApplication::kApplication()->invokeHelp("qalculate-managers"); } void QalculateFunctionsDialog::updateFunctionTree() { functionItems.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; @@ -133,7 +133,7 @@ void QalculateFunctionsDialog::updateFunctionTree() { 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 QalculateFunctionsDialog::updateFunctionTree() { } if(!function_cats.objects.empty()) { //add "Uncategorized" category if there are functions 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 QalculateFunctionsDialog::updateFunctionTree() { } if(!ia_functions.empty()) { //add "Inactive" category if there are inactive functions - i = new KListViewItem(categoryView, i18n("Inactive")); + i = new TDEListViewItem(categoryView, i18n("Inactive")); categoryItems[i] = i18n("Inactive"); if(selected_category == i18n("Inactive")) { categoryView->ensureItemVisible(i); @@ -483,7 +483,7 @@ void QalculateFunctionsDialog::functionSelected() { } void QalculateFunctionsDialog::addFunctionTreeItem(MathFunction *f) { - TQListViewItem *i = new KListViewItem(functionView, f->title(true).c_str()); + TQListViewItem *i = new TDEListViewItem(functionView, f->title(true).c_str()); functionItems[i] = f; if(f == selected_function) { functionView->setSelected(i, true); |