summaryrefslogtreecommitdiffstats
path: root/src/filelist.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-02-01 15:05:53 -0600
committerTimothy Pearson <[email protected]>2013-02-01 15:05:53 -0600
commit4955fd5009a6f4b615fec006c960c0ed99e3d9a7 (patch)
tree5721cb5c85684019e0649729dca1b90e93934efb /src/filelist.cpp
parent5b1e3197e7c9ef6e24eaf7863a7ddea5996e581b (diff)
downloadsoundkonverter-4955fd5009a6f4b615fec006c960c0ed99e3d9a7.tar.gz
soundkonverter-4955fd5009a6f4b615fec006c960c0ed99e3d9a7.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'src/filelist.cpp')
-rwxr-xr-xsrc/filelist.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/filelist.cpp b/src/filelist.cpp
index f24a998..c99f203 100755
--- a/src/filelist.cpp
+++ b/src/filelist.cpp
@@ -38,8 +38,8 @@
// ### soundkonverter 0.4: draw tooltip like bubble info box
-FileListItem::FileListItem( KListView* parent, FileListItem* after )
- : KListViewItem( parent, after )
+FileListItem::FileListItem( TDEListView* parent, FileListItem* after )
+ : TDEListViewItem( parent, after )
{
tags = 0;
converting = false;
@@ -47,8 +47,8 @@ FileListItem::FileListItem( KListView* parent, FileListItem* after )
ripping = false;
}
-FileListItem::FileListItem( KListView* parent )
- : KListViewItem( parent )
+FileListItem::FileListItem( TDEListView* parent )
+ : TDEListViewItem( parent )
{
tags = 0;
converting = false;
@@ -104,7 +104,7 @@ void FileListItem::paintCell( TQPainter *p, const TQColorGroup &cg, int column,
return;
}
- KListViewItem::paintCell( p, _cg, column, width, alignment );
+ TDEListViewItem::paintCell( p, _cg, column, width, alignment );
}
/*void FileListItem::updateOutputCell()
@@ -118,7 +118,7 @@ void FileListItem::updateOptionsCell()
}*/
FileList::FileList( CDManager* _cdManager, TagEngine* _tagEngine, Config* _config, Options* _options, Logger* _logger, TQWidget* parent, const char* name )
- : KListView( parent, name )
+ : TDEListView( parent, name )
{
cdManager = _cdManager;
tagEngine = _tagEngine;
@@ -159,19 +159,19 @@ FileList::FileList( CDManager* _cdManager, TagEngine* _tagEngine, Config* _confi
grid->addWidget( pScanStatus, 1, 1 );
grid->setColStretch( 1, 2 );
- contextMenu = new KPopupMenu( this );
+ contextMenu = new TDEPopupMenu( this );
connect( TQT_TQOBJECT(this), TQT_SIGNAL(contextMenuRequested( TQListViewItem*, const TQPoint&, int )),
TQT_TQOBJECT(this), TQT_SLOT(showContextMenu( TQListViewItem*, const TQPoint&, int ))
);
// we haven't got access to the action collection of soundKonverter, so let's create a new one
- actionCollection = new KActionCollection( this );
+ actionCollection = new TDEActionCollection( this );
- edit = new KAction( i18n("Edit options ..."), "view_text", 0, TQT_TQOBJECT(this), TQT_SLOT(showOptionsEditorDialog()), actionCollection, "edit_options" );
- start = new KAction( i18n("Start conversion"), "run", 0, TQT_TQOBJECT(this), TQT_SLOT(convertSelectedItems()), actionCollection, "start_conversion" );
- stop = new KAction( i18n("Stop conversion"), "stop", 0, TQT_TQOBJECT(this), TQT_SLOT(stopSelectedItems()), actionCollection, "stop_conversion" );
- remove = new KAction( i18n("Remove"), "edittrash", Key_Delete, TQT_TQOBJECT(this), TQT_SLOT(removeSelectedItems()), actionCollection, "remove" );
- paste = new KAction( i18n("Paste"), "editpaste", 0, TQT_TQOBJECT(this), 0, actionCollection, "paste" ); // TODO paste
+ edit = new TDEAction( i18n("Edit options ..."), "view_text", 0, TQT_TQOBJECT(this), TQT_SLOT(showOptionsEditorDialog()), actionCollection, "edit_options" );
+ start = new TDEAction( i18n("Start conversion"), "run", 0, TQT_TQOBJECT(this), TQT_SLOT(convertSelectedItems()), actionCollection, "start_conversion" );
+ stop = new TDEAction( i18n("Stop conversion"), "stop", 0, TQT_TQOBJECT(this), TQT_SLOT(stopSelectedItems()), actionCollection, "stop_conversion" );
+ remove = new TDEAction( i18n("Remove"), "edittrash", Key_Delete, TQT_TQOBJECT(this), TQT_SLOT(removeSelectedItems()), actionCollection, "remove" );
+ paste = new TDEAction( i18n("Paste"), "editpaste", 0, TQT_TQOBJECT(this), 0, actionCollection, "paste" ); // TODO paste
connect( TQT_TQOBJECT(this), TQT_SIGNAL(selectionChanged()),
TQT_TQOBJECT(this), TQT_SLOT(itemsSelected())
@@ -215,7 +215,7 @@ int FileList::columnByName( const TQString& name )
void FileList::viewportPaintEvent( TQPaintEvent* e )
{
- KListView::viewportPaintEvent( e );
+ TDEListView::viewportPaintEvent( e );
// the bubble help
if( childCount() == 0 ) {