summaryrefslogtreecommitdiffstats
path: root/kjsembed/qtbindings/qlistview_imp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kjsembed/qtbindings/qlistview_imp.cpp')
-rw-r--r--kjsembed/qtbindings/qlistview_imp.cpp154
1 files changed, 77 insertions, 77 deletions
diff --git a/kjsembed/qtbindings/qlistview_imp.cpp b/kjsembed/qtbindings/qlistview_imp.cpp
index a5f4c022..ef670d95 100644
--- a/kjsembed/qtbindings/qlistview_imp.cpp
+++ b/kjsembed/qtbindings/qlistview_imp.cpp
@@ -1,11 +1,11 @@
-#include <qcstring.h>
-#include <qpalette.h>
-#include <qpixmap.h>
-#include <qfont.h>
-#include <qiconset.h>
+#include <tqcstring.h>
+#include <tqpalette.h>
+#include <tqpixmap.h>
+#include <tqfont.h>
+#include <tqiconset.h>
#include <kjs/object.h>
@@ -14,7 +14,7 @@
#include <kjsembed/jsopaqueproxy.h>
#include <kjsembed/jsbinding.h>
-#include <qlistview.h>
+#include <tqlistview.h>
#include "qlistview_imp.h"
/**
@@ -108,7 +108,7 @@ void QListViewImp::addBindings( KJS::ExecState *exec, KJS::Object &object )
};
int idx = 0;
- QCString lastName;
+ TQCString lastName;
while( methods[idx].id ) {
if ( lastName != methods[idx].name ) {
@@ -131,20 +131,20 @@ void QListViewImp::addBindings( KJS::ExecState *exec, KJS::Object &object )
EnumValue enums[] = {
// enum WidthMode
- { "Manual", QListView::Manual },
- { "Maximum", QListView::Maximum },
+ { "Manual", TQListView::Manual },
+ { "Maximum", TQListView::Maximum },
// enum SelectionMode
- { "Single", QListView::Single },
- { "Multi", QListView::Multi },
- { "Extended", QListView::Extended },
- { "NoSelection", QListView::NoSelection },
+ { "Single", TQListView::Single },
+ { "Multi", TQListView::Multi },
+ { "Extended", TQListView::Extended },
+ { "NoSelection", TQListView::NoSelection },
// enum ResizeMode
- { "NoColumn", QListView::NoColumn },
- { "AllColumns", QListView::AllColumns },
- { "LastColumn", QListView::LastColumn },
+ { "NoColumn", TQListView::NoColumn },
+ { "AllColumns", TQListView::AllColumns },
+ { "LastColumn", TQListView::LastColumn },
// enum RenameAction
- { "Accept", QListView::Accept },
- { "Reject", QListView::Reject },
+ { "Accept", TQListView::Accept },
+ { "Reject", TQListView::Reject },
{ 0, 0 }
};
@@ -156,23 +156,23 @@ void QListViewImp::addBindings( KJS::ExecState *exec, KJS::Object &object )
}
-QListView *QListViewImp::toQListView( KJS::Object &self )
+TQListView *QListViewImp::toQListView( KJS::Object &self )
{
JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() );
if ( ob ) {
- QObject *obj = ob->object();
+ TQObject *obj = ob->object();
if ( obj )
- return dynamic_cast<QListView *>( obj );
+ return dynamic_cast<TQListView *>( obj );
}
JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() );
if ( !op )
return 0;
- if ( op->typeName() != "QListView" )
+ if ( op->typeName() != "TQListView" )
return 0;
- return op->toNative<QListView>();
+ return op->toNative<TQListView>();
}
@@ -188,7 +188,7 @@ KJS::Object QListViewImp::construct( KJS::ExecState *exec, const KJS::List &args
break;
}
- QString msg = i18n("QListViewCons has no constructor with id '%1'.").arg(id);
+ TQString msg = i18n("QListViewCons has no constructor with id '%1'.").arg(id);
return throwError(exec, msg,KJS::ReferenceError);
}
@@ -197,13 +197,13 @@ KJS::Object QListViewImp::QListView_1( KJS::ExecState *exec, const KJS::List &ar
{
// TODO
- QWidget *arg0 = 0L;
+ TQWidget *arg0 = 0L;
// TODO
- QWidget *arg1 = 0L;
+ TQWidget *arg1 = 0L;
// TODO
- QWidget *arg2 = 0L;
+ TQWidget *arg2 = 0L;
}
@@ -493,7 +493,7 @@ KJS::Value QListViewImp::call( KJS::ExecState *exec, KJS::Object &self, const KJ
break;
}
- QString msg = i18n( "QListViewImp has no method with id '%1'." ).arg( id );
+ TQString msg = i18n( "QListViewImp has no method with id '%1'." ).arg( id );
return throwError(exec, msg,KJS::ReferenceError);
}
@@ -521,10 +521,10 @@ KJS::Value QListViewImp::setTreeStepSize_4( KJS::ExecState *exec, KJS::Object &o
KJS::Value QListViewImp::insertItem_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- // Unsupported parameter QListViewItem *
+ // Unsupported parameter TQListViewItem *
return KJS::Value();
- QListViewItem * arg0; // Dummy
+ TQListViewItem * arg0; // Dummy
instance->insertItem(
arg0 );
@@ -535,10 +535,10 @@ KJS::Value QListViewImp::insertItem_5( KJS::ExecState *exec, KJS::Object &obj, c
KJS::Value QListViewImp::takeItem_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- // Unsupported parameter QListViewItem *
+ // Unsupported parameter TQListViewItem *
return KJS::Value();
- QListViewItem * arg0; // Dummy
+ TQListViewItem * arg0; // Dummy
instance->takeItem(
arg0 );
@@ -549,10 +549,10 @@ KJS::Value QListViewImp::takeItem_6( KJS::ExecState *exec, KJS::Object &obj, con
KJS::Value QListViewImp::removeItem_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- // Unsupported parameter QListViewItem *
+ // Unsupported parameter TQListViewItem *
return KJS::Value();
- QListViewItem * arg0; // Dummy
+ TQListViewItem * arg0; // Dummy
instance->removeItem(
arg0 );
@@ -564,14 +564,14 @@ KJS::Value QListViewImp::header_8( KJS::ExecState *exec, KJS::Object &obj, const
{
instance->header( );
- return KJS::Value(); // Returns 'QHeader *'
+ return KJS::Value(); // Returns 'TQHeader *'
}
KJS::Value QListViewImp::addColumn_9( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- QString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : QString::null;
+ TQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TQString::null;
int arg1 = (args.size() >= 2) ? args[1].toInteger(exec) : -1;
@@ -589,9 +589,9 @@ KJS::Value QListViewImp::addColumn_10( KJS::ExecState *exec, KJS::Object &obj, c
// Unsupported parameter const QIconSet
return KJS::Value();
- const QIconSet arg0; // Dummy
+ const TQIconSet arg0; // Dummy
- QString arg1 = (args.size() >= 2) ? args[1].toString(exec).qstring() : QString::null;
+ TQString arg1 = (args.size() >= 2) ? args[1].toString(exec).qstring() : TQString::null;
int arg2 = (args.size() >= 3) ? args[2].toInteger(exec) : -1;
@@ -620,7 +620,7 @@ KJS::Value QListViewImp::setColumnText_12( KJS::ExecState *exec, KJS::Object &ob
int arg0 = (args.size() >= 1) ? args[0].toInteger(exec) : -1;
- QString arg1 = (args.size() >= 2) ? args[1].toString(exec).qstring() : QString::null;
+ TQString arg1 = (args.size() >= 2) ? args[1].toString(exec).qstring() : TQString::null;
instance->setColumnText(
arg0,
@@ -637,9 +637,9 @@ KJS::Value QListViewImp::setColumnText_13( KJS::ExecState *exec, KJS::Object &ob
// Unsupported parameter const QIconSet
return KJS::Value();
- const QIconSet arg1; // Dummy
+ const TQIconSet arg1; // Dummy
- QString arg2 = (args.size() >= 3) ? args[2].toString(exec).qstring() : QString::null;
+ TQString arg2 = (args.size() >= 3) ? args[2].toString(exec).qstring() : TQString::null;
instance->setColumnText(
arg0,
@@ -654,7 +654,7 @@ KJS::Value QListViewImp::columnText_14( KJS::ExecState *exec, KJS::Object &obj,
int arg0 = (args.size() >= 1) ? args[0].toInteger(exec) : -1;
- QString ret;
+ TQString ret;
ret = instance->columnText(
arg0 );
return KJS::String( ret );
@@ -761,24 +761,24 @@ KJS::Value QListViewImp::show_22( KJS::ExecState *exec, KJS::Object &obj, const
KJS::Value QListViewImp::itemAt_23( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- // Unsupported parameter const QPoint &
+ // Unsupported parameter const TQPoint &
return KJS::Value();
- const QPoint & arg0; // Dummy
+ const TQPoint & arg0; // Dummy
instance->itemAt(
arg0 );
- return KJS::Value(); // Returns 'QListViewItem *'
+ return KJS::Value(); // Returns 'TQListViewItem *'
}
KJS::Value QListViewImp::itemRect_24( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- // Unsupported parameter const QListViewItem *
+ // Unsupported parameter const TQListViewItem *
return KJS::Value();
- const QListViewItem * arg0; // Dummy
+ const TQListViewItem * arg0; // Dummy
instance->itemRect(
arg0 );
@@ -789,10 +789,10 @@ KJS::Value QListViewImp::itemRect_24( KJS::ExecState *exec, KJS::Object &obj, co
KJS::Value QListViewImp::itemPos_25( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- // Unsupported parameter const QListViewItem *
+ // Unsupported parameter const TQListViewItem *
return KJS::Value();
- const QListViewItem * arg0; // Dummy
+ const TQListViewItem * arg0; // Dummy
int ret;
ret = instance->itemPos(
@@ -804,10 +804,10 @@ KJS::Value QListViewImp::itemPos_25( KJS::ExecState *exec, KJS::Object &obj, con
KJS::Value QListViewImp::ensureItemVisible_26( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- // Unsupported parameter const QListViewItem *
+ // Unsupported parameter const TQListViewItem *
return KJS::Value();
- const QListViewItem * arg0; // Dummy
+ const TQListViewItem * arg0; // Dummy
instance->ensureItemVisible(
arg0 );
@@ -818,10 +818,10 @@ KJS::Value QListViewImp::ensureItemVisible_26( KJS::ExecState *exec, KJS::Object
KJS::Value QListViewImp::repaintItem_27( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- // Unsupported parameter const QListViewItem *
+ // Unsupported parameter const TQListViewItem *
return KJS::Value();
- const QListViewItem * arg0; // Dummy
+ const TQListViewItem * arg0; // Dummy
instance->repaintItem(
arg0 );
@@ -882,10 +882,10 @@ KJS::Value QListViewImp::clearSelection_32( KJS::ExecState *exec, KJS::Object &o
KJS::Value QListViewImp::setSelected_33( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- // Unsupported parameter QListViewItem *
+ // Unsupported parameter TQListViewItem *
return KJS::Value();
- QListViewItem * arg0; // Dummy
+ TQListViewItem * arg0; // Dummy
bool arg1 = (args.size() >= 2) ? args[1].toBoolean(exec) : false;
@@ -899,10 +899,10 @@ KJS::Value QListViewImp::setSelected_33( KJS::ExecState *exec, KJS::Object &obj,
KJS::Value QListViewImp::setSelectionAnchor_34( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- // Unsupported parameter QListViewItem *
+ // Unsupported parameter TQListViewItem *
return KJS::Value();
- QListViewItem * arg0; // Dummy
+ TQListViewItem * arg0; // Dummy
instance->setSelectionAnchor(
arg0 );
@@ -913,10 +913,10 @@ KJS::Value QListViewImp::setSelectionAnchor_34( KJS::ExecState *exec, KJS::Objec
KJS::Value QListViewImp::isSelected_35( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- // Unsupported parameter const QListViewItem *
+ // Unsupported parameter const TQListViewItem *
return KJS::Value();
- const QListViewItem * arg0; // Dummy
+ const TQListViewItem * arg0; // Dummy
bool ret;
ret = instance->isSelected(
@@ -929,17 +929,17 @@ KJS::Value QListViewImp::selectedItem_36( KJS::ExecState *exec, KJS::Object &obj
{
instance->selectedItem( );
- return KJS::Value(); // Returns 'QListViewItem *'
+ return KJS::Value(); // Returns 'TQListViewItem *'
}
KJS::Value QListViewImp::setOpen_37( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- // Unsupported parameter QListViewItem *
+ // Unsupported parameter TQListViewItem *
return KJS::Value();
- QListViewItem * arg0; // Dummy
+ TQListViewItem * arg0; // Dummy
bool arg1 = (args.size() >= 2) ? args[1].toBoolean(exec) : false;
@@ -953,10 +953,10 @@ KJS::Value QListViewImp::setOpen_37( KJS::ExecState *exec, KJS::Object &obj, con
KJS::Value QListViewImp::isOpen_38( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- // Unsupported parameter const QListViewItem *
+ // Unsupported parameter const TQListViewItem *
return KJS::Value();
- const QListViewItem * arg0; // Dummy
+ const TQListViewItem * arg0; // Dummy
bool ret;
ret = instance->isOpen(
@@ -968,10 +968,10 @@ KJS::Value QListViewImp::isOpen_38( KJS::ExecState *exec, KJS::Object &obj, cons
KJS::Value QListViewImp::setCurrentItem_39( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- // Unsupported parameter QListViewItem *
+ // Unsupported parameter TQListViewItem *
return KJS::Value();
- QListViewItem * arg0; // Dummy
+ TQListViewItem * arg0; // Dummy
instance->setCurrentItem(
arg0 );
@@ -983,7 +983,7 @@ KJS::Value QListViewImp::currentItem_40( KJS::ExecState *exec, KJS::Object &obj,
{
instance->currentItem( );
- return KJS::Value(); // Returns 'QListViewItem *'
+ return KJS::Value(); // Returns 'TQListViewItem *'
}
@@ -991,7 +991,7 @@ KJS::Value QListViewImp::firstChild_41( KJS::ExecState *exec, KJS::Object &obj,
{
instance->firstChild( );
- return KJS::Value(); // Returns 'QListViewItem *'
+ return KJS::Value(); // Returns 'TQListViewItem *'
}
@@ -999,7 +999,7 @@ KJS::Value QListViewImp::lastItem_42( KJS::ExecState *exec, KJS::Object &obj, co
{
instance->lastItem( );
- return KJS::Value(); // Returns 'QListViewItem *'
+ return KJS::Value(); // Returns 'TQListViewItem *'
}
@@ -1139,7 +1139,7 @@ KJS::Value QListViewImp::sort_55( KJS::ExecState *exec, KJS::Object &obj, const
KJS::Value QListViewImp::setFont_56( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- QFont arg0; // TODO
+ TQFont arg0; // TODO
instance->setFont(
arg0 );
@@ -1150,7 +1150,7 @@ KJS::Value QListViewImp::setFont_56( KJS::ExecState *exec, KJS::Object &obj, con
KJS::Value QListViewImp::setPalette_57( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- QPalette arg0; // TODO
+ TQPalette arg0; // TODO
instance->setPalette(
arg0 );
@@ -1161,15 +1161,15 @@ KJS::Value QListViewImp::setPalette_57( KJS::ExecState *exec, KJS::Object &obj,
KJS::Value QListViewImp::eventFilter_58( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- // Unsupported parameter QObject *
+ // Unsupported parameter TQObject *
return KJS::Value();
- QObject * arg0; // Dummy
+ TQObject * arg0; // Dummy
- // Unsupported parameter QEvent *
+ // Unsupported parameter TQEvent *
return KJS::Value();
- QEvent * arg1; // Dummy
+ TQEvent * arg1; // Dummy
bool ret;
ret = instance->eventFilter(
@@ -1260,7 +1260,7 @@ KJS::Value QListViewImp::resizeMode_66( KJS::ExecState *exec, KJS::Object &obj,
KJS::Value QListViewImp::findItem_67( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- QString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : QString::null;
+ TQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TQString::null;
int arg1 = (args.size() >= 2) ? args[1].toInteger(exec) : -1;
@@ -1273,7 +1273,7 @@ KJS::Value QListViewImp::findItem_67( KJS::ExecState *exec, KJS::Object &obj, co
arg0,
arg1,
arg2 );
- return KJS::Value(); // Returns 'QListViewItem *'
+ return KJS::Value(); // Returns 'TQListViewItem *'
}