[ALL] Reduced all the unneeded imports.
This commit is contained in:
parent
19b9e64882
commit
69cc9976e8
|
@ -29,7 +29,7 @@ unix {
|
|||
|
||||
INSTALLS += target
|
||||
|
||||
HEADERS += src/mpvobject.h src/config.h src/filesavedialog.h src/fileopendialog.h
|
||||
HEADERS += src/mpvobject.h src/filesavedialog.h src/fileopendialog.h
|
||||
|
||||
|
||||
DISTFILES += KittehPlayer.desktop KittehPlayer.png README.md LICENSE.txt
|
||||
|
|
12
src/config.h
12
src/config.h
|
@ -1,12 +0,0 @@
|
|||
#ifndef CONFIG_H
|
||||
#define CONFIG_H
|
||||
|
||||
#include <mpv/client.h>
|
||||
|
||||
#if MPV_CLIENT_API_VERSION >= MPV_MAKE_VERSION(1, 28)
|
||||
// good
|
||||
#else
|
||||
#error "Old MPV versions without render API are not supported."
|
||||
#endif
|
||||
|
||||
#endif // CONFIG_H
|
25
src/main.cpp
25
src/main.cpp
|
@ -1,30 +1,13 @@
|
|||
#include <stdexcept>
|
||||
#include <clocale>
|
||||
#include <bits/stdc++.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "config.h"
|
||||
#include "mpvobject.h"
|
||||
#ifdef QRC_SOURCE_PATH
|
||||
#include "runtimeqml/runtimeqml.h"
|
||||
#endif
|
||||
|
||||
#include <QApplication>
|
||||
#include <QQmlApplicationEngine>
|
||||
#include <QProcessEnvironment>
|
||||
#include "fileopendialog.h"
|
||||
#include "filesavedialog.h"
|
||||
|
||||
#include <QApplication>
|
||||
|
||||
#include <QGuiApplication>
|
||||
#include <QMainWindow>
|
||||
|
||||
#include <QQmlApplicationEngine>
|
||||
#include <QObject>
|
||||
#include <QWidget>
|
||||
#include <QtGui/QOpenGLFramebufferObject>
|
||||
#include <QQuickView>
|
||||
#include <QProcessEnvironment>
|
||||
|
||||
#include "mpvobject.h"
|
||||
|
||||
int main( int argc, char *argv[] )
|
||||
{
|
||||
|
|
|
@ -3,26 +3,12 @@
|
|||
#include <clocale>
|
||||
|
||||
#include "mpvobject.h"
|
||||
#include "config.h"
|
||||
|
||||
|
||||
#include <QObject>
|
||||
#include <QtGlobal>
|
||||
#include <QtCore>
|
||||
#include <QApplication>
|
||||
|
||||
#include <QQuickWindow>
|
||||
#include <QOpenGLContext>
|
||||
#include <QOpenGLFramebufferObject>
|
||||
|
||||
#include <QGuiApplication>
|
||||
#include <QtQuick/QQuickWindow>
|
||||
#include <QtQuick/QQuickView>
|
||||
#include <QQuickFramebufferObject>
|
||||
#include <QOpenGLContext>
|
||||
#include <QtQuick/QQuickWindow>
|
||||
#include <QtQuick/QQuickView>
|
||||
#include <QtGui/QOpenGLFramebufferObject>
|
||||
|
||||
#include <QJsonDocument>
|
||||
|
||||
namespace
|
||||
{
|
||||
|
|
|
@ -1,23 +1,14 @@
|
|||
#ifndef MPVOBJECT_H
|
||||
#define MPVOBJECT_H
|
||||
|
||||
#include <QQuickFramebufferObject>
|
||||
|
||||
#include <mpv/client.h>
|
||||
|
||||
#include <mpv/render_gl.h>
|
||||
|
||||
#include <mpv/qthelper.hpp>
|
||||
|
||||
#include <QObject>
|
||||
#include <QtGlobal>
|
||||
#include <QOpenGLContext>
|
||||
#include <QGuiApplication>
|
||||
|
||||
#include <QQuickFramebufferObject>
|
||||
|
||||
#include <QtQuick/QQuickWindow>
|
||||
#include <QtQuick/QQuickView>
|
||||
|
||||
|
||||
class MpvRenderer;
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
import QtQuick 2.11
|
||||
import QtQuick.Controls 2.4
|
||||
import QtQuick.Dialogs 1.3
|
||||
import QtQuick.Layouts 1.11
|
||||
import QtQuick.Window 2.11
|
||||
|
||||
ComboBox {
|
||||
id: control
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
import QtQuick 2.11
|
||||
import QtQuick.Controls 2.4
|
||||
import QtQuick.Dialogs 1.3
|
||||
import QtQuick.Layouts 1.11
|
||||
import QtQuick.Window 2.11
|
||||
|
||||
MenuItem {
|
||||
FontLoader {
|
||||
|
|
|
@ -5,7 +5,6 @@ import QtQuick.Layouts 1.11
|
|||
import QtQuick.Window 2.11
|
||||
import Qt.labs.settings 1.0
|
||||
import player 1.0
|
||||
//import QtGraphicalEffects 1.0
|
||||
|
||||
import "codes.js" as LanguageCodes
|
||||
|
||||
|
|
Loading…
Reference in a new issue