diff options
| author | Jaquee <jaquee.monero@gmail.com> | 2017-04-03 18:51:55 +0200 |
|---|---|---|
| committer | Jaquee <jaquee.monero@gmail.com> | 2017-05-05 12:03:03 +0200 |
| commit | 2e53c524a13c4b4ef3cccfc7c7cfc4243144d6f9 (patch) | |
| tree | 11b5609216403534b16a6255101d63cb46f348d9 /components/Label.qml | |
| parent | da6aad33a4aa58c298f3452206f3bab04ad2b5cb (diff) | |
| download | monzero-gui-2e53c524a13c4b4ef3cccfc7c7cfc4243144d6f9.tar.gz monzero-gui-2e53c524a13c4b4ef3cccfc7c7cfc4243144d6f9.tar.xz monzero-gui-2e53c524a13c4b4ef3cccfc7c7cfc4243144d6f9.zip | |
ios build settings
Diffstat (limited to 'components/Label.qml')
| -rw-r--r-- | components/Label.qml | 40 |
1 files changed, 21 insertions, 19 deletions
diff --git a/components/Label.qml b/components/Label.qml index bff37b57..30ff3d33 100644 --- a/components/Label.qml +++ b/components/Label.qml @@ -27,6 +27,7 @@ // THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. import QtQuick 2.0 +import QtQuick.Layouts 1.1 Item { id: item @@ -35,6 +36,7 @@ Item { property alias textFormat: label.textFormat property string tipText: "" property int fontSize: 12 + property alias wrapMode: label.wrapMode signal linkActivated() width: icon.x + icon.width height: icon.height @@ -59,23 +61,23 @@ Item { visible: appWindow.whatIsEnable } - MouseArea { - anchors.fill: icon - enabled: appWindow.whatIsEnable - hoverEnabled: true - onEntered: { - icon.visible = false - var pos = appWindow.mapFromItem(icon, 0, -15) - tipItem.text = item.tipText - tipItem.x = pos.x - if(tipItem.height > 30) - pos.y -= tipItem.height - 28 - tipItem.y = pos.y - tipItem.visible = true - } - onExited: { - icon.visible = Qt.binding(function(){ return appWindow.whatIsEnable; }) - tipItem.visible = false - } - } +// MouseArea { +// anchors.fill: icon +// enabled: appWindow.whatIsEnable +// hoverEnabled: true +// onEntered: { +// icon.visible = false +// var pos = appWindow.mapFromItem(icon, 0, -15) +// tipItem.text = item.tipText +// tipItem.x = pos.x +// if(tipItem.height > 30) +// pos.y -= tipItem.height - 28 +// tipItem.y = pos.y +// tipItem.visible = true +// } +// onExited: { +// icon.visible = Qt.binding(function(){ return appWindow.whatIsEnable; }) +// tipItem.visible = false +// } +// } } |
