Skip to content
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

qt: Expose branding color #670

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

CarlSchwan
Copy link
Contributor

No description provided.

@aleixpol
Copy link
Collaborator

Note this breaks the FreeBSD CI because the forward declaration is by class rather than struct.

I'd pass this values as QStringView rather than QString when possible (not that it matters much, most of these APIs will be unused).

#include <QSharedDataPointer>
#include "appstreamqt_export.h"

class _AsBranding;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be struct, shouldn't it?

@@ -0,0 +1,102 @@
// SPDX-FileCopyrightText: 2024 Carl Schwan <carl@carlschwan.eu>
// SPDX-License-Identifier: LGPL-2.1-or-later
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you use the full copyright please, like in all other files? I do like the SPDX strings, but I think it will be easier to convert everything all at once at a future point, rather than having one outlier file.

{
}

Branding::Branding(_AsBranding *devp)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

devp should probably be branding

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants