Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

Rearrange the file system layout #2

Merged
merged 1 commit into from Jan 10, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
File renamed without changes.
File renamed without changes.
File renamed without changes.
17 changes: 2 additions & 15 deletions uitk2.pri → imports/controls/ubuntu/cpp/cpp.pri
@@ -1,3 +1,5 @@
INCLUDEPATH+=$$PWD

SOURCES += \
$$PWD/ubuntustyle.cpp \
$$PWD/ubuntutheme.cpp \
Expand All @@ -14,18 +16,3 @@ HEADERS += \
$$PWD/ubuntunumberanimation_p.h \
$$PWD/themeiconprovider_p.h \
$$PWD/palettevalues_p.h

QML_UBUNTU_FILES = \
$$PWD/Icon.qml

QML_FILES += \
$$QML_UBUNTU_FILES \
$$PWD/BusyIndicator.qml \
$$PWD/Button.qml \
$$PWD/CheckBox.qml

# yet
OTHER_FILES += QML_FILES

RESOURCES += \
$$PWD/uitk2.qrc
Expand Up @@ -41,6 +41,7 @@ void SuruNormal::lightColors()
m_colors[Field] = UbuntuStyle::color(UbuntuStyle::White);
m_colors[FieldText] = UbuntuStyle::color(UbuntuStyle::Jet);
m_colors[Focus] = UbuntuStyle::color(UbuntuStyle::Blue);

m_colors[FocusText] = UbuntuStyle::color(UbuntuStyle::White);
m_colors[Selection] = UbuntuStyle::color(UbuntuStyle::Blue, 0.2);
m_colors[SelectionText] = UbuntuStyle::color(UbuntuStyle::Jet);
Expand Down
11 changes: 11 additions & 0 deletions imports/controls/ubuntu/qml.pri
@@ -0,0 +1,11 @@
QML_UBUNTU_FILES = \
$$PWD/Icon.qml

QML_FILES += \
$$QML_UBUNTU_FILES \
$$PWD/BusyIndicator.qml \
$$PWD/Button.qml \
$$PWD/CheckBox.qml

# yet
OTHER_FILES += QML_FILES
File renamed without changes.
43 changes: 43 additions & 0 deletions imports/controls/ubuntu/ubuntu.pro
@@ -0,0 +1,43 @@
TEMPLATE = lib
TARGET = uitk2styleplugin
TARGETPATH = QtQuick/Controls.2/Ubuntu
IMPORT_VERSION = 2.0
uri = QtQuick.Controls.Ubuntu

QT += qml quick
QT_PRIVATE += core-private gui-private qml-private quick-private quicktemplates2-private quickcontrols2-private

DEFINES += QT_NO_CAST_TO_ASCII QT_NO_CAST_FROM_ASCII

OTHER_FILES += \
$$PWD/qmldir

SOURCES += \
$$PWD/cpp/uitk2_plugin.cpp

HEADERS += \
$$PWD/cpp/uitk2_plugin.h

RESOURCES += \
$$PWD/uitk2.qrc

include(qml.pri)
include(cpp/cpp.pri)

#DISTFILES += \
# uitk2.pri

qmldir.files = qmldir
qmlfiles.file = $$QML_FILES


CONFIG += no_cxx_module
load(qml_plugin)

#unix {
# installPath = $$[QT_INSTALL_QML]/$${TARGETPATH}
# qmldir.path = $$installPath
# qmlfiles.path = $$installPath
# target.path = $$installPath
# #INSTALLS += target qmldir
#}
File renamed without changes.
2 changes: 2 additions & 0 deletions imports/imports.pro
@@ -0,0 +1,2 @@
TEMPLATE = subdirs
SUBDIRS += controls/ubuntu
42 changes: 2 additions & 40 deletions uitk2.pro
@@ -1,40 +1,2 @@
TEMPLATE = lib
TARGET = uitk2styleplugin
TARGETPATH = QtQuick/Controls.2/Ubuntu
IMPORT_VERSION = 2.0
uri = QtQuick.Controls.Ubuntu

QT += qml quick
QT_PRIVATE += core-private gui-private qml-private quick-private quicktemplates2-private quickcontrols2-private

DEFINES += QT_NO_CAST_TO_ASCII QT_NO_CAST_FROM_ASCII

OTHER_FILES += \
$$PWD/qmldir

SOURCES += \
$$PWD/uitk2_plugin.cpp

HEADERS += \
$$PWD/uitk2_plugin.h

#RESOURCES += \
# $$PWD/uitk2_plugin.qrc

include(uitk2.pri)

DISTFILES += \
uitk2.pri

qmldir.files = qmldir
qmlfiles.file = $$QML_FILES
unix {
installPath = $$[QT_INSTALL_QML]/$${TARGETPATH}
qmldir.path = $$installPath
qmlfiles.path = $$installPath
target.path = $$installPath
INSTALLS += target qmldir
}

CONFIG += no_cxx_module
load(qml_plugin)
TEMPLATE=subdirs
SUBDIRS+=imports