mirror of
https://github.com/seiichiro0185/sailotp.git
synced 2024-12-22 11:42:30 +00:00
Some minor changes
Switched to FileIO as subproject Minor cosmetic changes for the CoverPage
This commit is contained in:
parent
ffb712f685
commit
95f00e8dd0
5 changed files with 17 additions and 9 deletions
|
@ -13,8 +13,7 @@ DEFINES += APP_BUILDNUM=\\\"$$RELEASE\\\"
|
|||
|
||||
CONFIG += sailfishapp
|
||||
|
||||
SOURCES += src/harbour-sailotp.cpp \
|
||||
src/fileio.cpp
|
||||
SOURCES += src/harbour-sailotp.cpp
|
||||
|
||||
OTHER_FILES += qml/harbour-sailotp.qml \
|
||||
qml/cover/CoverPage.qml \
|
||||
|
@ -34,9 +33,6 @@ OTHER_FILES += qml/harbour-sailotp.qml \
|
|||
qml/pages/ScanOTP.qml \
|
||||
qml/lib/urldecoder.js
|
||||
|
||||
HEADERS += \
|
||||
src/fileio.h
|
||||
|
||||
i18n.files = i18n/*.qm
|
||||
i18n.path = /usr/share/$${TARGET}/i18n
|
||||
|
||||
|
@ -53,3 +49,4 @@ lupdate_only {
|
|||
}
|
||||
|
||||
include(src/qzxing/QZXing.pri)
|
||||
include(src/FileIO/FileIO.pri)
|
||||
|
|
|
@ -75,12 +75,17 @@ CoverBackground {
|
|||
|
||||
Column {
|
||||
anchors.top: logo.bottom
|
||||
width: parent.width
|
||||
anchors.topMargin: 48
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
|
||||
Label {
|
||||
text: appWin.coverTitle
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
width: parent.width - Theme.paddingMedium*2
|
||||
maximumLineCount: 1
|
||||
truncationMode: TruncationMode.Fade
|
||||
horizontalAlignment: contentWidth <= width ? Text.AlignHCenter : Text.AlignLeft
|
||||
}
|
||||
Label {
|
||||
id: lOTP
|
||||
|
|
7
src/FileIO/FileIO.pri
Normal file
7
src/FileIO/FileIO.pri
Normal file
|
@ -0,0 +1,7 @@
|
|||
QT += core declarative
|
||||
|
||||
INCLUDEPATH += $$PWD/src
|
||||
|
||||
HEADERS += $$PWD/src/fileio.h
|
||||
|
||||
SOURCES += $$PWD/src/fileio.cpp
|
|
@ -31,16 +31,15 @@
|
|||
#define FILEIO_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QString>
|
||||
|
||||
class FileIO : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
Q_PROPERTY(QString source
|
||||
READ source
|
||||
WRITE setSource
|
||||
NOTIFY sourceChanged)
|
||||
Q_PROPERTY(QString source READ source WRITE setSource NOTIFY sourceChanged)
|
||||
|
||||
explicit FileIO(QObject *parent = 0);
|
||||
|
||||
Q_INVOKABLE QString read();
|
Loading…
Reference in a new issue