summaryrefslogtreecommitdiffstats
path: root/kaddressbook/printing/stylepage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kaddressbook/printing/stylepage.cpp')
-rw-r--r--kaddressbook/printing/stylepage.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/kaddressbook/printing/stylepage.cpp b/kaddressbook/printing/stylepage.cpp
index 9e1be7bd..88e2e71c 100644
--- a/kaddressbook/printing/stylepage.cpp
+++ b/kaddressbook/printing/stylepage.cpp
@@ -22,11 +22,11 @@
without including the source code for Qt in the source distribution.
*/
-#include <qbuttongroup.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qpixmap.h>
-#include <qradiobutton.h>
+#include <tqbuttongroup.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqpixmap.h>
+#include <tqradiobutton.h>
#include <kcombobox.h>
#include <kdialog.h>
@@ -34,8 +34,8 @@
#include "stylepage.h"
-StylePage::StylePage( KABC::AddressBook *ab, QWidget* parent, const char* name )
- : QWidget( parent, name ), mAddressBook( ab )
+StylePage::StylePage( KABC::AddressBook *ab, TQWidget* parent, const char* name )
+ : TQWidget( parent, name ), mAddressBook( ab )
{
initGUI();
@@ -44,14 +44,14 @@ StylePage::StylePage( KABC::AddressBook *ab, QWidget* parent, const char* name
mSortTypeCombo->insertItem( i18n( "Ascending" ) );
mSortTypeCombo->insertItem( i18n( "Descending" ) );
- connect( mStyleCombo, SIGNAL( activated( int ) ), SIGNAL( styleChanged( int ) ) );
+ connect( mStyleCombo, TQT_SIGNAL( activated( int ) ), TQT_SIGNAL( styleChanged( int ) ) );
}
StylePage::~StylePage()
{
}
-void StylePage::setPreview( const QPixmap &pixmap )
+void StylePage::setPreview( const TQPixmap &pixmap )
{
if ( pixmap.isNull() )
mPreview->setText( i18n( "(No preview available.)" ) );
@@ -59,7 +59,7 @@ void StylePage::setPreview( const QPixmap &pixmap )
mPreview->setPixmap( pixmap );
}
-void StylePage::addStyleName( const QString &name )
+void StylePage::addStyleName( const TQString &name )
{
mStyleCombo->insertItem( name );
}
@@ -112,27 +112,27 @@ void StylePage::initGUI()
{
setCaption( i18n( "Choose Printing Style" ) );
- QGridLayout *topLayout = new QGridLayout( this, 2, 2, KDialog::marginHint(),
+ TQGridLayout *topLayout = new TQGridLayout( this, 2, 2, KDialog::marginHint(),
KDialog::spacingHint() );
- QLabel *label = new QLabel( i18n( "What should the print look like?\n"
+ TQLabel *label = new TQLabel( i18n( "What should the print look like?\n"
"KAddressBook has several printing styles, designed for different purposes.\n"
"Choose the style that suits your needs below." ), this );
topLayout->addMultiCellWidget( label, 0, 0, 0, 1 );
- QButtonGroup *group = new QButtonGroup( i18n( "Sorting" ), this );
+ TQButtonGroup *group = new TQButtonGroup( i18n( "Sorting" ), this );
group->setColumnLayout( 0, Qt::Vertical );
- QGridLayout *sortLayout = new QGridLayout( group->layout(), 2, 2,
+ TQGridLayout *sortLayout = new TQGridLayout( group->layout(), 2, 2,
KDialog::spacingHint() );
sortLayout->setAlignment( Qt::AlignTop );
- label = new QLabel( i18n( "Criterion:" ), group );
+ label = new TQLabel( i18n( "Criterion:" ), group );
sortLayout->addWidget( label, 0, 0 );
mFieldCombo = new KComboBox( false, group );
sortLayout->addWidget( mFieldCombo, 0, 1 );
- label = new QLabel( i18n( "Order:" ), group );
+ label = new TQLabel( i18n( "Order:" ), group );
sortLayout->addWidget( label, 1, 0 );
mSortTypeCombo = new KComboBox( false, group );
@@ -140,20 +140,20 @@ void StylePage::initGUI()
topLayout->addWidget( group, 1, 0 );
- group = new QButtonGroup( i18n( "Print Style" ), this );
+ group = new TQButtonGroup( i18n( "Print Style" ), this );
group->setColumnLayout( 0, Qt::Vertical );
- QVBoxLayout *styleLayout = new QVBoxLayout( group->layout(),
+ TQVBoxLayout *styleLayout = new TQVBoxLayout( group->layout(),
KDialog::spacingHint() );
mStyleCombo = new KComboBox( false, group );
styleLayout->addWidget( mStyleCombo );
- mPreview = new QLabel( group );
- QFont font( mPreview->font() );
+ mPreview = new TQLabel( group );
+ TQFont font( mPreview->font() );
font.setPointSize( 20 );
mPreview->setFont( font );
mPreview->setScaledContents( true );
- mPreview->setAlignment( int( QLabel::WordBreak | QLabel::AlignCenter ) );
+ mPreview->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignCenter ) );
styleLayout->addWidget( mPreview );
topLayout->addWidget( group, 1, 1 );