From kde-commits Sun Feb 22 04:43:52 2004 From: Dirk Mueller Date: Sun, 22 Feb 2004 04:43:52 +0000 To: kde-commits Subject: kdevelop/parts Message-Id: <20040222044352.7C38A990E () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=107742504313599 CVS commit by mueller: KURL handling fixlets M +1 -1 ctags/ctagsdlg.cpp 1.18 M +1 -1 ctags/ctagspart.cpp 1.27 M +1 -1 diff/diffwidget.cpp 1.14 M +1 -1 doctreeview/choosedlg.cpp 1.3 M +1 -1 doctreeview/doctreeviewwidget.cpp 1.79 M +1 -1 filecreate/filecreate_newfile.cpp 1.13 M +1 -1 fileview/filegroupswidget.cpp 1.26 --- kdevelop/parts/ctags/ctagsdlg.cpp #1.17:1.18 @@ -233,5 +233,5 @@ void CTagsDialog::slotResultClicked(QLis } - m_part->partController()->editDocument(fileName, lineNum-1); + m_part->partController()->editDocument(KURL::fromPathOrURL( fileName ), lineNum-1); } --- kdevelop/parts/ctags/ctagspart.cpp #1.26:1.27 @@ -163,5 +163,5 @@ void CTagsPart::gotoFinalTag( const QStr } - partController()->editDocument(fileName, lineNum-1); + partController()->editDocument(KURL::fromPathOrURL( fileName ), lineNum-1); } --- kdevelop/parts/diff/diffwidget.cpp #1.13:1.14 @@ -273,5 +273,5 @@ void DiffWidget::populateExtPart() *(tempFile->textStream()) << te->text( i ) << endl; tempFile->close(); - ok = extPart->openURL( tempFile->name() ); + ok = extPart->openURL( KURL::fromPathOrURL( tempFile->name() ) ); } if ( !ok ) --- kdevelop/parts/doctreeview/choosedlg.cpp #1.2:1.3 @@ -79,5 +79,5 @@ void ChooseDlg::slotItemExecuted(QListVi if(item == 0) return; - m_part->partController()->showDocument(item->text(1), item->text(0)); + m_part->partController()->showDocument(KURL( item->text(1) ), item->text(0)); m_part->mainWindow()->lowerView(this); --- kdevelop/parts/doctreeview/doctreeviewwidget.cpp #1.78:1.79 @@ -1798,5 +1798,5 @@ void DocTreeViewWidget::slotIndexItemExe else if(resultList->count() == 1) { - m_part->partController()->showDocument(resultList->first()->fileName(), ident); + m_part->partController()->showDocument(KURL::fromPathOrURL( resultList->first()->fileName() ), ident); m_part->mainWindow()->lowerView(this); } --- kdevelop/parts/filecreate/filecreate_newfile.cpp #1.12:1.13 @@ -100,5 +100,5 @@ namespace FileCreate { KURL NewFileChooser::url() const { - KURL result = m_urlreq->url(); + KURL result ( m_urlreq->url() ); result.cd( m_filename->text() ); return result; --- kdevelop/parts/fileview/filegroupswidget.cpp #1.25:1.26 @@ -214,5 +214,5 @@ void FileGroupsWidget::slotItemExecuted( FileGroupsFileItem *fgfitem = static_cast(item); - m_part->partController()->editDocument(QString("file://") + m_part->project()->projectDirectory() + "/" + fgfitem->fileName()); + m_part->partController()->editDocument(KURL::fromPathOrURL( m_part->project()->projectDirectory() + "/" + fgfitem->fileName() )); m_part->mainWindow()->lowerView(this); }