diff options
| author | Jonathan Feenstra <26406078+JonathanFeenstra@users.noreply.github.com> | 2025-01-31 20:07:41 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-31 20:07:41 +0100 |
| commit | 6299be28e13662d1b28be5f77f53ea2118e87dae (patch) | |
| tree | 85ffd4d9b91eee27b9771cb7226c65ba6ab358ca /src/pluginlistsortproxy.cpp | |
| parent | 9049e65c5e1f29792b596a8e84a749d2de7ea792 (diff) | |
Add form and header versions to plugin list tool tips and plugin API and add more columns (#2200)
Diffstat (limited to 'src/pluginlistsortproxy.cpp')
| -rw-r--r-- | src/pluginlistsortproxy.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/pluginlistsortproxy.cpp b/src/pluginlistsortproxy.cpp index 5083af3f..7120fb4a 100644 --- a/src/pluginlistsortproxy.cpp +++ b/src/pluginlistsortproxy.cpp @@ -83,6 +83,15 @@ bool PluginListSortProxy::lessThan(const QModelIndex& left, QString rightVal = plugins->getIndexPriority(right.row()); return leftVal < rightVal; } break; + case PluginList::COL_AUTHOR: { + return QString::compare(plugins->getAuthor(left.row()), + plugins->getAuthor(right.row()), Qt::CaseInsensitive) < 0; + } break; + case PluginList::COL_DESCRIPTION: { + return QString::compare(plugins->getDescription(left.row()), + plugins->getDescription(right.row()), + Qt::CaseInsensitive) < 0; + } break; default: { return plugins->getPriority(left.row()) < plugins->getPriority(right.row()); } break; |
