libera/#maemo-leste/ Monday, 2023-05-01

freemangordonWizzup: do we have any idea what needs to be done to fix qt white background?09:05
freemangordonuvos: ^^^09:05
WizzupI don't really know10:17
freemangordonok. it seems QAbstractScrollArea has wrong pallette12:12
Wizzupfreemangordon: super great if you figure it out12:19
freemangordonI am on it12:19
freemangordonWizzup: drawControl does not get called when style == maemo514:29
freemangordontrying to understand why14:29
Wizzupfreemangordon: maybe a function signature mismatch or override missing?14:33
Wizzuphttp://man.hubwiz.com/docset/Qt_5.docset/Contents/Resources/Documents/doc.qt.io/qt-5/qtwidgets-widgets-styles-example.html this seems to have an example for it14:33
freemangordonyes,   Q_DECL_OVERRIDE is missing14:33
freemangordontrying with it ATM14:34
freemangordonnope14:36
freemangordonhmm, QFrame::paintEvent is not called14:38
Wizzupis our paintevent virtual or real?14:45
freemangordonwe don;t havew one14:46
freemangordonit does not get to here https://codebrowser.dev/qt5/qtbase/src/widgets/widgets/qabstractscrollarea.cpp.html#95614:46
Wizzupthat is a weird looking case stmt14:47
freemangordonbecause of the local variable14:48
freemangordonbut that's not the issue14:48
Wizzupdoes it get to the paintevent part at least14:48
freemangordonno14:48
freemangordonI guess we override something in such a way that we stop the event14:48
freemangordonwill start commenting the code to see what breaks it14:49
Wizzuphm14:50
Wizzupcould be event filter14:51
freemangordonmhm14:51
freemangordonwhere it is?14:51
Wizzupit is in gtk2, not mameo5, so probably not14:52
freemangordonok14:52
WizzupI read online somewhere that repaint() will call paint event, and update() might not14:52
Wizzupnot sure if this is it14:52
freemangordonhmm, I think I made some progress14:52
freemangordongimme some time to see what exactly I found14:52
Wizzupok14:52
Wizzupoh, ignore my thing about update vs repaint14:53
freemangordoncommenting the code https://github.com/maemo-leste/qtstyleplugins/blob/master/src/plugins/styles/maemo5/maemo5style/qmaemo5style.cpp#L511 makes event being generated14:55
freemangordonand drawControl called14:55
freemangordonbut background is wrong14:56
freemangordonso it is not that14:57
freemangordonsorry, false alarm, missing call to drawControl is because maemo forces no frame15:00
freemangordonWizzup: this https://github.com/maemo-leste/qtstyleplugins/blob/master/src/plugins/styles/maemo5/maemo5style/qmaemo5style.cpp#L14816:26
freemangordonfor some reason it seems qlistview is using standard palette16:27
Wizzuphmmmm16:28
Wizzupwhere is this getTextColorWidget called?16:28
freemangordonfrom gtk style16:32
freemangordonWizzup: there was one more issue actually,   QMaemo5StylePrivate::applyCustomPaletteHash was not called, because applyCustomPaletteHash in parent class was not virtual16:33
freemangordonbut even after fixing it, it still does not work properly16:34
freemangordonalbeit it does   qApp->setPalette(gtkWidgetPalette("HildonPannableArea.GtkTreeView"), "QAbstractScrollArea");16:34
Wizzupshould that be GtkListView instead of GtkTreeView? probably does not matter16:36
Wizzupsounds like you're getting closer actually16:36
freemangordonyes, it does not16:36
freemangordonmhm16:36
freemangordonfor some reason no custom palette is applied to QAbstractScrollArea16:37
freemangordonWizzup: hmm, actually it seems to be a bug in gtk style plugin16:48
freemangordongtkWidgetPalette does not set  QPalette::Base16:49
Wizzuparg...16:52
freemangordonwith that fixed, it seems to work properly, lemme make sure16:53
freemangordonYAY!17:08
freemangordonlemme push the fixes17:08
freemangordonphew, this one was driving me nuts for long time17:21
Wizzupgreat.... :)17:33
WizzupI will really try to have news post this weekend17:33
Wizzupwe should also let pavel know17:36
Wizzuphe asked @ fosdem17:36
Wizzup:p17:36
freemangordon'know'?17:45
freemangordonwhat about?17:45
Wizzupfreemangordon: god this is so much better19:29
Wizzupfreemangordon: pavel asked about the qt theming bug19:29
Wizzupfreemangordon: in calendar the textarea is still white on black, as opposed to black on white (go to tasks or notes and then use new note or new task)19:55
aczidhi, I'm not sure if this is the right place to ask such a noob question, but: I really miss the keyboard shortcut ctrl+backspace to go to the overview of running apps. was it removed intentionally or am I running in to a bug, and how do I get it back?20:04
aczidotherwise as a user after not playing with maemo-leste for almost 2 years it's really impressive how much better everything has gotten! respect20:05
Wizzupis this on the droid 4, or n900?20:05
acziddroid420:05
WizzupI think the reason that is doesn't work is because it is mapped to the 'home' icon on your touch screen20:06
Wizzupand we probably don't allow multiple keys to be mapped to one action20:06
Wizzup(just a guess)20:06
aczidwhere does that shortcut mapping happen anyway?20:07
Wizzupit is /usr/share/hildon-desktop/shortcuts.ini.leste20:08
Wizzupwell, without the .leste20:08
Wizzupthere is also this btw (WIP) http://maemo-leste-manual.motionlibre.org/index.html20:08
Wizzuphttp://maemo-leste-manual.motionlibre.org/chapters/ui.html these are more or less finished20:08
aczidthanks I figured it would be hildon but I only grepped around in /etc/ for it20:09
aczidah great20:09
acziddidn't find that anywhere yet (github/wiki) so much appreciated. looks great20:10
siceloaczid: did it ever work on Droid 4? or you're an ex-N900 user?20:11
Wizzupyeah the doc is still wip and not really publicized20:11
aczidsicelo: it did work on the droid4 with a quite old version of leste before I dist-upgraded, and yes I used the n900 before20:11
aczidcould very well be that that version didn't have the on screen buttons yet, I first noticed them after20:12
aczidso I'm optimistic that Wizzup's intuition is right20:12
arno11Wizzup: did you see my messages about 44100/48000hz ?20:17
arno11(because we should keep the default 44100hz rate)20:19
arno11and i think we can use only one asound.state for the moment20:20
arno11the custom one works well with calls, video and music with no troubles (but at 44100hz)20:22
arno11ATO i didn't find a way to use the earphone...20:24
Wizzuparno11: I will have to check re 44.120:34
Wizzupbut yes, we can never have one asound state20:34
Wizzupthis is why we need ucm20:34
Wizzupsphone will already switch to HiFo or VoiceCall profiles if they are defined20:35
WizzupHiFi*20:35
arno11ah cool20:35
arno11and did you try 2G calls (just to compare with my device) ?20:36
Wizzupnot yet20:39
Wizzupat least I think I was on 3G20:39
arno11ok20:39
WizzupI agree with keeping default rate, so we do not need 48000 at all?20:40
arno11exactly20:40
arno11thanks to soxr resampling20:40
Wizzupso I guess there are few things remaining:20:54
Wizzup- your work on cmtspeech to use the right VoiceCall state20:55
Wizzup- UCM20:55
Wizzup- module loading (either loading it at the right time or fixing the module to probe later)20:55
Wizzupfor now we can make an init script that loads the module20:55
Wizzupthe UCM is more tricky I think20:55
arno11yes agree21:06
freemangordonWizzup: ok, will have a look21:41
freemangordonWizzup: sorry, I don;t understand what the issue is21:43
freemangordonoh21:44
freemangordongot it21:44
Wizzupfreemangordon: yeah, for the larger than one line text field21:45
freemangordonbut was it ok before my changes?21:47
WizzupI don't remember21:50
Wizzuplet me see if I can figure it out21:50
Wizzuplooks like it, yes21:51
Wizzupat least on my beowulf bionic21:51
Wizzuplet me check my chimaera n90021:51
freemangordonhmm21:51
Wizzuphum, wait21:53
WizzupI am not sure if I can still reproduce it21:53
Wizzupit looks fine on my d4 with latest packages now (?)21:53
Wizzupwhat the21:53
freemangordonI can21:53
freemangordonwhich is weird21:54
Wizzupcould it be some graphical glitch?21:57
Wizzuprestarted it, now I see it black again21:57
freemangordonno, I can repro on both d4 and VM21:57
Wizzup(it = qalendar)21:58
freemangordonmhm21:58
freemangordonweird21:58
freemangordonmaybe a bug in qtcalendar21:59
Wizzupcould be, but I don't think it happened before21:59
freemangordonbecause the same widget looks fine in separate project (QTextEdit)21:59
Wizzupmaybe it depends on the widgets used/loaded by a qt project22:00
freemangordonor the order22:00
Wizzupyeah22:02
freemangordonbut it is steady reproducible here22:02

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!