summaryrefslogtreecommitdiffstats
path: root/kaddressbook/viewconfigurefieldspage.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kaddressbook/viewconfigurefieldspage.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kaddressbook/viewconfigurefieldspage.cpp')
-rw-r--r--kaddressbook/viewconfigurefieldspage.cpp76
1 files changed, 38 insertions, 38 deletions
diff --git a/kaddressbook/viewconfigurefieldspage.cpp b/kaddressbook/viewconfigurefieldspage.cpp
index fd50d92fe..f83a8c925 100644
--- a/kaddressbook/viewconfigurefieldspage.cpp
+++ b/kaddressbook/viewconfigurefieldspage.cpp
@@ -21,12 +21,12 @@
without including the source code for Qt in the source distribution.
*/
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qlistbox.h>
-#include <qpushbutton.h>
-#include <qtoolbutton.h>
-#include <qapplication.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqlistbox.h>
+#include <tqpushbutton.h>
+#include <tqtoolbutton.h>
+#include <tqapplication.h>
#include <kcombobox.h>
#include <kdebug.h>
@@ -39,11 +39,11 @@
class FieldItem : public QListBoxText
{
public:
- FieldItem( QListBox *parent, KABC::Field *field )
- : QListBoxText( parent, field->label() ), mField( field ) {}
+ FieldItem( TQListBox *parent, KABC::Field *field )
+ : TQListBoxText( parent, field->label() ), mField( field ) {}
- FieldItem( QListBox *parent, KABC::Field *field, int index )
- : QListBoxText( parent, field->label(), parent->item( index ) ),
+ FieldItem( TQListBox *parent, KABC::Field *field, int index )
+ : TQListBoxText( parent, field->label(), parent->item( index ) ),
mField( field ) {}
KABC::Field *field() { return mField; }
@@ -54,9 +54,9 @@ class FieldItem : public QListBoxText
ViewConfigureFieldsPage::ViewConfigureFieldsPage( KABC::AddressBook *ab,
- QWidget *parent,
+ TQWidget *parent,
const char *name )
- : QWidget( parent, name ), mAddressBook( ab )
+ : TQWidget( parent, name ), mAddressBook( ab )
{
initGUI();
}
@@ -100,7 +100,7 @@ void ViewConfigureFieldsPage::slotShowFields( int index )
KABC::Field::List::ConstIterator it;
for ( it = allFields.begin(); it != allFields.end(); ++it ) {
- QListBoxItem *item = mSelectedBox->firstItem();
+ TQListBoxItem *item = mSelectedBox->firstItem();
while( item ) {
FieldItem *fieldItem = static_cast<FieldItem *>( item );
if ( (*it)->equals( fieldItem->field() ) )
@@ -180,7 +180,7 @@ void ViewConfigureFieldsPage::slotMoveUp()
{
int i = mSelectedBox->currentItem();
if ( i > 0 ) {
- QListBoxItem *item = mSelectedBox->item( i );
+ TQListBoxItem *item = mSelectedBox->item( i );
mSelectedBox->takeItem( item );
mSelectedBox->insertItem( item, i - 1 );
mSelectedBox->setCurrentItem( item );
@@ -192,7 +192,7 @@ void ViewConfigureFieldsPage::slotMoveDown()
{
int i = mSelectedBox->currentItem();
if ( i > -1 && i < (int)mSelectedBox->count() - 1 ) {
- QListBoxItem *item = mSelectedBox->item( i );
+ TQListBoxItem *item = mSelectedBox->item( i );
mSelectedBox->takeItem( item );
mSelectedBox->insertItem( item, i + 1 );
mSelectedBox->setCurrentItem( item );
@@ -204,7 +204,7 @@ void ViewConfigureFieldsPage::initGUI()
{
setCaption( i18n("Select Fields to Display") );
- QGridLayout *gl = new QGridLayout( this , 6, 4, 0, KDialog::spacingHint() );
+ TQGridLayout *gl = new TQGridLayout( this , 6, 4, 0, KDialog::spacingHint() );
mCategoryCombo = new KComboBox( false, this );
mCategoryCombo->insertItem( KABC::Field::categoryLabel( KABC::Field::All ) );
@@ -214,55 +214,55 @@ void ViewConfigureFieldsPage::initGUI()
mCategoryCombo->insertItem( KABC::Field::categoryLabel( KABC::Field::Personal ) );
mCategoryCombo->insertItem( KABC::Field::categoryLabel( KABC::Field::Organization ) );
mCategoryCombo->insertItem( KABC::Field::categoryLabel( KABC::Field::CustomCategory ) );
- connect( mCategoryCombo, SIGNAL( activated(int) ), SLOT( slotShowFields(int) ) );
+ connect( mCategoryCombo, TQT_SIGNAL( activated(int) ), TQT_SLOT( slotShowFields(int) ) );
gl->addWidget( mCategoryCombo, 0, 0 );
- QLabel *label = new QLabel( i18n( "&Selected fields:" ), this );
+ TQLabel *label = new TQLabel( i18n( "&Selected fields:" ), this );
gl->addWidget( label, 0, 2 );
- mUnSelectedBox = new QListBox( this );
- mUnSelectedBox->setSelectionMode( QListBox::Extended );
+ mUnSelectedBox = new TQListBox( this );
+ mUnSelectedBox->setSelectionMode( TQListBox::Extended );
mUnSelectedBox->setMinimumHeight( 100 );
gl->addWidget( mUnSelectedBox, 1, 0 );
- mSelectedBox = new QListBox( this );
- mSelectedBox->setSelectionMode( QListBox::Extended );
+ mSelectedBox = new TQListBox( this );
+ mSelectedBox->setSelectionMode( TQListBox::Extended );
label->setBuddy( mSelectedBox );
gl->addWidget( mSelectedBox, 1, 2 );
- QBoxLayout *vb1 = new QBoxLayout( QBoxLayout::TopToBottom, KDialog::spacingHint() );
+ TQBoxLayout *vb1 = new TQBoxLayout( TQBoxLayout::TopToBottom, KDialog::spacingHint() );
vb1->addStretch();
- mAddButton = new QToolButton( this );
- mAddButton->setIconSet( QApplication::reverseLayout() ? SmallIconSet( "1leftarrow" ) : SmallIconSet( "1rightarrow" ) );
- connect( mAddButton, SIGNAL( clicked() ), SLOT( slotSelect() ) );
+ mAddButton = new TQToolButton( this );
+ mAddButton->setIconSet( TQApplication::reverseLayout() ? SmallIconSet( "1leftarrow" ) : SmallIconSet( "1rightarrow" ) );
+ connect( mAddButton, TQT_SIGNAL( clicked() ), TQT_SLOT( slotSelect() ) );
vb1->addWidget( mAddButton );
- mRemoveButton = new QToolButton( this );
- mRemoveButton->setIconSet( QApplication::reverseLayout() ? SmallIconSet( "1rightarrow" ) : SmallIconSet( "1leftarrow" ) );
- connect( mRemoveButton, SIGNAL( clicked() ), SLOT( slotUnSelect() ) );
+ mRemoveButton = new TQToolButton( this );
+ mRemoveButton->setIconSet( TQApplication::reverseLayout() ? SmallIconSet( "1rightarrow" ) : SmallIconSet( "1leftarrow" ) );
+ connect( mRemoveButton, TQT_SIGNAL( clicked() ), TQT_SLOT( slotUnSelect() ) );
vb1->addWidget( mRemoveButton );
vb1->addStretch();
gl->addLayout( vb1, 1, 1 );
- QBoxLayout *vb2 = new QBoxLayout( QBoxLayout::TopToBottom, KDialog::spacingHint() );
+ TQBoxLayout *vb2 = new TQBoxLayout( TQBoxLayout::TopToBottom, KDialog::spacingHint() );
vb2->addStretch();
- mUpButton = new QToolButton( this );
+ mUpButton = new TQToolButton( this );
mUpButton->setIconSet( SmallIconSet( "1uparrow" ) );
- connect( mUpButton, SIGNAL( clicked() ), SLOT( slotMoveUp() ) );
+ connect( mUpButton, TQT_SIGNAL( clicked() ), TQT_SLOT( slotMoveUp() ) );
vb2->addWidget( mUpButton );
- mDownButton = new QToolButton( this );
+ mDownButton = new TQToolButton( this );
mDownButton->setIconSet( SmallIconSet( "1downarrow" ) );
- connect( mDownButton, SIGNAL( clicked() ), SLOT( slotMoveDown() ) );
+ connect( mDownButton, TQT_SIGNAL( clicked() ), TQT_SLOT( slotMoveDown() ) );
vb2->addWidget( mDownButton );
vb2->addStretch();
gl->addLayout( vb2, 1, 3 );
- QSize sizeHint = mUnSelectedBox->sizeHint();
+ TQSize sizeHint = mUnSelectedBox->sizeHint();
// make sure we fill the list with all items, so that we can
// get the maxItemWidth we need to not truncate the view
@@ -275,9 +275,9 @@ void ViewConfigureFieldsPage::initGUI()
gl->activate();
- connect( mUnSelectedBox, SIGNAL( selectionChanged() ), SLOT( slotButtonsEnabled() ) );
- connect( mSelectedBox, SIGNAL( selectionChanged() ), SLOT( slotButtonsEnabled() ) );
- connect( mSelectedBox, SIGNAL( currentChanged( QListBoxItem * ) ), SLOT( slotButtonsEnabled() ) );
+ connect( mUnSelectedBox, TQT_SIGNAL( selectionChanged() ), TQT_SLOT( slotButtonsEnabled() ) );
+ connect( mSelectedBox, TQT_SIGNAL( selectionChanged() ), TQT_SLOT( slotButtonsEnabled() ) );
+ connect( mSelectedBox, TQT_SIGNAL( currentChanged( TQListBoxItem * ) ), TQT_SLOT( slotButtonsEnabled() ) );
slotButtonsEnabled();
}