Commit 264a31f6 authored by Ronan Abhamon's avatar Ronan Abhamon

fix(app): little fixes

parent dbd41363
...@@ -69,10 +69,9 @@ bool App::hasFocus () const { ...@@ -69,10 +69,9 @@ bool App::hasFocus () const {
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
void App::initContentApp () { void App::initContentApp () {
qInfo() << "Initializing core manager...";
// Init core. // Init core.
CoreManager::init(); CoreManager::init();
qInfo() << "Core manager initialized.";
// Register types and load context properties. // Register types and load context properties.
registerTypes(); registerTypes();
......
...@@ -177,6 +177,18 @@ ColumnLayout { ...@@ -177,6 +177,18 @@ ColumnLayout {
anchors.fill: parent anchors.fill: parent
hoverEnabled: true 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 { RowLayout {
anchors { anchors {
fill: parent fill: parent
...@@ -193,7 +205,9 @@ ColumnLayout { ...@@ -193,7 +205,9 @@ ColumnLayout {
} }
Text { Text {
Layout.fillHeight: true
Layout.preferredWidth: ContactsStyle.contact.username.width Layout.preferredWidth: ContactsStyle.contact.username.width
color: ContactsStyle.contact.username.color color: ContactsStyle.contact.username.color
elide: Text.ElideRight elide: Text.ElideRight
...@@ -203,18 +217,7 @@ ColumnLayout { ...@@ -203,18 +217,7 @@ ColumnLayout {
} }
text: $contact.vcard.username text: $contact.vcard.username
verticalAlignment: Text.AlignVCenter
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.
})
}
} }
// Container. // Container.
......
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