Skip to content

[doc-sync] docs: update developer FAQ to remove obsolete String::toQString() API reference - #8972

Merged
timosachsenberg merged 1 commit into
developfrom
doc-sync/qt-string-api-removal-7561286676cd27aa
Mar 23, 2026
Merged

timosachsenberg merged 1 commit into
developfrom
doc-sync/qt-string-api-removal-7561286676cd27aa

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Summary

This PR fixes a documentation file that became outdated after recent refactoring removed the Qt string interop API from the OpenMS core library.

Source Files That Triggered This Review

The following breaking refactoring PRs landed in the last 7 days:

Documentation File Updated

doc/doxygen/public/developer_faq.doxygen

Change made

The Windows crash debugging FAQ contained a code example that called file.toQString() (String::toQString()), a method that no longer exists in the core library after the refactoring:

// OLD (no longer compiles — String::toQString() was removed)
QFileInfo fi(file.toQString());
return fi.path()

Updated to the modern equivalent used in GUI (openms_gui) code:

// NEW (correct for GUI code using Qt)
QFileInfo fi(QString::fromStdString(file));
return fi.path()

The accompanying description text was also updated from "creating a perfectly legal String from a QString" (which didn't match the code anyway) to "passing an OpenMS path string to a Qt API in GUI code".

Scope

Only the one outdated code example was changed. All other Qt references in AGENTS.md, CLAUDE.md, and the doxygen docs remain accurate — Qt is still a required dependency for the GUI components (openms_gui).

Generated by Documentation Sync Agent · ◷

… reference

The String::toQString() and related Qt string interop methods were removed
from the core library in refactor #8940. Update the Windows crash debugging
FAQ code example to use the modern QString::fromStdString() equivalent,
which is the correct approach in GUI (openms_gui) code.

Co-authored-by: Copilot <[email protected]>
@timosachsenberg
timosachsenberg marked this pull request as ready for review March 23, 2026 07:20
@timosachsenberg
timosachsenberg merged commit 149cc66 into develop Mar 23, 2026
3 checks passed
@timosachsenberg
timosachsenberg deleted the doc-sync/qt-string-api-removal-7561286676cd27aa branch March 23, 2026 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant