mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-09-15 06:52:34 +02:00
Cleanup unused includes
Fix loadScreens -> loadInstalledContent renaming
This commit is contained in:
parent
5c530f5e13
commit
3a32d64b28
@ -3,21 +3,13 @@
|
||||
#include <QFontDatabase>
|
||||
#include <QGuiApplication>
|
||||
#include <QIcon>
|
||||
#include <QLibrary>
|
||||
#include <QObject>
|
||||
#include <QQmlApplicationEngine>
|
||||
#include <QQmlContext>
|
||||
#include <QQmlEngine>
|
||||
#include <QThread>
|
||||
|
||||
#include <QQuickView>
|
||||
#include <QScreen>
|
||||
#include <QStringList>
|
||||
#include <QUrl>
|
||||
#include <QVariant>
|
||||
#include <QWindow>
|
||||
#include <QtGlobal>
|
||||
#include <QtQuick/QQuickItem>
|
||||
#include <QtWebEngine>
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
@ -90,8 +82,7 @@ int main(int argc, char* argv[])
|
||||
mainWindowEngine.rootContext()->setContextProperty("screenPlaySettings", &settings);
|
||||
mainWindowEngine.load(QUrl(QStringLiteral("qrc:/main.qml")));
|
||||
|
||||
installedListFilter.sortByRoleType("All");
|
||||
installedListModel.loadScreens();
|
||||
installedListModel.loadInstalledContent();
|
||||
|
||||
// Instead of setting "renderType: Text.NativeRendering" every time
|
||||
// we can set it here once :)
|
||||
|
@ -2,8 +2,10 @@
|
||||
|
||||
InstalledListFilter::InstalledListFilter(InstalledListModel* ilm)
|
||||
{
|
||||
|
||||
setSourceModel(ilm);
|
||||
setFilterRole(InstalledListModel::InstalledRole::TitleRole);
|
||||
sortByRoleType("All");
|
||||
}
|
||||
|
||||
void InstalledListFilter::sortByRoleType(QString type)
|
||||
|
@ -227,7 +227,7 @@ public slots:
|
||||
m_localStoragePath = cleanedPath.toString();
|
||||
emit localStoragePathChanged(cleanedPath.toString());
|
||||
m_ilm->reset();
|
||||
m_ilm->loadScreens();
|
||||
m_ilm->loadInstalledContent();
|
||||
}
|
||||
|
||||
void setDecoder(QString decoder)
|
||||
|
Loading…
Reference in New Issue
Block a user