diff options
Diffstat (limited to 'src/logviewer.cpp')
-rwxr-xr-x | src/logviewer.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/logviewer.cpp b/src/logviewer.cpp index 97720d9..5017a02 100755 --- a/src/logviewer.cpp +++ b/src/logviewer.cpp @@ -16,14 +16,14 @@ // ### soundkonverter 0.4: make sub items for the output -LogViewerItem::LogViewerItem( KListView* tqparent, LogViewerItem* after, TQString label1 ) - : KListViewItem( tqparent, after, label1 ) +LogViewerItem::LogViewerItem( KListView* parent, LogViewerItem* after, TQString label1 ) + : KListViewItem( parent, after, label1 ) { converting = false; } -LogViewerItem::LogViewerItem( LogViewerItem* tqparent, LogViewerItem* after, TQString label1 ) - : KListViewItem( tqparent, after, label1 ) +LogViewerItem::LogViewerItem( LogViewerItem* parent, LogViewerItem* after, TQString label1 ) + : KListViewItem( parent, after, label1 ) { converting = false; } @@ -58,16 +58,16 @@ void LogViewerItem::paintCell( TQPainter *p, const TQColorGroup &cg, int column, } -LogViewerList::LogViewerList( TQWidget* tqparent, const char* name ) - : KListView( tqparent, name ) +LogViewerList::LogViewerList( TQWidget* parent, const char* name ) + : KListView( parent, name ) {} LogViewerList::~LogViewerList() {} -LogViewer::LogViewer( Logger* _logger, TQWidget *tqparent, const char *name, bool modal, WFlags f ) - : KDialog( tqparent, name, modal, f ) +LogViewer::LogViewer( Logger* _logger, TQWidget *parent, const char *name, bool modal, WFlags f ) + : KDialog( parent, name, modal, f ) { logger = _logger; connect( logger, TQT_SIGNAL(removedProcess(int)), @@ -125,17 +125,17 @@ LogViewer::~LogViewer() void LogViewer::refillLogs() { - LogViewerItem *tqparent = 0, *last = 0; + LogViewerItem *parent = 0, *last = 0; lLogs->clear(); TQValueList<LoggerItem*> logs = logger->getLogs(); for( TQValueList<LoggerItem*>::Iterator a = logs.begin(); a != logs.end(); ++a ) { - tqparent = new LogViewerItem( lLogs, tqparent, KURL::decode_string((*a)->filename).replace("%2f","/").replace("%%","%") + " - " + TQString::number((*a)->id) ); - tqparent->converting = !(*a)->completed; - //tqparent->setOpen( true ); + parent = new LogViewerItem( lLogs, parent, KURL::decode_string((*a)->filename).replace("%2f","/").replace("%%","%") + " - " + TQString::number((*a)->id) ); + parent->converting = !(*a)->completed; + //parent->setOpen( true ); last = 0; for( TQStringList::Iterator b = (*a)->data.begin(); b != (*a)->data.end(); ++b ) { - last = new LogViewerItem( tqparent, last, *b ); + last = new LogViewerItem( parent, last, *b ); last->setMultiLinesEnabled( true ); last->converting = !(*a)->completed; } @@ -185,18 +185,18 @@ void LogViewer::updateProcess( int id ) it = it->nextSibling(); } - LogViewerItem *tqparent = 0; + LogViewerItem *parent = 0; // get the last list view item for( TQListViewItem* it = lLogs->firstChild(); it != 0; it = it->nextSibling() ) { lastItem = (LogViewerItem*)it; } - tqparent = new LogViewerItem( lLogs, lastItem, KURL::decode_string(item->filename).replace("%2f","/").replace("%%","%") + " - " + TQString::number(item->id) ); - tqparent->converting = !item->completed; + parent = new LogViewerItem( lLogs, lastItem, KURL::decode_string(item->filename).replace("%2f","/").replace("%%","%") + " - " + TQString::number(item->id) ); + parent->converting = !item->completed; LogViewerItem* last = 0; for( TQStringList::Iterator b = item->data.begin(); b != item->data.end(); ++b ) { - last = new LogViewerItem( tqparent, last, *b ); + last = new LogViewerItem( parent, last, *b ); last->setMultiLinesEnabled( true ); } } |