Commit 121cd16c authored by Camilo higuita's avatar Camilo higuita

add cmake file and remove unused files

parent 7aee8477
project(pix)
cmake_minimum_required(VERSION 3.0)
find_package(ECM 1.7.0 REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ${ECM_MODULE_PATH})
find_package(MauiKit REQUIRED)
find_package(Qt5 REQUIRED NO_MODULE COMPONENTS Qml Quick Sql QuickControls2 Widgets)
include(KDEInstallDirs)
include(KDECompilerSettings NO_POLICY_SCOPE)
include(KDECMakeSettings)
include(ECMInstallIcons)
include(FeatureSummary)
include(ECMAddAppIcon)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTORCC ON)
add_executable(pix
assests.qrc
main.cpp
src/pix.cpp
src/qml.qrc
db/db.cpp
dbactions.cpp
)
if (ANDROID)
find_package(Qt5 REQUIRED COMPONENTS AndroidExtras)
target_link_libraries(vvave Qt5::AndroidExtras)
kde_source_files_enable_exceptions(pix src/pix.cpp)
endif()
if (TARGET create-apk-pix)
set_target_properties(create-apk-pix PROPERTIES ANDROID_APK_DIR "${MAUIKIT_ANDROID_DIR}")
endif()
target_link_libraries(pix Qt5::Sql Qt5::Qml Qt5::Widgets)
install(TARGETS pix ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
install(FILES org.kde.pix.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
#TODO: port to ecm_install_icons()
install(FILES assets/pix.svg DESTINATION ${KDE_INSTALL_ICONDIR}/hicolor/scalable/apps)
install(FILES org.kde.pix.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
<RCC>
<qresource prefix="/">
<file alias="org/kde/kirigami/icons/go-up.svg">3rdparty/breeze-icons/icons/actions/22/go-up.svg</file>
<file alias="org/kde/kirigami/icons/overflow-menu.svg">3rdparty/breeze-icons/icons/actions/22/overflow-menu.svg</file>
<file alias="org/kde/kirigami/icons/applications-graphics.svg">3rdparty/breeze-icons/icons/categories/32/applications-graphics.svg</file>
<file alias="org/kde/kirigami/icons/image-multiple.svg">3rdparty/breeze-icons/icons/actions/22/image-multiple.svg</file>
<file alias="org/kde/kirigami/icons/image-frames.svg">3rdparty/breeze-icons/icons/actions/22/image-frames.svg</file>
<file alias="org/kde/kirigami/icons/image-folder-view.svg">3rdparty/breeze-icons/icons/actions/22/image-folder-view.svg</file>
<file alias="org/kde/kirigami/icons/object-rotate-right.svg">3rdparty/breeze-icons/icons/actions/22/object-rotate-right.svg</file>
<file>3rdparty/breeze-icons/icons/actions/22/process-stop.svg</file>
<file alias="org/kde/kirigami/icons/tag.svg">3rdparty/breeze-icons/icons/actions/22/tag.svg</file>
<file>3rdparty/breeze-icons/icons/actions/22/view-list-icons.svg</file>
<file>3rdparty/breeze-icons/icons/actions/22/view-list-details.svg</file>
<file alias="org/kde/kirigami/icons/view-fullscreen.svg">3rdparty/breeze-icons/icons/actions/22/view-fullscreen.svg</file>
<file alias="org/kde/kirigami/icons/view-preview.svg">3rdparty/breeze-icons/icons/actions/22/view-preview.svg</file>
<file alias="org/kde/kirigami/icons/view-refresh.svg">3rdparty/breeze-icons/icons/actions/22/view-refresh.svg</file>
<file alias="org/kde/kirigami/icons/window-close.svg">3rdparty/breeze-icons/icons/actions/22/window-close.svg</file>
<file alias="org/kde/kirigami/icons/list-add.svg">3rdparty/breeze-icons/icons/actions/22/list-add.svg</file>
<file alias="org/kde/kirigami/icons/list-remove.svg">3rdparty/breeze-icons/icons/actions/22/list-remove.svg</file>
<file>3rdparty/breeze-icons/icons/actions/22/image.svg</file>
<file alias="org/kde/kirigami/icons/go-previous.svg">3rdparty/breeze-icons/icons/actions/22/go-previous.svg</file>
<file alias="org/kde/kirigami/icons/go-next.svg">3rdparty/breeze-icons/icons/actions/22/go-next.svg</file>
<file>3rdparty/breeze-icons/icons/actions/22/go-last.svg</file>
<file>3rdparty/breeze-icons/icons/actions/22/go-home.svg</file>
<file>3rdparty/breeze-icons/icons/actions/22/go-first.svg</file>
<file>3rdparty/breeze-icons/icons/actions/22/go-down.svg</file>
<file>3rdparty/breeze-icons/icons/actions/22/edit-undo.svg</file>
<file>3rdparty/breeze-icons/icons/actions/22/edit-redo.svg</file>
<file>3rdparty/breeze-icons/icons/actions/22/draw-text.svg</file>
<file>3rdparty/breeze-icons/icons/actions/22/edit-clear.svg</file>
<file alias="org/kde/kirigami/icons/edit-find.svg">3rdparty/breeze-icons/icons/actions/22/edit-find.svg</file>
<file alias="org/kde/kirigami/icons/document-save-as.svg">3rdparty/breeze-icons/icons/actions/22/document-save-as.svg</file>
<file>3rdparty/breeze-icons/icons/actions/22/document-save.svg</file>
<file alias="org/kde/kirigami/icons/document-share.svg">3rdparty/breeze-icons/icons/actions/22/document-share.svg</file>
<file>3rdparty/breeze-icons/icons/actions/22/document-open.svg</file>
<file alias="org/kde/kirigami/icons/dialog-close.svg">3rdparty/breeze-icons/icons/actions/22/dialog-close.svg</file>
<file>3rdparty/breeze-icons/icons/actions/22/configure.svg</file>
<file alias="org/kde/kirigami/icons/love.svg">3rdparty/breeze-icons/icons/actions/22/love.svg</file>
<file alias="org/kde/kirigami/icons/application-menu.svg">3rdparty/breeze-icons/icons/actions/22/application-menu.svg</file>
<file alias="org/kde/kirigami/icons/folder.svg">3rdparty/breeze-icons/icons/places/32/folder.svg</file>
<file alias="org/kde/kirigami/icons/emblem-added.svg">3rdparty/breeze-icons/icons/emblems/16/emblem-added.svg</file>
<file alias="org/kde/kirigami/icons/emblem-remove.svg">3rdparty/breeze-icons/icons/emblems/16/emblem-remove.svg</file>
</qresource>
</RCC>
<?xml version="1.0" encoding="utf-8"?>
<component type="desktop">
<id>org.kde.pix.desktop</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>LGPL-3.0</project_license>
<name>Pix</name>
<name xml:lang="ca">Pix</name>
<name xml:lang="ca-valencia">Pix</name>
<name xml:lang="fr">Pix</name>
<name xml:lang="nl">Pix</name>
<name xml:lang="pt">Pix</name>
<name xml:lang="sk">Pix</name>
<name xml:lang="sv">Pix</name>
<name xml:lang="uk">Pix</name>
<name xml:lang="x-test">xxPixxx</name>
<summary>Play your music collection</summary>
<summary xml:lang="ca">Reprodueix la vostra col·lecció de música</summary>
<summary xml:lang="ca-valencia">Reprodueix la vostra col·lecció de música</summary>
<summary xml:lang="fr">Jouez votre collection musicale</summary>
<summary xml:lang="nl">Uw muziekcollectie afspelen</summary>
<summary xml:lang="pt">Tocar a sua colecção de música</summary>
<summary xml:lang="sk">Prehrať vašu hudobnú kolekciu</summary>
<summary xml:lang="sv">Spela din musiksamling</summary>
<summary xml:lang="uk">Відтворіть вашу музичну збірку</summary>
<summary xml:lang="x-test">xxPlay your music collectionxx</summary>
<description>
<p> Convergent image and gallery viewer. </p>
<p xml:lang="x-test">xxConvergent image and gallery viewer.xx</p>
</description>
<url type="homepage">https://pix.kde.org/</url>
<url type="bugtracker">https://bugs.kde.org/enter_bug.cgi?product=pix</url>
<url type="donation">https://www.kde.org/community/donations</url>
<url type="help">https://docs.kde.org/trunk5/en/extragear-multimedia/pix/</url>
<screenshots>
<screenshot type="default">
<caption>The Pix music player</caption>
<caption xml:lang="ca">El reproductor de música Pix</caption>
<caption xml:lang="ca-valencia">El reproductor de música Pix</caption>
<caption xml:lang="fr">Lecteur de musique Pix</caption>
<caption xml:lang="nl">De Pix muziekspeler</caption>
<caption xml:lang="pt">O leitor de música Pix</caption>
<caption xml:lang="sk">Prehrávač hudby Pix</caption>
<caption xml:lang="sv">Pix musikspelaren</caption>
<caption xml:lang="uk">Музичний програвач Pix</caption>
<caption xml:lang="x-test">xxThe Pix music playerxx</caption>
<image type="source" width="1366" height="744">
https://raw.githubusercontent.com/mauikit/pix/master/screenshots/view1.png
</image>
</screenshot>
</screenshots>
<provides>
<binary>pix</binary>
</provides>
<project_group>KDE</project_group>
<releases>
<release version="0.1.0" date="2018-09-06"/>
</releases>
</component>
QT += quick
CONFIG += c++11
# The following define makes your compiler emit warnings if you use
# any feature of Qt which as been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
SOURCES += main.cpp
RESOURCES += qml.qrc
# Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH =
# Additional import path used to resolve QML modules just for Qt Quick Designer
QML_DESIGNER_IMPORT_PATH =
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
import QtQuick 2.3
Text
{
id: text
property string iconColor
property int iconSize
font.family: "Material Design Icons"
font.pixelSize: iconSize || 24
anchors.centerIn: parent
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
}
This diff is collapsed.
......@@ -114,14 +114,14 @@ Maui.Page
footBar.middleContent: [
Maui.ToolButton
{
iconName: "list-add"
iconName: "zoom-in"
iconColor: altColorText
onClicked: zoomIn()
},
Maui.ToolButton
{
iconName: "list-remove"
iconName: "zoom-out"
iconColor: altColorText
onClicked: zoomOut()
......
......@@ -132,16 +132,18 @@ ItemDelegate
Item
{
Layout.fillHeight: showLabel
height: showLabel ? (unit * 24) + space.small : 0
Layout.fillWidth: true
Layout.maximumHeight: !showLabel ? 0 : parent.height * (isMobile? 0.5 : 0.3)
Layout.maximumHeight: height
Layout.minimumHeight: height
Layout.preferredHeight: height
visible: showLabel
Label
{
text: title
width: parent.width
height: parent.height * 0.8
height: parent.height
horizontalAlignment: Qt.AlignHCenter
verticalAlignment: Qt.AlignVCenter
elide: Qt.ElideRight
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment