summaryrefslogtreecommitdiffstats
path: root/part/kxe_viewattributes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'part/kxe_viewattributes.cpp')
-rw-r--r--part/kxe_viewattributes.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/part/kxe_viewattributes.cpp b/part/kxe_viewattributes.cpp
index bfa0609..0a4d3f3 100644
--- a/part/kxe_viewattributes.cpp
+++ b/part/kxe_viewattributes.cpp
@@ -23,8 +23,8 @@
#include <kdebug.h>
#include <klocale.h>
-KXE_ViewAttributes::KXE_ViewAttributes( QWidget * pParent, const char * pszName )
- : QTable( 0, 3, pParent, pszName )
+KXE_ViewAttributes::KXE_ViewAttributes( TQWidget * pParent, const char * pszName )
+ : TQTable( 0, 3, pParent, pszName )
{
horizontalHeader()->setLabel( 0, i18n("Namespace") );
horizontalHeader()->setLabel( 1, i18n("Name") );
@@ -37,17 +37,17 @@ KXE_ViewAttributes::KXE_ViewAttributes( QWidget * pParent, const char * pszName
connect( this, SIGNAL(valueChanged(int,int)), this, SLOT(slotItemRenamedInplace(int,int)) );
}
-QDomAttr KXE_ViewAttributes::getSelectedAttribute() const
+TQDomAttr KXE_ViewAttributes::getSelectedAttribute() const
{
if ( currentRow() == -1 )
- return QDomAttr();
+ return TQDomAttr();
if ( m_domElement.attributes().item(currentRow()).isAttr() )
{
return m_domElement.attributes().item(currentRow()).toAttr();
}
else
- return QDomAttr();
+ return TQDomAttr();
}
void KXE_ViewAttributes::setReadWrite( bool fReadWrite )
@@ -56,19 +56,19 @@ void KXE_ViewAttributes::setReadWrite( bool fReadWrite )
setColumnReadOnly( 2, ! fReadWrite );
if ( fReadWrite )
- connect( this, SIGNAL(contextMenuRequested(int,int,const QPoint&)), this, SLOT(slotContextMenuRequested(int,int,const QPoint&)) );
+ connect( this, SIGNAL(contextMenuRequested(int,int,const TQPoint&)), this, SLOT(slotContextMenuRequested(int,int,const TQPoint&)) );
else
- disconnect( this, SIGNAL(contextMenuRequested(int,int,const QPoint&)), this, SLOT(slotContextMenuRequested(int,int,const QPoint&)) );
+ disconnect( this, SIGNAL(contextMenuRequested(int,int,const TQPoint&)), this, SLOT(slotContextMenuRequested(int,int,const TQPoint&)) );
}
-void KXE_ViewAttributes::slotContextMenuRequested( int nRow, int nCol, const QPoint & pos )
+void KXE_ViewAttributes::slotContextMenuRequested( int nRow, int nCol, const TQPoint & pos )
{
nCol = nCol;
- QString szMenuName = ( nRow == -1 ) ? "popupXmlAttributes" : "popupXmlAttribute";
+ TQString szMenuName = ( nRow == -1 ) ? "popupXmlAttributes" : "popupXmlAttribute";
emit sigContextMenuRequested( szMenuName, pos );
}
-void KXE_ViewAttributes::slotChange( const QDomElement & element )
+void KXE_ViewAttributes::slotChange( const TQDomElement & element )
{
m_domElement = element;
@@ -79,7 +79,7 @@ void KXE_ViewAttributes::slotChange( const QDomElement & element )
{
for ( uint iRow = 0; iRow < iLength; iRow++ )
{
- QDomNode node = m_domElement.attributes().item(iRow);
+ TQDomNode node = m_domElement.attributes().item(iRow);
if ( node.isAttr() )
{
setText( iRow, 0, node.toAttr().namespaceURI() );
@@ -105,12 +105,12 @@ void KXE_ViewAttributes::slotItemRenamedInplace( int nRow, int nCol )
return;
}
- QDomNode node = m_domElement.attributes().item(nRow);
+ TQDomNode node = m_domElement.attributes().item(nRow);
if ( node.isAttr() )
{ if (nCol == 1)
{
// check if name is OK
- QString strMessage = KXEAttributeDialog::checkName(text(nRow,nCol));
+ TQString strMessage = KXEAttributeDialog::checkName(text(nRow,nCol));
if(strMessage.length() > 0)
{
// restore old name
@@ -139,7 +139,7 @@ void KXE_ViewAttributes::slotItemRenamedInplace( int nRow, int nCol )
if ( node.toAttr().value() != text(nRow,nCol) ) // only if the value really was changed
{
// check if value is OK
- QString strMessage = KXEAttributeDialog::checkValue(text(nRow,nCol));
+ TQString strMessage = KXEAttributeDialog::checkValue(text(nRow,nCol));
if(strMessage.length() > 0)
{
// restore old value