summaryrefslogtreecommitdiffstats
path: root/kaddressbook/keywidget.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:50:21 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-15 15:50:21 -0600
commit3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12 (patch)
tree89de88213bd261e4ccaade899ab2d6ec34b3a5a7 /kaddressbook/keywidget.cpp
parent1dad5f662a09dfc5cc041caffe0f674044a4dcec (diff)
downloadtdepim-3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12.tar.gz
tdepim-3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'kaddressbook/keywidget.cpp')
-rw-r--r--kaddressbook/keywidget.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kaddressbook/keywidget.cpp b/kaddressbook/keywidget.cpp
index 739672fc..775401c7 100644
--- a/kaddressbook/keywidget.cpp
+++ b/kaddressbook/keywidget.cpp
@@ -23,7 +23,7 @@
#include <tqfile.h>
#include <tqlabel.h>
-#include <tqlayout.h>
+#include <layout.h>
#include <tqpushbutton.h>
#include <kapplication.h>
@@ -41,25 +41,25 @@
KeyWidget::KeyWidget( TQWidget *parent, const char *name )
: TQWidget( parent, name )
{
- TQGridLayout *tqlayout = new TQGridLayout( this, 4, 2, KDialog::marginHint(),
+ TQGridLayout *layout = new TQGridLayout( this, 4, 2, KDialog::marginHint(),
KDialog::spacingHint() );
TQLabel *label = new TQLabel( i18n( "Keys:" ), this );
- tqlayout->addWidget( label, 0, 0 );
+ layout->addWidget( label, 0, 0 );
mKeyCombo = new KComboBox( this );
- tqlayout->addWidget( mKeyCombo, 0, 1 );
+ layout->addWidget( mKeyCombo, 0, 1 );
mAddButton = new TQPushButton( i18n( "Add..." ), this );
- tqlayout->addMultiCellWidget( mAddButton, 1, 1, 0, 1 );
+ layout->addMultiCellWidget( mAddButton, 1, 1, 0, 1 );
mRemoveButton = new TQPushButton( i18n( "Remove" ), this );
mRemoveButton->setEnabled( false );
- tqlayout->addMultiCellWidget( mRemoveButton, 2, 2, 0, 1 );
+ layout->addMultiCellWidget( mRemoveButton, 2, 2, 0, 1 );
mExportButton = new TQPushButton( i18n( "Export..." ), this );
mExportButton->setEnabled( false );
- tqlayout->addMultiCellWidget( mExportButton, 3, 3, 0, 1 );
+ layout->addMultiCellWidget( mExportButton, 3, 3, 0, 1 );
connect( mAddButton, TQT_SIGNAL( clicked() ), TQT_SLOT( addKey() ) );
connect( mRemoveButton, TQT_SIGNAL( clicked() ), TQT_SLOT( removeKey() ) );
@@ -122,7 +122,7 @@ void KeyWidget::addKey()
TQFile file( tmpFile );
if ( !file.open( IO_ReadOnly ) ) {
TQString text( i18n( "<qt>Unable to open file <b>%1</b>.</qt>" ) );
- KMessageBox::error( this, text.tqarg( url.url() ) );
+ KMessageBox::error( this, text.arg( url.url() ) );
return;
}
@@ -154,7 +154,7 @@ void KeyWidget::removeKey()
TQString type = mKeyCombo->currentText();
TQString text = i18n( "<qt>Do you really want to remove the key <b>%1</b>?</qt>" );
- if ( KMessageBox::warningContinueCancel( this, text.tqarg( type ), "", KGuiItem( i18n("&Delete"), "editdelete") ) == KMessageBox::Cancel )
+ if ( KMessageBox::warningContinueCancel( this, text.arg( type ), "", KGuiItem( i18n("&Delete"), "editdelete") ) == KMessageBox::Cancel )
return;
mKeyList.remove( mKeyList.at( pos ) );