summaryrefslogtreecommitdiffstats
path: root/kdevdesigner/designer/variabledialogimpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdevdesigner/designer/variabledialogimpl.cpp')
-rw-r--r--kdevdesigner/designer/variabledialogimpl.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/kdevdesigner/designer/variabledialogimpl.cpp b/kdevdesigner/designer/variabledialogimpl.cpp
index abaa7c68..19af5e6c 100644
--- a/kdevdesigner/designer/variabledialogimpl.cpp
+++ b/kdevdesigner/designer/variabledialogimpl.cpp
@@ -24,11 +24,11 @@
**
**********************************************************************/
-#include <qlistview.h>
-#include <qgroupbox.h>
+#include <tqlistview.h>
+#include <tqgroupbox.h>
#include <klineedit.h>
-#include <qcombobox.h>
-#include <qmessagebox.h>
+#include <tqcombobox.h>
+#include <tqmessagebox.h>
#include "metadatabase.h"
#include "formwindow.h"
@@ -40,14 +40,14 @@
#include <klocale.h>
-VariableDialog::VariableDialog( FormWindow *fw, QWidget *parent )
+VariableDialog::VariableDialog( FormWindow *fw, TQWidget *parent )
: VariableDialogBase( parent ), formWindow( fw )
{
varView->setSorting( -1 );
- QValueList<MetaDataBase::Variable> varLst = MetaDataBase::variables( formWindow );
- QValueList<MetaDataBase::Variable>::Iterator it = varLst.begin();
+ TQValueList<MetaDataBase::Variable> varLst = MetaDataBase::variables( formWindow );
+ TQValueList<MetaDataBase::Variable>::Iterator it = varLst.begin();
for ( ; it != varLst.end(); ++it ) {
- QListViewItem *i = new QListViewItem( varView );
+ TQListViewItem *i = new TQListViewItem( varView );
i->setText( 0, (*it).varName );
i->setText( 1, (*it).varAccess );
}
@@ -62,18 +62,18 @@ VariableDialog::~VariableDialog()
{
}
-void VariableDialog::setCurrentItem( QString text )
+void VariableDialog::setCurrentItem( TQString text )
{
- QListViewItem *i = varView->findItem( text, 0 );
+ TQListViewItem *i = varView->findItem( text, 0 );
if ( i )
varView->setCurrentItem( i );
}
void VariableDialog::okClicked()
{
- QValueList<MetaDataBase::Variable> lst;
+ TQValueList<MetaDataBase::Variable> lst;
- QListViewItemIterator it( varView );
+ TQListViewItemIterator it( varView );
while ( it.current() != 0 ) {
MetaDataBase::Variable v;
v.varName = it.current()->text( 0 ).simplifyWhiteSpace();
@@ -85,9 +85,9 @@ void VariableDialog::okClicked()
}
if ( !lst.isEmpty() ) {
- QValueList<MetaDataBase::Variable> invalidLst;
- QValueList<MetaDataBase::Variable>::Iterator it1 = lst.begin();
- QValueList<MetaDataBase::Variable>::Iterator it2;
+ TQValueList<MetaDataBase::Variable> invalidLst;
+ TQValueList<MetaDataBase::Variable>::Iterator it1 = lst.begin();
+ TQValueList<MetaDataBase::Variable>::Iterator it2;
for ( ; it1 != lst.end(); ++it1 ) {
it2 = it1;
++it2;
@@ -100,7 +100,7 @@ void VariableDialog::okClicked()
}
}
if ( !invalidLst.isEmpty() ) {
- if ( QMessageBox::information( this, i18n( "Edit Variables" ),
+ if ( TQMessageBox::information( this, i18n( "Edit Variables" ),
i18n( "One variable has been declared twice.\n"
"Remove this variable?" ), i18n( "&Yes" ), i18n( "&No" ) ) == 0 ) {
for ( it2 = invalidLst.begin(); it2 != invalidLst.end(); ++it2 ) {
@@ -127,7 +127,7 @@ void VariableDialog::okClicked()
void VariableDialog::addVariable()
{
- QListViewItem *i = new QListViewItem( varView, varView->lastItem() );
+ TQListViewItem *i = new TQListViewItem( varView, varView->lastItem() );
i->setText( 0, "int newVariable" );
i->setText( 1, "protected" );
varView->setCurrentItem( i );
@@ -138,7 +138,7 @@ void VariableDialog::addVariable()
void VariableDialog::deleteVariable()
{
- QListViewItem *i = varView->selectedItem();
+ TQListViewItem *i = varView->selectedItem();
if ( !i )
return;
delete i;
@@ -147,7 +147,7 @@ void VariableDialog::deleteVariable()
varView->setSelected( varView->firstChild(), TRUE );
}
-void VariableDialog::currentItemChanged( QListViewItem *i )
+void VariableDialog::currentItemChanged( TQListViewItem *i )
{
if ( !i ) {
varName->clear();