summaryrefslogtreecommitdiffstats
path: root/src/qalculateeditdatasetdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qalculateeditdatasetdialog.cpp')
-rw-r--r--src/qalculateeditdatasetdialog.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/qalculateeditdatasetdialog.cpp b/src/qalculateeditdatasetdialog.cpp
index 248039e..e543368 100644
--- a/src/qalculateeditdatasetdialog.cpp
+++ b/src/qalculateeditdatasetdialog.cpp
@@ -26,20 +26,20 @@
#include <kpushbutton.h>
#include <kcombobox.h>
#include <tqlabel.h>
-#include <klocale.h>
+#include <tdelocale.h>
#include <tqvbox.h>
#include <tqhbox.h>
#include <tqcheckbox.h>
-#include <kmessagebox.h>
-#include <kdeversion.h>
+#include <tdemessagebox.h>
+#include <tdeversion.h>
#include <tqlayout.h>
-#if KDE_VERSION_MAJOR < 4 && KDE_VERSION_MINOR < 1
+#if TDE_VERSION_MAJOR < 4 && TDE_VERSION_MINOR < 1
#include <tqtextedit.h>
#else
#include <ktextedit.h>
#endif
-#include <klistview.h>
-#if KDE_VERSION_MAJOR < 4 && KDE_VERSION_MINOR < 2
+#include <tdelistview.h>
+#if TDE_VERSION_MAJOR < 4 && TDE_VERSION_MINOR < 2
#include <tqtabwidget.h>
#else
#include <ktabwidget.h>
@@ -56,7 +56,7 @@ QalculateEditDataSetDialog::QalculateEditDataSetDialog(TQWidget *parent, const c
edited_dataset = NULL;
property_edit_dialog = NULL;
-#if KDE_VERSION_MAJOR < 4 && KDE_VERSION_MINOR < 2
+#if TDE_VERSION_MAJOR < 4 && TDE_VERSION_MINOR < 2
tabs = new TQTabWidget(this);
#else
tabs = new KTabWidget(this);
@@ -77,7 +77,7 @@ QalculateEditDataSetDialog::QalculateEditDataSetDialog(TQWidget *parent, const c
fileEdit = new KLineEdit(page1);
grid->addWidget(fileEdit, 1, 1);
grid->addWidget(new TQLabel(i18n("Description:"), page1), 2, 0);
-#if KDE_VERSION_MAJOR < 4 && KDE_VERSION_MINOR < 1
+#if TDE_VERSION_MAJOR < 4 && TDE_VERSION_MINOR < 1
descriptionEdit = new TQTextEdit(page1);
#else
descriptionEdit = new KTextEdit(page1);
@@ -85,7 +85,7 @@ QalculateEditDataSetDialog::QalculateEditDataSetDialog(TQWidget *parent, const c
descriptionEdit->setTextFormat(TQTextEdit::PlainText);
grid->addMultiCellWidget(descriptionEdit, 3, 3, 0, 1);
grid->addWidget(new TQLabel(i18n("Copyright:"), page1), 4, 0);
-#if KDE_VERSION_MAJOR < 4 && KDE_VERSION_MINOR < 1
+#if TDE_VERSION_MAJOR < 4 && TDE_VERSION_MINOR < 1
copyrightEdit = new TQTextEdit(page1);
#else
copyrightEdit = new KTextEdit(page1);
@@ -95,7 +95,7 @@ QalculateEditDataSetDialog::QalculateEditDataSetDialog(TQWidget *parent, const c
TQVBoxLayout *vbox = new TQVBoxLayout(page2, spacingHint());
vbox->addWidget(new TQLabel(i18n("Properties:"), page2));
- propertiesView = new KListView(page2);
+ propertiesView = new TDEListView(page2);
propertiesView->addColumn(i18n("Title"));
propertiesView->addColumn(i18n("Name"));
propertiesView->addColumn(i18n("Type"));
@@ -195,7 +195,7 @@ void QalculateEditDataSetDialog::updateDatasetPropertyList() {
str += i18n("key");
str += ")";
}
- TQListViewItem *item = new KListViewItem(propertiesView, i_prev, tmp_props[i]->title(false).c_str(), tmp_props[i]->getName().c_str(), str);
+ TQListViewItem *item = new TDEListViewItem(propertiesView, i_prev, tmp_props[i]->title(false).c_str(), tmp_props[i]->getName().c_str(), str);
i_prev = item;
propertiesItems[item] = tmp_props[i];
}
@@ -454,7 +454,7 @@ QalculateEditDataPropertyDialog::QalculateEditDataPropertyDialog(TQWidget *paren
titleEdit = new KLineEdit(mainWidget());
grid->addWidget(titleEdit, 2, 1);
grid->addWidget(new TQLabel(i18n("Description:"), mainWidget()), 3, 0);
-#if KDE_VERSION_MAJOR < 4 && KDE_VERSION_MINOR < 1
+#if TDE_VERSION_MAJOR < 4 && TDE_VERSION_MINOR < 1
descriptionEdit = new TQTextEdit(mainWidget());
#else
descriptionEdit = new KTextEdit(mainWidget());
@@ -616,7 +616,7 @@ QalculateEditDataPropertyNamesDialog::QalculateEditDataPropertyNamesDialog(TQWid
TQVBoxLayout *layout = new TQVBoxLayout(this, marginHint(), spacingHint());
- namesView = new KListView(this);
+ namesView = new TDEListView(this);
namesView->addColumn(i18n("Name"));
namesView->addColumn(i18n("Reference"));
namesView->setColumnAlignment(1, TQt::AlignCenter);
@@ -649,7 +649,7 @@ QalculateEditDataPropertyNamesDialog::~QalculateEditDataPropertyNamesDialog() {}
void QalculateEditDataPropertyNamesDialog::newName() {
ExpressionName name;
- TQListViewItem *i = new KListViewItem(namesView, namesView->lastChild(), "", i18n("No"), i18n("No"), i18n("No"), i18n("No"), i18n("No"), i18n("No"), i18n("No"));
+ TQListViewItem *i = new TDEListViewItem(namesView, namesView->lastChild(), "", i18n("No"), i18n("No"), i18n("No"), i18n("No"), i18n("No"), i18n("No"), i18n("No"));
namesView->setSelected(i, true);
tqApp->processEvents();
namesView->rename(i, 0);
@@ -664,7 +664,7 @@ void QalculateEditDataPropertyNamesDialog::setNames(DataProperty *item, const TQ
if(!names_edited && item && item->countNames() > 0) {
TQListViewItem *i_prev = NULL;
for(size_t index = 1; index <= item->countNames(); index++) {
- TQListViewItem *i = new KListViewItem(namesView, i_prev);
+ TQListViewItem *i = new TDEListViewItem(namesView, i_prev);
i_prev = i;
if(item->nameIsReference(index))
i->setText(1, i18n("Yes"));
@@ -682,7 +682,7 @@ void QalculateEditDataPropertyNamesDialog::setNames(DataProperty *item, const TQ
if(it.current())
it.current()->setText(0, namestr);
} else {
- new KListViewItem(namesView, namestr, i18n("No"));
+ new TDEListViewItem(namesView, namestr, i18n("No"));
}
}
}