Use QFileInfo to extract the last path component.
commit48e8d87cd230adb4e9c38e81b87654d5f723c469
authorJohannes Sixt <j6t@kdbg.org>
Fri, 1 May 2009 19:41:08 +0000 (1 21:41 +0200)
committerJohannes Sixt <j6t@kdbg.org>
Sun, 17 May 2009 13:10:22 +0000 (17 15:10 +0200)
tree9a7bc8ef0de83775ced6e8d5441128f79405637d
parent8e6951a745b4e81201102d480d1b69f24aed2efa
Use QFileInfo to extract the last path component.

This implements SourceWindow::fileNameMatches() using QFileInfo. This
function checks whether the trailing file components match. It did so
using strcmp (!). This now uses QFileInfo objects to extract the last
component from the whole file name.

The title of the program settings dialog contains the name of the
debugged program. It was extracted manually, and we now use the services
of QFileInfo.
kdbg/pgmsettings.cpp
kdbg/sourcewnd.cpp