mirror of
https://invent.kde.org/multimedia/kdenlive
synced 2025-12-05 15:59:59 +01:00
related to #1787 **Todo:** - [x] Use the real recent files list and allow opening with double click or enter - [x] Redirect links for contribute and fund to our website - [x] Handle the don't show checkbox, and add an option in the Kdenlive settings to show it again - [x] Show a simplified splash only qml if user doesn't want the welcome screen - [x] Don't show welcome screen if the user is opening a project from command line or file browser - [ ] What shall we show if there is no recent projects **Maybe** - [x] Display modified date for recent projects - [ ] Display thumbnail / screenshot for recent projects
46 lines
1.7 KiB
C++
46 lines
1.7 KiB
C++
/*
|
|
SPDX-FileCopyrightText: 2018-2022 Jean-Baptiste Mardelle <jb@kdenlive.org>
|
|
SPDX-FileCopyrightText: 2017-2019 Nicolas Carion <french.ebook.lover@gmail.com>
|
|
SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
|
*/
|
|
#define CATCH_CONFIG_RUNNER
|
|
#include "catch.hpp"
|
|
|
|
#include "bin/projectitemmodel.h"
|
|
#include "core.h"
|
|
#include "mltconnection.h"
|
|
#include "src/effects/effectsrepository.hpp"
|
|
#include "src/mltcontroller/clipcontroller.h"
|
|
#include <QApplication>
|
|
#include <mlt++/MltFactory.h>
|
|
#include <mlt++/MltRepository.h>
|
|
|
|
/* This file is intended to remain empty.
|
|
Write your tests in a file with a name corresponding to what you're testing */
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QHashSeed::setDeterministicGlobalSeed();
|
|
qputenv("MLT_REPOSITORY_DENY", "libmltqt:libmltglaxnimate");
|
|
QApplication app(argc, argv);
|
|
app.setApplicationName(QStringLiteral("kdenlive"));
|
|
std::unique_ptr<Mlt::Repository> repo(Mlt::Factory::init(nullptr));
|
|
qputenv("MLT_TESTS", QByteArray("1"));
|
|
qSetMessagePattern(QStringLiteral("%{time hh:mm:ss.zzz } %{file}:%{line} -- %{message}"));
|
|
Core::build(LinuxPackageType::Unknown, true);
|
|
MltConnection::construct(QString());
|
|
pCore->projectItemModel()->buildPlaylist(QUuid());
|
|
// if Kdenlive is not installed, ensure we have one keyframable effect
|
|
EffectsRepository::get()->reloadCustom(QFileInfo("../data/effects/audiobalance.xml").absoluteFilePath());
|
|
|
|
int result = Catch::Session().run(argc, argv);
|
|
pCore->cleanup();
|
|
pCore->mediaUnavailable.reset();
|
|
|
|
// global clean-up...
|
|
// delete repo;
|
|
pCore->projectItemModel()->clean();
|
|
pCore->cleanup();
|
|
return (result < 0xff ? result : 0xff);
|
|
}
|