summaryrefslogtreecommitdiffstats
path: root/kimagemapeditor/imageslistview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kimagemapeditor/imageslistview.cpp')
-rw-r--r--kimagemapeditor/imageslistview.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kimagemapeditor/imageslistview.cpp b/kimagemapeditor/imageslistview.cpp
index 55992101..7db15e1e 100644
--- a/kimagemapeditor/imageslistview.cpp
+++ b/kimagemapeditor/imageslistview.cpp
@@ -16,7 +16,7 @@
***************************************************************************/
// QT
-#include <qptrlist.h>
+#include <tqptrlist.h>
// KDE
@@ -27,7 +27,7 @@
#include "imageslistview.h"
ImagesListViewItem::ImagesListViewItem(ImagesListView* parent, ImageTag* tag)
- : QListViewItem(parent)
+ : TQListViewItem(parent)
{
_imageTag = tag;
update();
@@ -35,8 +35,8 @@ ImagesListViewItem::ImagesListViewItem(ImagesListView* parent, ImageTag* tag)
void ImagesListViewItem::update() {
- QString src="";
- QString usemap="";
+ TQString src="";
+ TQString usemap="";
if (_imageTag->find("src"))
src=*_imageTag->find("src");
if (_imageTag->find("usemap"))
@@ -51,7 +51,7 @@ ImageTag* ImagesListViewItem::imageTag() {
}
-ImagesListView::ImagesListView(QWidget *parent, const char *name)
+ImagesListView::ImagesListView(TQWidget *parent, const char *name)
: KListView(parent, name)
{
addColumn(i18n("Images"));
@@ -60,8 +60,8 @@ ImagesListView::ImagesListView(QWidget *parent, const char *name)
setFullWidth(true);
- connect( this, SIGNAL( selectionChanged(QListViewItem*)),
- this, SLOT( slotSelectionChanged(QListViewItem*)));
+ connect( this, TQT_SIGNAL( selectionChanged(TQListViewItem*)),
+ this, TQT_SLOT( slotSelectionChanged(TQListViewItem*)));
}
@@ -79,7 +79,7 @@ void ImagesListView::addImage(ImageTag* tag)
new ImagesListViewItem(this, tag);
}
-void ImagesListView::addImages(QPtrList<ImageTag> * images)
+void ImagesListView::addImages(TQPtrList<ImageTag> * images)
{
for (ImageTag *tag = images->first(); tag!=0L; tag=images->next()) {
addImage(tag);
@@ -87,7 +87,7 @@ void ImagesListView::addImages(QPtrList<ImageTag> * images)
}
void ImagesListView::clear() {
- QListView::clear();
+ TQListView::clear();
}
void ImagesListView::removeImage(ImageTag* tag) {
@@ -114,7 +114,7 @@ ImagesListViewItem* ImagesListView::findListViewItem(ImageTag* tag) {
kdDebug() << "ImageListView::findListViewItem: start searching ... " << endl;
- for (QListViewItem* item = firstChild(); item ; item = item->nextSibling()) {
+ for (TQListViewItem* item = firstChild(); item ; item = item->nextSibling()) {
ImagesListViewItem *imageItem = static_cast<ImagesListViewItem*>(item);
if (imageItem->imageTag() == tag) {
kdDebug() << "ImageListView::findListViewItem: found it " << endl;
@@ -128,8 +128,8 @@ ImagesListViewItem* ImagesListView::findListViewItem(ImageTag* tag) {
}
-void ImagesListView::slotSelectionChanged(QListViewItem* item) {
- QString src = item->text(0);
+void ImagesListView::slotSelectionChanged(TQListViewItem* item) {
+ TQString src = item->text(0);
emit imageSelected(KURL(_baseUrl,src));
}