fix(app): little fixes

This commit is contained in:
Ronan Abhamon 2017-01-10 12:44:22 +01:00
parent dbd413631f
commit 264a31f646
2 changed files with 16 additions and 14 deletions

View file

@ -69,10 +69,9 @@ bool App::hasFocus () const {
// -----------------------------------------------------------------------------
void App::initContentApp () {
qInfo() << "Initializing core manager...";
// Init core.
CoreManager::init();
qInfo() << "Core manager initialized.";
// Register types and load context properties.
registerTypes();

View file

@ -177,6 +177,18 @@ ColumnLayout {
anchors.fill: parent
hoverEnabled: true
MouseArea {
anchors.fill: parent
cursorShape: containsMouse
? Qt.PointingHandCursor
: Qt.ArrowCursor
hoverEnabled: true
onClicked: window.setView('ContactEdit', {
sipAddress: $contact.vcard.sipAddresses[0] // FIXME: Display menu if many addresses.
})
}
RowLayout {
anchors {
fill: parent
@ -193,7 +205,9 @@ ColumnLayout {
}
Text {
Layout.fillHeight: true
Layout.preferredWidth: ContactsStyle.contact.username.width
color: ContactsStyle.contact.username.color
elide: Text.ElideRight
@ -203,18 +217,7 @@ ColumnLayout {
}
text: $contact.vcard.username
MouseArea {
anchors.fill: parent
cursorShape: containsMouse
? Qt.PointingHandCursor
: Qt.ArrowCursor
hoverEnabled: true
onClicked: window.setView('ContactEdit', {
sipAddress: $contact.vcard.sipAddresses[0] // FIXME: Display menu if many addresses.
})
}
verticalAlignment: Text.AlignVCenter
}
// Container.