21 Nov 2020 |
LorenDB | TimelineViewManager.cpp | 23:35:25 |
LorenDB | Lines 140-141 | 23:35:35 |
Nico|dev | Those are imported via import im.nheko.EmojiModel , I think | 23:36:07 |
Nico|dev | If you want to import via im.nheko, you want to use the one without .NhekoSettings | 23:36:48 |
LorenDB | OK, that makes sense | 23:37:02 |
Nico|dev | And I think that is the right solution, since the Settings stuff is used everywhere | 23:37:04 |
LorenDB | Yeah, I see | 23:37:17 |
LorenDB | Now to figure out where all the settings are accessed in QML. Is that going to be using an object of type Settings in QML or is that not explicitly mentioned? | 23:38:38 |
Nico|dev | In reply to @lorendb:matrix.org Now to figure out where all the settings are accessed in QML. Is that going to be using an object of type Settings in QML or is that not explicitly mentioned? It uses Settings.settingname | 23:39:15 |
LorenDB | Ah | 23:39:23 |
LorenDB | I think I did something wrong, the settings aren't actually loading. QML just complains about trying to assign an undefined to a bool/double/whatever. | 23:51:08 |
Nico|dev | Yeahm sounds like it | 23:51:33 |
Nico|dev | You probably want to register an instance instead | 23:51:42 |
Nico|dev | Instead of a type | 23:51:51 |
LorenDB | As in create a field:
NhekoSettings {
id: ns
...
}
? | 23:52:46 |
Nico|dev | No, as in how the current settings are registered :D | 23:53:07 |
LorenDB | I'm confused | 23:54:06 |
LorenDB | Don't forget that I'm not a QML expert | 23:54:22 |
Nico|dev | You are registering a type. You can't access non static members of a type. Instead you should register an instance | 23:55:07 |
LorenDB | Instance or interface? | 23:55:51 |
Nico|dev | What I said | 23:56:03 |
LorenDB | Ok, because there wasn't any qmlRegisterInstance function. Sorry, but just double-checking | 23:56:29 |
Nico|dev |  Download clipboard.png | 23:57:27 |
LorenDB | Oh, ok | 23:57:40 |
Nico|dev | There is a register singleton instance, but we can't use that, because of Qt version, so that is an implementation of that function :3 | 23:57:57 |
22 Nov 2020 |
JustinZ | Is it possible to get one of those floating buttons when you're scrolled up that scrolls to the bottom? | 00:00:34 |
Nico|dev | Yeah | 00:00:53 |
Nico|dev | It is | 00:00:56 |
Nico|dev | Someone just needs to add it :D | 00:01:03 |
JustinZ | 😁 | 00:01:17 |