summaryrefslogtreecommitdiffstats
path: root/kaddressbook/jumpbuttonbar.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:59:50 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:59:50 -0600
commit9cc13dcbb01a96c9e60a07ca63c61d24b374f50d (patch)
treeab537a329b9613e11dce8195761f93ffe82aed24 /kaddressbook/jumpbuttonbar.cpp
parent3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12 (diff)
downloadtdepim-9cc13dcbb01a96c9e60a07ca63c61d24b374f50d.tar.gz
tdepim-9cc13dcbb01a96c9e60a07ca63c61d24b374f50d.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12.
Diffstat (limited to 'kaddressbook/jumpbuttonbar.cpp')
-rw-r--r--kaddressbook/jumpbuttonbar.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kaddressbook/jumpbuttonbar.cpp b/kaddressbook/jumpbuttonbar.cpp
index 090d854f0..2b603fe23 100644
--- a/kaddressbook/jumpbuttonbar.cpp
+++ b/kaddressbook/jumpbuttonbar.cpp
@@ -24,7 +24,7 @@
#include <tqapplication.h>
#include <tqbuttongroup.h>
#include <tqevent.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <tqpushbutton.h>
#include <tqstring.h>
#include <tqstyle.h>
@@ -57,7 +57,7 @@ JumpButton::JumpButton( const TQString &firstChar, const TQString &lastChar,
{
setToggleButton( true );
if ( !lastChar.isEmpty() )
- setText( TQString( "%1 - %2" ).arg( firstChar.upper() ).arg( lastChar.upper() ) );
+ setText( TQString( "%1 - %2" ).tqarg( firstChar.upper() ).tqarg( lastChar.upper() ) );
else
setText( firstChar.upper() );
}
@@ -67,15 +67,15 @@ JumpButtonBar::JumpButtonBar( KAB::Core *core, TQWidget *parent, const char *nam
{
setMinimumSize( 1, 1 );
- TQVBoxLayout *layout = new TQVBoxLayout( this, 0, 0 );
- layout->setAlignment( TQt::AlignTop );
- layout->setAutoAdd( true );
- layout->setResizeMode( TQLayout::FreeResize );
+ TQVBoxLayout *tqlayout = new TQVBoxLayout( this, 0, 0 );
+ tqlayout->tqsetAlignment( TQt::AlignTop );
+ tqlayout->setAutoAdd( true );
+ tqlayout->setResizeMode( TQLayout::FreeResize );
mGroupBox = new TQButtonGroup( 1, Qt::Horizontal, this );
mGroupBox->setExclusive( true );
- mGroupBox->layout()->setSpacing( 0 );
- mGroupBox->layout()->setMargin( 0 );
+ mGroupBox->tqlayout()->setSpacing( 0 );
+ mGroupBox->tqlayout()->setMargin( 0 );
mGroupBox->setFrameStyle( TQFrame::NoFrame );
}
@@ -179,7 +179,7 @@ void JumpButtonBar::updateButtons()
int maxWidth = 0;
TQPushButton *button;
for ( button = mButtons.first(); button; button = mButtons.next() )
- maxWidth = TQMAX( maxWidth, button->sizeHint().width() );
+ maxWidth = TQMAX( maxWidth, button->tqsizeHint().width() );
setFixedWidth( maxWidth );
}