New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nomovok #7
Nomovok #7
Changes from all commits
564ed17
25b93a7
c58f31f
0861eaa
57cd832
ebf798b
54add69
8b49a40
fe77072
ecf05c6
e69b30b
46f64d6
05f36ae
5e88134
ad0b534
a5ac9dd
805e9f8
29f1f80
6773aed
ac4d621
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# | ||
# Do NOT Edit the Auto-generated Part! | ||
# Generated by: spectacle version 0.26 | ||
# | ||
|
||
Name: qmlcontacts | ||
|
||
# >> macros | ||
# << macros | ||
|
||
Summary: Contacts application for nemo | ||
Version: 0.4.2 | ||
Release: 1 | ||
Group: Applications/System | ||
License: GPLv2 | ||
URL: https://github.com/nemomobile/qmlcontacts | ||
Source0: %{name}-%{version}.tar.gz | ||
#Source100: qmlcontacts-qt5.yaml | ||
Requires: qt-components-qt5 >= 1.4.8 | ||
Requires: mapplauncherd-booster-qtcomponents-qt5 | ||
Requires: nemo-qml-plugin-thumbnailer-qt5 | ||
Requires: nemo-qml-plugin-contacts-qt5 | ||
Requires: nemo-qml-plugin-folderlistmodel | ||
Requires: qmlgallery | ||
Requires: qmlfilemuncher | ||
Requires: contactsd | ||
Requires: nemo-qml-plugin-dbus-qt5 | ||
BuildRequires: pkgconfig(Qt5Core) | ||
BuildRequires: pkgconfig(Qt5Contacts) | ||
BuildRequires: pkgconfig(qdeclarative5-boostable) | ||
BuildRequires: pkgconfig(Qt5Gui) | ||
BuildRequires: pkgconfig(Qt5Widgets) | ||
BuildRequires: pkgconfig(Qt5Quick) | ||
BuildRequires: desktop-file-utils | ||
Provides: meego-handset-people > 0.2.32 | ||
Provides: meego-handset-people-branding-upstream > 0.2.32 | ||
Obsoletes: meego-handset-people <= 0.2.32 | ||
Obsoletes: meego-handset-people-branding-upstream <= 0.2.32 | ||
|
||
%description | ||
Contacts application using Qt Quick for Nemo Mobile. | ||
|
||
%prep | ||
%setup -q -n %{name}-%{version} | ||
|
||
# >> setup | ||
# << setup | ||
|
||
%build | ||
# >> build pre | ||
# << build pre | ||
|
||
qmake -qt=5 -recursive | ||
|
||
make %{?jobs:-j%jobs} | ||
|
||
# >> build post | ||
# << build post | ||
|
||
%install | ||
rm -rf %{buildroot} | ||
# >> install pre | ||
# << install pre | ||
%qmake_install | ||
|
||
# >> install post | ||
# << install post | ||
|
||
desktop-file-install --delete-original \ | ||
--dir %{buildroot}%{_datadir}/applications \ | ||
%{buildroot}%{_datadir}/applications/*.desktop | ||
|
||
%files | ||
%defattr(-,root,root,-) | ||
%{_bindir}/qmlcontacts | ||
%{_datadir}/applications/qmlcontacts.desktop | ||
%{_libdir}/qt5/qml/org/nemomobile/qmlcontacts/* | ||
# >> files | ||
# << files |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,9 +31,9 @@ | |
|
||
#include <QDesktopServices> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. QStandardPaths |
||
#include <QApplication> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. QGuiApplication, you want to drop QtWidgets too during the port (as it's a lot of dead weight) |
||
#include <QDeclarativeView> | ||
#include <QDeclarativeEngine> | ||
#include <QDeclarativeContext> | ||
#include <QQuickView> | ||
#include <QQmlEngine> | ||
#include <QQmlContext> | ||
#include <QDebug> | ||
#include <QDir> | ||
#ifdef HAS_BOOSTER | ||
|
@@ -45,15 +45,16 @@ Q_DECL_EXPORT | |
#endif | ||
int main(int argc, char **argv) | ||
{ | ||
QApplication *application; | ||
QDeclarativeView *view; | ||
QQuickView *view; | ||
#ifdef HAS_BOOSTER | ||
QGuiApplication *application; | ||
application = MDeclarativeCache::qApplication(argc, argv); | ||
view = MDeclarativeCache::qDeclarativeView(); | ||
#else | ||
QApplication *application; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. QGuiApplication |
||
qWarning() << Q_FUNC_INFO << "Warning! Running without booster. This may be a bit slower."; | ||
QApplication stackApp(argc, argv); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same |
||
QDeclarativeView stackView; | ||
QQuickView stackView; | ||
application = &stackApp; | ||
view = &stackView; | ||
#endif | ||
|
@@ -77,15 +78,16 @@ int main(int argc, char **argv) | |
view->setSource(QUrl::fromLocalFile("main.qml")); | ||
else | ||
view->setSource(QUrl("qrc:/qml/main.qml")); | ||
|
||
/* | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. just delete this block, not needed anymore |
||
view->setAttribute(Qt::WA_OpaquePaintEvent); | ||
view->setAttribute(Qt::WA_NoSystemBackground); | ||
view->viewport()->setAttribute(Qt::WA_OpaquePaintEvent); | ||
view->viewport()->setAttribute(Qt::WA_NoSystemBackground); | ||
*/ | ||
|
||
// TODO: we could do with a plugin to access QDesktopServices paths | ||
view->rootContext()->setContextProperty("systemAvatarDirectory", QDesktopServices::storageLocation(QDesktopServices::PicturesLocation)); | ||
view->rootContext()->setContextProperty("DocumentsLocation", QDesktopServices::storageLocation(QDesktopServices::DocumentsLocation)); | ||
view->rootContext()->setContextProperty("systemAvatarDirectory", QStandardPaths::writableLocation(QStandardPaths::PicturesLocation)); | ||
view->rootContext()->setContextProperty("DocumentsLocation", QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation)); | ||
|
||
if (isFullscreen) | ||
view->showFullScreen(); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import QtQuick 2.0 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can you please split the CheckBox stuff/UI changes off, and let's just focus on the port for now? |
||
|
||
FocusScope { | ||
id: checkbox | ||
|
||
Accessible.role: Accessible.RadioButton | ||
|
||
property string text: "CheckBox" | ||
property bool checked: false | ||
|
||
width: 100 | ||
height: 30 | ||
|
||
Row { | ||
spacing: 2 | ||
|
||
Rectangle { | ||
width: 12 | ||
height: 12 | ||
border.width: checkbox.focus ? 2 : 1 | ||
border.color: "black" | ||
|
||
Text { | ||
id: checkboxText | ||
text: checkbox.checked ? "x" : "" | ||
anchors.centerIn: parent | ||
} | ||
} | ||
|
||
Text { | ||
text: checkbox.text | ||
} | ||
} | ||
|
||
MouseArea { | ||
anchors.fill: parent | ||
//onClicked: checkbox.checked = !checkbox.checked | ||
} | ||
|
||
// Keys.onSpacePressed: checkbox.checked = !checkbox.checked | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,11 +29,10 @@ | |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." | ||
*/ | ||
|
||
import QtQuick 1.1 | ||
import com.nokia.meego 1.0 | ||
import QtQuick 2.0 | ||
import com.nokia.meego 2.0 | ||
import org.nemomobile.qmlcontacts 1.0 | ||
import org.nemomobile.contacts 1.0 | ||
import stage.rubyx.voicecall 1.0 | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. just removing this import will break the call button, won't it? you want import org.nemomobile.voicecall 1.0 |
||
Page { | ||
id: detailViewPage | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,8 +29,8 @@ | |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." | ||
*/ | ||
|
||
import QtQuick 1.1 | ||
import com.nokia.meego 1.2 | ||
import QtQuick 2.0 | ||
import com.nokia.meego 2.0 | ||
import org.nemomobile.qmlcontacts 1.0 | ||
import org.nemomobile.contacts 1.0 | ||
|
||
|
@@ -52,6 +52,10 @@ Page { | |
app.contactListModel.search(searchbox.searchText); | ||
} | ||
} | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. drop the empty function |
||
function contactChange() | ||
{ | ||
} | ||
|
||
Component { | ||
id: contactComponent | ||
|
@@ -76,7 +80,6 @@ Page { | |
id: card | ||
onClicked: pageStack.push(Qt.resolvedUrl("ContactCardPage.qml"), { contact: model.person }) | ||
} | ||
|
||
} | ||
|
||
tools: ToolBarLayout { | ||
|
@@ -110,6 +113,13 @@ Page { | |
exportCompleteDialog.open() | ||
} | ||
} | ||
|
||
MenuItem { | ||
text: "Settings" | ||
onClicked: { | ||
pageStack.push(Qt.resolvedUrl("SettingsPage.qml")); | ||
} | ||
} | ||
} | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't fork the packaging for apps - just port it to qt5 (see the other ports for examples)
there's not enough people working on this code to justify having both qt4 and qt5 versions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok. when I read the history, I think, I did mess up with merging. Sorry, I fix those and try again.