Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9ad682b95f | ||
|
|
f574e39012 | ||
|
|
8495fae8a5 | ||
|
|
07a5dc09ac |
@@ -1,4 +1,10 @@
|
||||
make clean
|
||||
qmake sandbox.pro -spec macx-clang CONFIG+=debug CONFIG+=x86_64 && /usr/bin/make qmake_all
|
||||
make
|
||||
#!/bin/bash
|
||||
|
||||
make clean
|
||||
if [[ $OSTYPE == 'darwin'* ]]
|
||||
then
|
||||
qmake sandbox.pro -spec macx-clang CONFIG+=debug CONFIG+=x86_64 && /usr/bin/make qmake_all
|
||||
else
|
||||
qmake sandbox.pro CONFIG+=debug CONFIG+=x86_64 && /usr/bin/make qmake_all
|
||||
fi
|
||||
make
|
||||
@@ -20,6 +20,7 @@ Rectangle {
|
||||
property real rightPadding: 16
|
||||
property bool enabled: true
|
||||
property bool highlighted: false
|
||||
property bool propagateTitleClicks: true
|
||||
property int type: StatusListItem.Type.Primary
|
||||
property list<Item> components
|
||||
|
||||
@@ -144,7 +145,7 @@ Rectangle {
|
||||
|
||||
anchors.left: iconOrImage.active ? iconOrImage.right : parent.left
|
||||
anchors.right: statusListItemLabel.visible ? statusListItemLabel.left : statusListItemComponentsSlot.left
|
||||
anchors.leftMargin: statusListItem.leftPadding
|
||||
anchors.leftMargin: iconOrImage.active ? 16 : statusListItem.leftPadding
|
||||
anchors.rightMargin: statusListItem.rightPadding
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
height: childrenRect.height
|
||||
@@ -175,7 +176,7 @@ Rectangle {
|
||||
anchors.fill: parent
|
||||
cursorShape: containsMouse? Qt.PointingHandCursor : Qt.ArrowCursor
|
||||
hoverEnabled: true
|
||||
propagateComposedEvents: true
|
||||
propagateComposedEvents: statusListItem.propagateTitleClicks
|
||||
onClicked: {
|
||||
statusListItem.titleClicked(statusListItem.titleId)
|
||||
mouse.accepted = false
|
||||
|
||||
@@ -10,6 +10,7 @@ StatusPopupMenu {
|
||||
|
||||
property var searchPopup
|
||||
property var locationModel
|
||||
readonly property int numDefaultItems: 2
|
||||
|
||||
signal itemClicked(string firstLevelItemValue, string secondLevelItemValue)
|
||||
|
||||
@@ -43,7 +44,7 @@ StatusPopupMenu {
|
||||
color: model.iconColor,
|
||||
isLetterIdenticon: !model.imageSource && !model.iconName
|
||||
});
|
||||
root.insertMenu(index+2, item);
|
||||
root.insertMenu(index + numDefaultItems, item);
|
||||
} else {
|
||||
item.value = model.value
|
||||
item.text = model.title;
|
||||
@@ -52,7 +53,7 @@ StatusPopupMenu {
|
||||
item.iconSettings.isLetterIdenticon = !model.imageSource && !model.iconName
|
||||
item.image.source = model.imageSource;
|
||||
item.image.isIdenticon = model.isIdenticon;
|
||||
root.insertItem(index+2, item);
|
||||
root.insertItem(index + numDefaultItems, item);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,6 +24,9 @@ StatusModal {
|
||||
property Menu searchOptionsPopupMenu: Menu { }
|
||||
property var searchResults: [ ]
|
||||
property var searchSelectionButton
|
||||
// This function is called to know if the popup accepts clicks in the title
|
||||
// If it does not, the clicks on the titles mousearea will be propagated to the main body instead
|
||||
property var acceptsTitleClick: function(titleId) {return true}
|
||||
|
||||
signal resultItemClicked(string itemId)
|
||||
signal resultItemTitleClicked(string titleId)
|
||||
@@ -275,8 +278,11 @@ StatusModal {
|
||||
root.resultItemClicked(itemId)
|
||||
}
|
||||
|
||||
propagateTitleClicks: !root.acceptsTitleClick(titleId)
|
||||
onTitleClicked: {
|
||||
root.resultItemTitleClicked(titleId)
|
||||
if (root.acceptsTitleClick(titleId)) {
|
||||
root.resultItemTitleClicked(titleId)
|
||||
}
|
||||
}
|
||||
}
|
||||
section.property: "sectionName"
|
||||
|
||||
Reference in New Issue
Block a user