summaryrefslogtreecommitdiffstats
path: root/libkdepim/kcmdesignerfields.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkdepim/kcmdesignerfields.cpp')
-rw-r--r--libkdepim/kcmdesignerfields.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/libkdepim/kcmdesignerfields.cpp b/libkdepim/kcmdesignerfields.cpp
index be4aa97bd..10edf6f8b 100644
--- a/libkdepim/kcmdesignerfields.cpp
+++ b/libkdepim/kcmdesignerfields.cpp
@@ -60,14 +60,14 @@ class PageItem : public TQCheckListItem
: TQCheckListItem( tqparent, "", TQCheckListItem::CheckBox ),
mPath( path ), mIsActive( false )
{
- mName = path.mid( path.findRev( '/' ) + 1 );
+ mName = path.mid( path.tqfindRev( '/' ) + 1 );
TQWidget *wdg = TQWidgetFactory::create( mPath, 0, 0 );
if ( wdg ) {
setText( 0, wdg->caption() );
TQPixmap pm = TQPixmap::grabWidget( wdg );
- TQImage img = pm.convertToImage().smoothScale( 300, 300, TQImage::ScaleMin );
+ TQImage img = pm.convertToImage().smoothScale( 300, 300, TQ_ScaleMin );
mPreview = img;
TQObjectList *list = wdg->queryList( TQWIDGET_OBJECT_NAME_STRING );
@@ -91,7 +91,7 @@ class PageItem : public TQCheckListItem
new TQListViewItem( this, name,
allowedTypes[ it.current()->className() ],
it.current()->className(),
- TQWhatsThis::textFor( static_cast<TQWidget*>( it.current() ) ) );
+ TQWhatsThis::textFor( TQT_TQWIDGET( it.current() ) ) );
}
}
@@ -162,7 +162,7 @@ void KCMDesignerFields::delayedInit()
load();
// Install a dirwatcher that will detect newly created or removed designer files
- KDirWatch *dw = new KDirWatch( this );
+ KDirWatch *dw = new KDirWatch( TQT_TQOBJECT(this) );
KStandardDirs::makeDir(localUiDir());
dw->addDir( localUiDir(), true );
connect( dw, TQT_SIGNAL( created(const TQString&) ), TQT_SLOT( rebuildList() ) );
@@ -176,7 +176,7 @@ void KCMDesignerFields::deleteFile()
if ( item ) {
PageItem *pageItem = static_cast<PageItem*>( item->tqparent() ? item->tqparent() : item );
if (KMessageBox::warningContinueCancel(this,
- i18n( "<qt>Do you really want to delete '<b>%1</b>'?</qt>").arg( pageItem->text(0) ), "", KStdGuiItem::del() )
+ i18n( "<qt>Do you really want to delete '<b>%1</b>'?</qt>").tqarg( pageItem->text(0) ), "", KStdGuiItem::del() )
== KMessageBox::Continue)
KIO::NetAccess::del( pageItem->path(), 0 );
}
@@ -284,7 +284,7 @@ void KCMDesignerFields::initGUI()
mPageView->setFullWidth( true );
hbox->addWidget( mPageView );
- TQGroupBox *box = new TQGroupBox(1, TQt::Horizontal, i18n("Preview of Selected Page"), this );
+ TQGroupBox *box = new TQGroupBox(1, Qt::Horizontal, i18n("Preview of Selected Page"), this );
mPagePreview = new TQLabel( box );
mPagePreview->setMinimumWidth( 300 );
@@ -316,10 +316,10 @@ void KCMDesignerFields::initGUI()
"<p><b>Important:</b> The widget will edit custom fields with an"
" application name of %2. To change the application name"
" to be edited, set the widget name in TQt Designer.</p></qt>" )
- .arg( applicationName(), applicationName() );
+ .tqarg( applicationName(), applicationName() );
KActiveLabel *activeLabel = new KActiveLabel(
- i18n( "<a href=\"whatsthis:%1\">How does this work?</a>" ).arg(cwHowto), this );
+ i18n( "<a href=\"whatsthis:%1\">How does this work?</a>" ).tqarg(cwHowto), this );
hbox->addWidget( activeLabel );
// ### why is this needed? Looks like a KActiveLabel bug...
@@ -360,14 +360,14 @@ void KCMDesignerFields::updatePreview( TQListViewItem *item )
"<tr><td align=\"right\"><b>%5</b></td><td>%6</td></tr>"
"<tr><td align=\"right\"><b>%7</b></td><td>%8</td></tr>"
"</table></qt>" )
- .arg( i18n( "Key:" ) )
- .arg( item->text( 0 ).tqreplace("X_","X-") )
- .arg( i18n( "Type:" ) )
- .arg( item->text( 1 ) )
- .arg( i18n( "Classname:" ) )
- .arg( item->text( 2 ) )
- .arg( i18n( "Description:" ) )
- .arg( item->text( 3 ) );
+ .tqarg( i18n( "Key:" ) )
+ .tqarg( item->text( 0 ).tqreplace("X_","X-") )
+ .tqarg( i18n( "Type:" ) )
+ .tqarg( item->text( 1 ) )
+ .tqarg( i18n( "Classname:" ) )
+ .tqarg( item->text( 2 ) )
+ .tqarg( i18n( "Description:" ) )
+ .tqarg( item->text( 3 ) );
mPageDetails->setText( details );