summaryrefslogtreecommitdiffstats
path: root/kompare/libdialogpages/viewpage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kompare/libdialogpages/viewpage.cpp')
-rw-r--r--kompare/libdialogpages/viewpage.cpp68
1 files changed, 34 insertions, 34 deletions
diff --git a/kompare/libdialogpages/viewpage.cpp b/kompare/libdialogpages/viewpage.cpp
index c4e61e8d..1deb9e21 100644
--- a/kompare/libdialogpages/viewpage.cpp
+++ b/kompare/libdialogpages/viewpage.cpp
@@ -17,12 +17,12 @@
**
***************************************************************************/
-#include <qcheckbox.h>
-#include <qgroupbox.h>
-#include <qhgroupbox.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qspinbox.h>
+#include <tqcheckbox.h>
+#include <tqgroupbox.h>
+#include <tqhgroupbox.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqspinbox.h>
#include <kapplication.h>
#include <kcolorbutton.h>
@@ -33,62 +33,62 @@
#include "viewpage.h"
#include "viewsettings.h"
-ViewPage::ViewPage( QWidget* parent ) : PageBase( parent )
+ViewPage::ViewPage( TQWidget* parent ) : PageBase( parent )
{
- QWidget* page;
- QVBoxLayout* layout;
- QGroupBox* colorGroupBox;
- QHGroupBox* snolGroupBox;
- QHGroupBox* tabGroupBox;
- QLabel* label;
-
- page = new QWidget( this );
- layout = new QVBoxLayout( page );
+ TQWidget* page;
+ TQVBoxLayout* layout;
+ TQGroupBox* colorGroupBox;
+ TQHGroupBox* snolGroupBox;
+ TQHGroupBox* tabGroupBox;
+ TQLabel* label;
+
+ page = new TQWidget( this );
+ layout = new TQVBoxLayout( page );
layout->setSpacing( KDialog::spacingHint() );
layout->setMargin( KDialog::marginHint() );
// add a groupbox
- colorGroupBox = new QGroupBox( 2, Qt::Horizontal, i18n( "Colors" ), page );
+ colorGroupBox = new TQGroupBox( 2, Qt::Horizontal, i18n( "Colors" ), page );
layout->addWidget( colorGroupBox );
colorGroupBox->setMargin( KDialog::marginHint() );
// add the removeColor
- label = new QLabel( i18n( "Removed color:" ), colorGroupBox );
+ label = new TQLabel( i18n( "Removed color:" ), colorGroupBox );
m_removedColorButton = new KColorButton( colorGroupBox );
label->setBuddy( m_removedColorButton );
// add the changeColor
- label = new QLabel( i18n( "Changed color:" ), colorGroupBox );
+ label = new TQLabel( i18n( "Changed color:" ), colorGroupBox );
m_changedColorButton = new KColorButton( colorGroupBox );
label->setBuddy( m_changedColorButton );
// add the addColor
- label = new QLabel( i18n( "Added color:" ), colorGroupBox );
+ label = new TQLabel( i18n( "Added color:" ), colorGroupBox );
m_addedColorButton = new KColorButton( colorGroupBox );
label->setBuddy( m_addedColorButton );
// add the appliedColor
- label = new QLabel( i18n( "Applied color:" ), colorGroupBox );
+ label = new TQLabel( i18n( "Applied color:" ), colorGroupBox );
m_appliedColorButton = new KColorButton( colorGroupBox );
label->setBuddy( m_appliedColorButton );
// scroll number of lines (snol)
- snolGroupBox = new QHGroupBox( i18n( "Mouse Wheel" ), page );
+ snolGroupBox = new TQHGroupBox( i18n( "Mouse Wheel" ), page );
layout->addWidget( snolGroupBox );
snolGroupBox->setMargin( KDialog::marginHint() );
- label = new QLabel( i18n( "Number of lines:" ), snolGroupBox );
- m_snolSpinBox = new QSpinBox( 0, 50, 1, snolGroupBox );
+ label = new TQLabel( i18n( "Number of lines:" ), snolGroupBox );
+ m_snolSpinBox = new TQSpinBox( 0, 50, 1, snolGroupBox );
label->setBuddy( m_snolSpinBox );
// Temporarily here for testing...
// number of spaces for a tab character stuff
- tabGroupBox = new QHGroupBox( i18n( "Tabs to Spaces" ), page );
+ tabGroupBox = new TQHGroupBox( i18n( "Tabs to Spaces" ), page );
layout->addWidget( tabGroupBox );
tabGroupBox->setMargin( KDialog::marginHint() );
- label = new QLabel( i18n( "Number of spaces to convert a tab character to:" ), tabGroupBox );
- m_tabSpinBox = new QSpinBox( 1, 16, 1, tabGroupBox );
+ label = new TQLabel( i18n( "Number of spaces to convert a tab character to:" ), tabGroupBox );
+ m_tabSpinBox = new TQSpinBox( 1, 16, 1, tabGroupBox );
label->setBuddy( m_tabSpinBox );
layout->addStretch( 1 );
@@ -96,21 +96,21 @@ ViewPage::ViewPage( QWidget* parent ) : PageBase( parent )
addTab( page, i18n( "A&ppearance" ) );
- page = new QWidget( this );
- layout = new QVBoxLayout( page );
+ page = new TQWidget( this );
+ layout = new TQVBoxLayout( page );
layout->setSpacing( KDialog::spacingHint() );
layout->setMargin( KDialog::marginHint() );
- QHGroupBox* gb = new QHGroupBox( i18n( "Text Font" ), page );
+ TQHGroupBox* gb = new TQHGroupBox( i18n( "Text Font" ), page );
layout->addWidget( gb );
gb->setMargin( KDialog::marginHint() );
- label = new QLabel( i18n( "Font:" ), gb );
+ label = new TQLabel( i18n( "Font:" ), gb );
m_fontCombo = new KFontCombo( gb, "fontcombo" );
label->setBuddy( m_fontCombo );
- label = new QLabel( i18n( "Size:" ), gb );
- m_fontSizeSpinBox = new QSpinBox( 6, 24, 1, gb, "fontsize" );
+ label = new TQLabel( i18n( "Size:" ), gb );
+ m_fontSizeSpinBox = new TQSpinBox( 6, 24, 1, gb, "fontsize" );
label->setBuddy( m_fontSizeSpinBox );
layout->addStretch( 1 );
@@ -157,7 +157,7 @@ void ViewPage::apply()
m_settings->m_scrollNoOfLines = m_snolSpinBox->value();
m_settings->m_tabToNumberOfSpaces = m_tabSpinBox->value();
- m_settings->m_font = QFont( m_fontCombo->currentFont() );
+ m_settings->m_font = TQFont( m_fontCombo->currentFont() );
m_settings->m_font.setPointSize( m_fontSizeSpinBox->value() );
m_settings->saveSettings( kapp->config() );