summary refs log tree commit diff
path: root/resources/qml
diff options
context:
space:
mode:
authorJoseph Donofry <joedonofry@gmail.com>2020-06-10 22:34:14 -0400
committerJoseph Donofry <joedonofry@gmail.com>2020-06-10 22:34:14 -0400
commit5e355c36fd2c4a7c8a0b99e3db7c963bd0973629 (patch)
treef45221a180106af8a33495cfa5792a3d333a6715 /resources/qml
parentRemove unused QML file (diff)
downloadnheko-5e355c36fd2c4a7c8a0b99e3db7c963bd0973629.tar.xz
Fix build issue on some versions of clang
Diffstat (limited to 'resources/qml')
-rw-r--r--resources/qml/TimelineView.qml2
-rw-r--r--resources/qml/emoji/EmojiPicker.qml36
2 files changed, 19 insertions, 19 deletions
diff --git a/resources/qml/TimelineView.qml b/resources/qml/TimelineView.qml
index ba27d007..a468e0ef 100644
--- a/resources/qml/TimelineView.qml
+++ b/resources/qml/TimelineView.qml
@@ -31,7 +31,7 @@ Page {
         height: 6 * 52 
         colors: palette
         model: EmojiProxyModel {
-            category: Emoji.Category.People
+            category: EmojiCategory.People
             sourceModel: EmojiModel {}
         }
     }
diff --git a/resources/qml/emoji/EmojiPicker.qml b/resources/qml/emoji/EmojiPicker.qml
index b96adf7e..b70923ae 100644
--- a/resources/qml/emoji/EmojiPicker.qml
+++ b/resources/qml/emoji/EmojiPicker.qml
@@ -123,7 +123,7 @@ Popup {
                     interval: 350 // tweak as needed?
                     onTriggered: {
                         emojiPopup.model.filter = emojiSearch.text
-                        emojiPopup.model.category = Emoji.Category.Search
+                        emojiPopup.model.category = EmojiCategory.Search
                     }
                 }
 
@@ -168,14 +168,14 @@ Popup {
             Repeater {
                 model: ListModel {
                     // TODO: Would like to get 'simple' icons for the categories
-                    ListElement { image: ":/icons/icons/emoji-categories/people.png"; category: Emoji.Category.People }
-                    ListElement { image: ":/icons/icons/emoji-categories/nature.png"; category: Emoji.Category.Nature }
-                    ListElement { image: ":/icons/icons/emoji-categories/foods.png"; category: Emoji.Category.Food }
-                    ListElement { image: ":/icons/icons/emoji-categories/activity.png"; category: Emoji.Category.Activity }
-                    ListElement { image: ":/icons/icons/emoji-categories/travel.png"; category: Emoji.Category.Travel }
-                    ListElement { image: ":/icons/icons/emoji-categories/objects.png"; category: Emoji.Category.Objects }
-                    ListElement { image: ":/icons/icons/emoji-categories/symbols.png"; category: Emoji.Category.Symbols }
-                    ListElement { image: ":/icons/icons/emoji-categories/flags.png"; category: Emoji.Category.Flags }
+                    ListElement { image: ":/icons/icons/emoji-categories/people.png"; category: EmojiCategory.People }
+                    ListElement { image: ":/icons/icons/emoji-categories/nature.png"; category: EmojiCategory.Nature }
+                    ListElement { image: ":/icons/icons/emoji-categories/foods.png"; category: EmojiCategory.Food }
+                    ListElement { image: ":/icons/icons/emoji-categories/activity.png"; category: EmojiCategory.Activity }
+                    ListElement { image: ":/icons/icons/emoji-categories/travel.png"; category: EmojiCategory.Travel }
+                    ListElement { image: ":/icons/icons/emoji-categories/objects.png"; category: EmojiCategory.Objects }
+                    ListElement { image: ":/icons/icons/emoji-categories/symbols.png"; category: EmojiCategory.Symbols }
+                    ListElement { image: ":/icons/icons/emoji-categories/flags.png"; category: EmojiCategory.Flags }
                 }
 
                 delegate: AbstractButton {
@@ -210,21 +210,21 @@ Popup {
                     hoverEnabled: true
 					ToolTip.text: {
 						switch (model.category) {
-						case Emoji.Category.People:
+						case EmojiCategory.People:
 							return qsTr('People');
-						case Emoji.Category.Nature:
+						case EmojiCategory.Nature:
 							return qsTr('Nature');
-						case Emoji.Category.Food:
+						case EmojiCategory.Food:
 							return qsTr('Food');
-						case Emoji.Category.Activity:
+						case EmojiCategory.Activity:
 							return qsTr('Activity');
-						case Emoji.Category.Travel:
+						case EmojiCategory.Travel:
 							return qsTr('Travel');
-						case Emoji.Category.Objects:
+						case EmojiCategory.Objects:
 							return qsTr('Objects');
-						case Emoji.Category.Symbols:
+						case EmojiCategory.Symbols:
 							return qsTr('Symbols');
-						case Emoji.Category.Flags:
+						case EmojiCategory.Flags:
 							return qsTr('Flags');
 						}
 					}
@@ -257,7 +257,7 @@ Popup {
                 ToolTip.visible: hovered
                 onClicked: {
                     // clear any filters
-                    emojiPopup.model.category = Emoji.Category.Search
+                    emojiPopup.model.category = EmojiCategory.Search
                     gridView.positionViewAtBeginning()
                     emojiSearch.forceActiveFocus()
                 }