Skip to content

Commit

Permalink
feat(module): init video module
Browse files Browse the repository at this point in the history
Change-Id: Ibee431976953eb85e8ece9e901b548dd4fadf36b
  • Loading branch information
justforlxz committed Feb 6, 2018
1 parent 03a0f4a commit fb73676
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 2 deletions.
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_FLAGS -Wall)

# Sources files
file(GLOB SRCS "src/*.h" "src/*.cpp")
file(GLOB SRCS "src/*.h"
"src/*.cpp"
"src/modules/*.h"
"src/modules/*.cc")

# Find the library
find_package(PkgConfig REQUIRED)
Expand All @@ -37,4 +40,4 @@ endif ()
install(TARGETS ${BIN_NAME} DESTINATION bin)

# desktop
install (FILES dde-introduction.desktop DESTINATION share/applications)
install (FILES dde-introduction.desktop DESTINATION share/applications)
25 changes: 25 additions & 0 deletions src/modules/videowidget.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* Copyright (C) 2017 ~ 2018 Deepin Technology Co., Ltd.
*
* Author: kirigaya <kirigaya@mkacg.com>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include "videowidget.h"

VideoWidget::VideoWidget(QWidget *parent)
: DVideoWidget(parent)
{

}
28 changes: 28 additions & 0 deletions src/modules/videowidget.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* Copyright (C) 2017 ~ 2018 Deepin Technology Co., Ltd.
*
* Author: kirigaya <kirigaya@mkacg.com>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#include <DVideoWidget>

DWIDGET_USE_NAMESPACE

class VideoWidget : public DVideoWidget {
Q_OBJECT
explicit VideoWidget(QWidget *parent = nullptr);

private:
};

0 comments on commit fb73676

Please sign in to comment.