diff options
author | Slávek Banko <[email protected]> | 2016-03-26 12:35:35 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2016-03-26 14:10:15 +0100 |
commit | 38dca4b75c471ddf950e2f9f03801c550d7d26fd (patch) | |
tree | f5923ce5d84971f1f394baf7411146f078c02fab /part/kxetextviewsettings.cpp | |
parent | e28665ce3b2e9ec6f09b4c021db7443cac3c4128 (diff) | |
download | kxmleditor-38dca4b75c471ddf950e2f9f03801c550d7d26fd.tar.gz kxmleditor-38dca4b75c471ddf950e2f9f03801c550d7d26fd.zip |
Initial TQt conversion
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'part/kxetextviewsettings.cpp')
-rw-r--r-- | part/kxetextviewsettings.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/part/kxetextviewsettings.cpp b/part/kxetextviewsettings.cpp index 5fb009f..afcb528 100644 --- a/part/kxetextviewsettings.cpp +++ b/part/kxetextviewsettings.cpp @@ -22,31 +22,31 @@ #include <kconfig.h> #include <kdebug.h> #include <kcolorbutton.h> -#include <qcheckbox.h> +#include <tqcheckbox.h> -#include <qframe.h> -#include <qspinbox.h> +#include <tqframe.h> +#include <tqspinbox.h> #define CONF_ENTRY_NAME_COLOR_DEFAULT_TEXT "DefaultText" -#define DFLT_VALUE_COLOR_DEFAULT_TEXT QColor( "#000000" ) +#define DFLT_VALUE_COLOR_DEFAULT_TEXT TQColor( "#000000" ) #define CONF_ENTRY_NAME_COLOR_ELEMENT_NAMES "ElementNames" -#define DFLT_VALUE_COLOR_ELEMENT_NAMES QColor( "#800000" ) +#define DFLT_VALUE_COLOR_ELEMENT_NAMES TQColor( "#800000" ) #define CONF_ENTRY_NAME_COLOR_ATTR_NAMES "AttributeNames" -#define DFLT_VALUE_COLOR_ATTR_NAMES QColor( "#00ffff" ) +#define DFLT_VALUE_COLOR_ATTR_NAMES TQColor( "#00ffff" ) #define CONF_ENTRY_NAME_COLOR_ATTR_VALUES "AttributeValues" -#define DFLT_VALUE_COLOR_ATTR_VALUES QColor( "#00ff00" ) +#define DFLT_VALUE_COLOR_ATTR_VALUES TQColor( "#00ff00" ) #define CONF_ENTRY_NAME_COLOR_SYNTAX_CHARS "SyntaxChars" -#define DFLT_VALUE_COLOR_SYNTAX_CHARS QColor( "#000080" ) +#define DFLT_VALUE_COLOR_SYNTAX_CHARS TQColor( "#000080" ) #define CONF_ENTRY_NAME_COLOR_COMENTS "Comments" -#define DFLT_VALUE_COLOR_COMENTS QColor( "#808080" ) +#define DFLT_VALUE_COLOR_COMENTS TQColor( "#808080" ) #define CONF_ENTRY_NAME_COLOR_ERRORS "SyntaxError" -#define DFLT_VALUE_COLOR_ERRORS QColor( "#ff0000" ) +#define DFLT_VALUE_COLOR_ERRORS TQColor( "#ff0000" ) #define CONF_ENTRY_NAME_INDENT_STEPS "XML indentation" #define DFLT_VALUE_INDENT_STEPS 2 @@ -54,7 +54,7 @@ #define CONF_ENTRY_WRAP_ON "Text Wrap On" #define DFLT_VALUE_WRAP_ON false -KXETextViewSettings::KXETextViewSettings( QObject * pParent, const char * pszName ) +KXETextViewSettings::KXETextViewSettings( TQObject * pParent, const char * pszName ) : KXESettings( "Text editor", pParent, pszName ), m_colorDfltText( DFLT_VALUE_COLOR_DEFAULT_TEXT ), m_colorElemNames( DFLT_VALUE_COLOR_ELEMENT_NAMES ), @@ -106,23 +106,23 @@ void KXETextViewSettings::read( const KConfig * pConfig ) } -QString KXETextViewSettings::dialogPageName() const +TQString KXETextViewSettings::dialogPageName() const { return i18n( "Text view" ); } -QString KXETextViewSettings::dialogPageHeader() const +TQString KXETextViewSettings::dialogPageHeader() const { return i18n( "Text view properties" ); } -QString KXETextViewSettings::dialogPageIcon() const +TQString KXETextViewSettings::dialogPageIcon() const { return "colorize"; } -QWidget * KXETextViewSettings::dialogPage( QFrame * pParent ) +TQWidget * KXETextViewSettings::dialogPage( TQFrame * pParent ) { if ( ! m_pDialogPage ) { @@ -132,13 +132,13 @@ QWidget * KXETextViewSettings::dialogPage( QFrame * pParent ) // and fill its widgets with the corresponding values updatePage(); - connect( m_pDialogPage->m_pColorDfltText, SIGNAL(changed(const QColor&)), this, SIGNAL(sigDialogPageChanged()) ); - connect( m_pDialogPage->m_pColorElemNames, SIGNAL(changed(const QColor&)), this, SIGNAL(sigDialogPageChanged()) ); - connect( m_pDialogPage->m_pColorAttrNames, SIGNAL(changed(const QColor&)), this, SIGNAL(sigDialogPageChanged()) ); - connect( m_pDialogPage->m_pColorAttrValues, SIGNAL(changed(const QColor&)), this, SIGNAL(sigDialogPageChanged()) ); - connect( m_pDialogPage->m_pColorSyntaxChars, SIGNAL(changed(const QColor&)), this, SIGNAL(sigDialogPageChanged()) ); - connect( m_pDialogPage->m_pColorComments, SIGNAL(changed(const QColor&)), this, SIGNAL(sigDialogPageChanged()) ); - connect( m_pDialogPage->m_pColorErrors, SIGNAL(changed(const QColor&)), this, SIGNAL(sigDialogPageChanged()) ); + connect( m_pDialogPage->m_pColorDfltText, SIGNAL(changed(const TQColor&)), this, SIGNAL(sigDialogPageChanged()) ); + connect( m_pDialogPage->m_pColorElemNames, SIGNAL(changed(const TQColor&)), this, SIGNAL(sigDialogPageChanged()) ); + connect( m_pDialogPage->m_pColorAttrNames, SIGNAL(changed(const TQColor&)), this, SIGNAL(sigDialogPageChanged()) ); + connect( m_pDialogPage->m_pColorAttrValues, SIGNAL(changed(const TQColor&)), this, SIGNAL(sigDialogPageChanged()) ); + connect( m_pDialogPage->m_pColorSyntaxChars, SIGNAL(changed(const TQColor&)), this, SIGNAL(sigDialogPageChanged()) ); + connect( m_pDialogPage->m_pColorComments, SIGNAL(changed(const TQColor&)), this, SIGNAL(sigDialogPageChanged()) ); + connect( m_pDialogPage->m_pColorErrors, SIGNAL(changed(const TQColor&)), this, SIGNAL(sigDialogPageChanged()) ); connect( m_pDialogPage->m_pIndentSteps, SIGNAL(valueChanged(int)), this, SIGNAL(sigDialogPageChanged()) ); connect( m_pDialogPage->m_pCheckBoxWrapOn, SIGNAL(toggled(bool)), this, SIGNAL(sigDialogPageChanged()) ); } |