From 4955fd5009a6f4b615fec006c960c0ed99e3d9a7 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 1 Feb 2013 15:05:53 -0600 Subject: Rename a number of classes to enhance compatibility with KDE4 --- src/filelist.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'src/filelist.cpp') 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 ) { -- cgit v1.2.1