-
Notifications
You must be signed in to change notification settings - Fork 25
Initial port to C++17 and Qt6 using Core5Compat #41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ghutchis
wants to merge
1
commit into
OpenChemistry:master
Choose a base branch
from
ghutchis:qt6
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,6 +21,8 @@ | |
|
|
||
| #include "molequeueglobal.h" | ||
|
|
||
| #include <QtCore5Compat/QRegExp> | ||
|
|
||
| class QDir; | ||
|
|
||
| namespace MoleQueue | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -202,23 +202,23 @@ bool JobTableProxyModel::filterAcceptsRow(int sourceRow, | |
| } | ||
|
|
||
| if (!m_filterString.isEmpty()) { | ||
| QStringList filterTerms = m_filterString.split(QRegExp("\\s+"), | ||
| QString::SkipEmptyParts); | ||
| QStringList filterTerms = m_filterString.split(QRegularExpression("\\s+"), | ||
| Qt::SkipEmptyParts); | ||
| foreach (QString fullTerm, filterTerms) { | ||
| bool termMatch = false; | ||
| bool isNegated = false; | ||
|
|
||
| QStringRef term(&fullTerm); | ||
| QStringView term(fullTerm); | ||
| // terms starting with '-' should not be present | ||
| if (term.startsWith('-')) { | ||
| isNegated = true; | ||
| term = fullTerm.midRef(1); | ||
| term = QStringView(fullTerm).mid(1); | ||
| } | ||
|
Comment on lines
213
to
216
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Guard against empty negated terms ( If a token is just Proposed fix if (term.startsWith('-')) {
isNegated = true;
term = QStringView(fullTerm).mid(1);
+ if (term.isEmpty())
+ continue;
}🤖 Prompt for AI Agents |
||
|
|
||
| for (int i = 0; i < static_cast<int>(sourceModel()->columnCount()); ++i) { | ||
| const QVariant disp = sourceModel()->data( | ||
| sourceModel()->index(sourceRow, i), Qt::DisplayRole); | ||
| if (disp.canConvert(QVariant::String)) { | ||
| if (disp.canConvert<QString>()) { | ||
| if (disp.toString().contains(term, Qt::CaseInsensitive)) { | ||
| termMatch = true; | ||
| break; | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🌐 Web query:
Is QtXmlPatterns module available in Qt 6 or has it been removed?💡 Result:
The QtXmlPatterns module has been removed in Qt 6.[1][2] Official Qt 6 documentation lists Qt XML (for DOM) as available,[3][4] but QtXmlPatterns (for XPath/XQuery/XSLT) is absent from all Qt 6 module lists and explicitly stated as removed in Qt 6.0.[1] It was deprecated in Qt 5.13[5] and is only documented for Qt 5.[6][5] Qt forums and mailing lists confirm its removal with no direct replacement in Qt 6.[7][2]
Citations:
🏁 Script executed:
Repository: OpenChemistry/molequeue
Length of output: 190
🏁 Script executed:
cat -n ./molequeue/app/CMakeLists.txt | head -20Repository: OpenChemistry/molequeue
Length of output: 775
🏁 Script executed:
cat -n ./molequeue/app/CMakeLists.txt | tail -100Repository: OpenChemistry/molequeue
Length of output: 3871
🏁 Script executed:
Repository: OpenChemistry/molequeue
Length of output: 98
Qt6 does not ship
XmlPatterns— thisfind_packagecall will fail whenMoleQueue_USE_EZHPC_UIT=ON.QtXmlPatterns was removed from Qt 6 with no upstream Qt6 port; only Qt5 had the module. Line 6 unconditionally appends
XmlPatternsto the find_package(Qt6 ...) COMPONENTS list when the feature is enabled, and line 178 attempts to linkQt6::XmlPatterns, which does not exist as a target.When
MoleQueue_USE_EZHPC_UIT=ON, any build will fail immediately at the find_package step, and wsdl_uitapi.cpp cannot compile.Options:
find_package(Qt5 REQUIRED COMPONENTS XmlPatterns)and linkQt5::XmlPatternsonly inside the UIT block). This is awkward but likely simplest as a stopgap.wsdl_uitapi.cpp/ KDSoap with a still-supported XML stack (QtXml + a third-party XPath/XSLT), or disable the UIT integration on Qt6.At minimum, the EZHPC UIT path should be marked unsupported under Qt6 and gated so the default build doesn't fail.
🤖 Prompt for AI Agents