diff options
Diffstat (limited to 'part/kxe_viewelement.cpp')
-rw-r--r-- | part/kxe_viewelement.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/part/kxe_viewelement.cpp b/part/kxe_viewelement.cpp index 21c1ee5..39271b9 100644 --- a/part/kxe_viewelement.cpp +++ b/part/kxe_viewelement.cpp @@ -26,37 +26,37 @@ #include <kconfig.h> #include <ktextedit.h> -#include <qdom.h> -#include <qcolor.h> -#include <qpalette.h> +#include <tqdom.h> +#include <tqcolor.h> +#include <tqpalette.h> #include "qdom_add.h" #define CONFIG_SPLITTER_SIZES "View Element splitter sizes" -KXE_ViewElement::KXE_ViewElement( QWidget * pParent, KConfig *pConfig, const char * pszName ) - : QSplitter( Qt::Vertical, pParent, pszName ) +KXE_ViewElement::KXE_ViewElement( TQWidget * pParent, KConfig *pConfig, const char * pszName ) + : TQSplitter( TQt::Vertical, pParent, pszName ) { setOpaqueResize(true); m_pConfig = pConfig; m_pViewAttributes = new KXE_ViewAttributes( this, "table of element attributes"); - connect( m_pViewAttributes, SIGNAL(sigContextMenuRequested(const QString&,const QPoint&)), this, SIGNAL(sigContextMenuRequested(const QString&,const QPoint&)) ); + connect( m_pViewAttributes, SIGNAL(sigContextMenuRequested(const TQString&,const TQPoint&)), this, SIGNAL(sigContextMenuRequested(const TQString&,const TQPoint&)) ); - connect( m_pViewAttributes, SIGNAL(sigAttributeNameChangedInplace(const QDomAttr&, const QString)), this, SIGNAL(sigAttributeNameChangedInplace(const QDomAttr&, const QString)) ); - connect( m_pViewAttributes, SIGNAL(sigAttributeValueChangedInplace(const QDomAttr&, const QString)), this, SIGNAL(sigAttributeValueChangedInplace(const QDomAttr&, const QString)) ); + connect( m_pViewAttributes, SIGNAL(sigAttributeNameChangedInplace(const TQDomAttr&, const TQString)), this, SIGNAL(sigAttributeNameChangedInplace(const TQDomAttr&, const TQString)) ); + connect( m_pViewAttributes, SIGNAL(sigAttributeValueChangedInplace(const TQDomAttr&, const TQString)), this, SIGNAL(sigAttributeValueChangedInplace(const TQDomAttr&, const TQString)) ); m_pViewPlainXML = new KTextEdit( this, "plain XML" ); m_pViewPlainXML->setReadOnly(true); m_pViewPlainXML->setTextFormat(KTextEdit::PlainText); m_pViewPlainXML->setPaletteBackgroundColor(pParent->palette().active().base()); // Owerwrite read-only background color - m_pViewPlainXML->setWordWrap( QTextEdit::NoWrap ); + m_pViewPlainXML->setWordWrap( TQTextEdit::NoWrap ); m_pSyntaxHighlighter = new KXESyntaxHighlighter(m_pViewPlainXML); // configuring splitter sizes if (m_pConfig) { - QValueList<int> list = m_pConfig->readIntListEntry(CONFIG_SPLITTER_SIZES); + TQValueList<int> list = m_pConfig->readIntListEntry(CONFIG_SPLITTER_SIZES); if (!list.isEmpty()) setSizes(list); } @@ -76,7 +76,7 @@ KXE_ViewElement::~KXE_ViewElement() delete m_pSyntaxHighlighter; } -QDomAttr KXE_ViewElement::getSelectedAttribute() const +TQDomAttr KXE_ViewElement::getSelectedAttribute() const { return m_pViewAttributes->getSelectedAttribute(); } @@ -86,7 +86,7 @@ void KXE_ViewElement::setReadWrite( bool fReadWrite ) m_pViewAttributes->setReadWrite(fReadWrite); } -void KXE_ViewElement::slotChange( const QDomElement & element ) +void KXE_ViewElement::slotChange( const TQDomElement & element ) { // change attribute view m_pViewAttributes->slotChange(element); @@ -113,13 +113,13 @@ void KXE_ViewElement::slotTextViewSettingsChanged() if(KXMLEditorFactory::configuration()->textview()->isWrapOn()) { - m_pViewPlainXML->setHScrollBarMode(QScrollView::AlwaysOff); - m_pViewPlainXML->setWordWrap(QTextEdit::WidgetWidth); + m_pViewPlainXML->setHScrollBarMode(TQScrollView::AlwaysOff); + m_pViewPlainXML->setWordWrap(TQTextEdit::WidgetWidth); } else { - m_pViewPlainXML->setHScrollBarMode(QScrollView::Auto); - m_pViewPlainXML->setWordWrap(QTextEdit::NoWrap); + m_pViewPlainXML->setHScrollBarMode(TQScrollView::Auto); + m_pViewPlainXML->setWordWrap(TQTextEdit::NoWrap); } m_pSyntaxHighlighter->rehighlight(); |