summaryrefslogtreecommitdiffstats
path: root/kimagemapeditor/mapslistview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kimagemapeditor/mapslistview.cpp')
-rw-r--r--kimagemapeditor/mapslistview.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/kimagemapeditor/mapslistview.cpp b/kimagemapeditor/mapslistview.cpp
index d3a9ebe9..d215e157 100644
--- a/kimagemapeditor/mapslistview.cpp
+++ b/kimagemapeditor/mapslistview.cpp
@@ -23,8 +23,8 @@
#include "mapslistview.h"
-MapsListView::MapsListView(TQWidget *parent, const char *name)
-: TQVBox(parent, name) {
+MapsListView::MapsListView(TQWidget *tqparent, const char *name)
+: TQVBox(tqparent, name) {
_listView = new KListView(this);
_listView->addColumn(i18n("Maps"));
_listView->setFullWidth(true);
@@ -42,7 +42,7 @@ MapsListView::MapsListView(TQWidget *parent, const char *name)
MapsListView::~MapsListView() {
}
-void MapsListView::addMap(const TQString & name = TQString::null) {
+void MapsListView::addMap(const TQString & name = TQString()) {
new TQListViewItem(_listView,name);
//kdDebug() << "MapsListView::addMap : Added map '" << name << "'" << endl;
@@ -56,7 +56,7 @@ void MapsListView::addMaps(TQPtrList<MapTag> * maps) {
}
void MapsListView::selectMap(const TQString & name) {
- TQListViewItem* item = _listView->findItem(name,0);
+ TQListViewItem* item = _listView->tqfindItem(name,0);
if (item) {
selectMap(item);
} else
@@ -83,7 +83,7 @@ TQString MapsListView::selectedMap() {
}
void MapsListView::removeMap(const TQString & name) {
- TQListViewItem* item = _listView->findItem(name,0);
+ TQListViewItem* item = _listView->tqfindItem(name,0);
if (item) {
_listView->takeItem(item);
_listView->setSelected(_listView->currentItem(),true);
@@ -108,7 +108,7 @@ void MapsListView::slotItemRenamed(TQListViewItem* item) {
void MapsListView::changeMapName(const TQString & oldName, const TQString & newName) {
// kdDebug() << "MapsListView::changeMapName : " << oldName << " to " << newName << endl;
- TQListViewItem* item = _listView->findItem(oldName,0);
+ TQListViewItem* item = _listView->tqfindItem(oldName,0);
if (item) {
item->setText(0,newName);
// kdDebug() << "MapsListView::changeMapName : successful" << endl;