mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-11-27 18:10:31 -05:00
Fix markdown type for >= QT 5.15.18 (#12654) and advance vcpkg baseline
- Fix markdown type for >= QT 5.15.18 (#12654) - Fix deprecation warnings about implicit capturing of "this" - Advance vcpkg baseline to fix macOS Qt building Fixes Qt build errors on macOS 26 Tahoe. See https://github.com/microsoft/vcpkg/pull/48298
This commit is contained in:
parent
f484d7f5ed
commit
f39e0937b9
4 changed files with 11 additions and 10 deletions
|
|
@ -515,7 +515,7 @@ namespace Tools
|
|||
"application/protobuf",
|
||||
"application/x-zerosize"};
|
||||
const static QStringList HtmlFormats = {"text/html"};
|
||||
const static QStringList MarkdownFormats = {"text/markdown"};
|
||||
const static QStringList MarkdownFormats = {"text/markdown", "text/x-web-markdown"};
|
||||
const static QStringList ImageFormats = {"image/"};
|
||||
|
||||
static auto isCompatible = [](const QString& format, const QStringList& list) {
|
||||
|
|
|
|||
|
|
@ -642,12 +642,13 @@ MainWindow::MainWindow()
|
|||
auto* hidePreRelWarn = new QAction(tr("Don't show again for this version"), m_ui->globalMessageWidget);
|
||||
m_ui->globalMessageWidget->addAction(hidePreRelWarn);
|
||||
auto hidePreRelWarnConn = QSharedPointer<QMetaObject::Connection>::create();
|
||||
*hidePreRelWarnConn = connect(m_ui->globalMessageWidget, &KMessageWidget::hideAnimationFinished, [=] {
|
||||
m_ui->globalMessageWidget->removeAction(hidePreRelWarn);
|
||||
disconnect(*hidePreRelWarnConn);
|
||||
hidePreRelWarn->deleteLater();
|
||||
});
|
||||
connect(hidePreRelWarn, &QAction::triggered, [=] {
|
||||
*hidePreRelWarnConn = connect(
|
||||
m_ui->globalMessageWidget, &KMessageWidget::hideAnimationFinished, [this, hidePreRelWarn, hidePreRelWarnConn] {
|
||||
m_ui->globalMessageWidget->removeAction(hidePreRelWarn);
|
||||
disconnect(*hidePreRelWarnConn);
|
||||
hidePreRelWarn->deleteLater();
|
||||
});
|
||||
connect(hidePreRelWarn, &QAction::triggered, [this] {
|
||||
m_ui->globalMessageWidget->animatedHide();
|
||||
config()->set(Config::Messages_HidePreReleaseWarning, KEEPASSXC_VERSION);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -403,8 +403,8 @@ void TestTools::testGetMimeTypeByFileInfo()
|
|||
|
||||
const QStringList Markdowns = {"test.md", "test.markdown"};
|
||||
|
||||
for (const auto& makdown : Markdowns) {
|
||||
QCOMPARE(Tools::getMimeType(QFileInfo(makdown)), Tools::MimeType::Markdown);
|
||||
for (const auto& markdown : Markdowns) {
|
||||
QCOMPARE(Tools::getMimeType(QFileInfo(markdown)), Tools::MimeType::Markdown);
|
||||
}
|
||||
|
||||
const QStringList UnknownHeaders = {"test.doc", "test.pdf", "test.docx"};
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "keepassxc",
|
||||
"version-string": "2.8.0",
|
||||
"builtin-baseline": "74e6536215718009aae747d86d84b78376bf9e09",
|
||||
"builtin-baseline": "dfb72f61c5a066ab75cd0bdcb2e007228bfc3270",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "argon2",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue