summaryrefslogtreecommitdiffstats
path: root/krename/ProgressDialog.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:04:09 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:04:09 -0600
commita45915945ee5f36df25754586c5c4a366c3a474d (patch)
tree9160a9c8259572bc5b7cde966a4066422aef2ba5 /krename/ProgressDialog.cpp
parent21d0413b17e418a799acee2cb4395ed32152e2e3 (diff)
downloadkrename-a45915945ee5f36df25754586c5c4a366c3a474d.tar.gz
krename-a45915945ee5f36df25754586c5c4a366c3a474d.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'krename/ProgressDialog.cpp')
-rw-r--r--krename/ProgressDialog.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/krename/ProgressDialog.cpp b/krename/ProgressDialog.cpp
index 489ac77..c390fe3 100644
--- a/krename/ProgressDialog.cpp
+++ b/krename/ProgressDialog.cpp
@@ -62,7 +62,7 @@ ProgressDialog::ProgressDialog( TQWidget* parent, const char* name, WFlags fl )
buttonCancel = new KPushButton( i18n("&Cancel"), this );
- display = new KListView( this );
+ display = new TDEListView( this );
display->addColumn( i18n("Messages") );
display->addColumn( "sort" );
display->setColumnWidthMode( 0, TQListView::Maximum );
@@ -77,7 +77,7 @@ ProgressDialog::ProgressDialog( TQWidget* parent, const char* name, WFlags fl )
buttonUndo->setText( i18n("&Undo") );
buttonUndo->setEnabled( false );
- mnuButton = new KPopupMenu( this );
+ mnuButton = new TDEPopupMenu( this );
mnuButton->insertItem( i18n("Restart KRename..."), this, TQT_SLOT( restart() ));
mnuButton->insertSeparator();
mnuButton->insertItem( i18n("Rename Processed Files &Again..."), this, TQT_SLOT( again() ), 0, MNU_DONE_ID );
@@ -143,7 +143,7 @@ void ProgressDialog::print( TQString text, TQString pixmap )
if( pixmap.isNull() )
pixmap = "ok";
- KListViewItem* item = new KListViewItem( display, text, count() );
+ TDEListViewItem* item = new TDEListViewItem( display, text, count() );
item->setPixmap( 0, SmallIcon(pixmap) );
display->insertItem( item );
}
@@ -157,7 +157,7 @@ void ProgressDialog::error( TQString text )
}
//TODO: simplify this (breaks i18n)
- KListViewItem* item = new KListViewItem( display, TQString( i18n("Error: %1") ).arg( TQString() ) + simplify( text ), count() );
+ TDEListViewItem* item = new TDEListViewItem( display, TQString( i18n("Error: %1") ).arg( TQString() ) + simplify( text ), count() );
item->setPixmap( 0, SmallIcon("cancel") );
display->insertItem( item );
}
@@ -170,7 +170,7 @@ void ProgressDialog::warning( TQString text )
m_timer->start( TIMER_INTERVAL );
}
- KListViewItem* item = new KListViewItem( display, TQString( i18n("Warning: %1") ).arg( TQString() ) + simplify( text ), count() );
+ TDEListViewItem* item = new TDEListViewItem( display, TQString( i18n("Warning: %1") ).arg( TQString() ) + simplify( text ), count() );
item->setPixmap( 0, SmallIcon("idea") );
display->insertItem( item );
}