Wednesday, July 20th, 2011, 00:13 UTC | ||
[00:13:22] | abqjp (abqjp!~abqjp@71-38-208-26.albq.qwest.net) has joined #mythtv-theming | |
[00:34:51] | abqjp (abqjp!~abqjp@71-38-208-26.albq.qwest.net) has quit (Quit: abqjp) | |
[02:15:33] | jpabq: | I figured out the upside-down text. In didn't occur to me that a default constructed QImage would not be blank. For some reason, when drawing onto a QImage with random garbage in it, the result can be a mirror of what was intended. |
[04:58:43] | jpabq: | How important is it to keep support for a blinking cursor in a textedit? QTextLayout has built in support for a cursor, but it does not blink, and the only control over the shape, is how wide it is. If we want to continue allowing for a blinking cursor of an arbitrary shape, then mythui will have to draw it, itself — like it does now. |
[08:32:18] | mrand1 (mrand1!~mrand@cpe-76-184-144-133.tx.res.rr.com) has quit (Read error: Operation timed out) | |
[08:53:37] | mrand (mrand!~mrand@ubuntu/member/mrand) has joined #mythtv-theming | |
[10:22:06] | stuartm: | jpabq: it's a small sacrifice I guess |
[10:28:21] | stuartm: | that said, QTextLayout's cursor support isn't much better than drawing the cursor ourself, you have to specify the position which means you still need to calculate that position |
[10:29:09] | stuartm: | since calculating the position is as hard as it gets, we gain nothing by using the QT cursor that I can see |
[13:23:42] | mrand (mrand!~mrand@ubuntu/member/mrand) has quit (Ping timeout: 276 seconds) | |
[14:55:04] | jpabq: | stuartm, the position you provide to QTextLayout is character based, not pixels, so is pretty easy. That being said, I am leaning towards keeping the cursor drawing in mythuitextedit, since you have already done all the work to make it blink, etc. |
[14:56:31] | stuartm: | jpabq: one of the arguments to drawCursor() is a QPoint? |
[14:56:58] | jpabq: | That is just an offset, in case the origin is not 0,0 |
[14:57:10] | stuartm: | jpabq: the blink is nothing fancy, just a timer toggling between the hidden/visible states |
[14:57:27] | stuartm: | jpabq: ahh, ok that wasn't clear to me from the docs |
[14:57:44] | jpabq: | Me neither. I had to experiment with it. |
[15:00:12] | jpabq: | Off to work... I wont be able to tinker much more with this, until the weekend, but it does look promising. |
[15:00:38] | stuartm: | cool |
[15:35:47] | stuartm_ (stuartm_!~stuartm@cpc4-derb9-0-0-cust534.8-3.cable.virginmedia.com) has joined #mythtv-theming | |
[15:35:47] | stuartm_ (stuartm_!~stuartm@mythtv/developer/stuartm) has joined #mythtv-theming | |
[15:35:47] | stuartm_ (stuartm_!~stuartm@cpc4-derb9-0-0-cust534.8-3.cable.virginmedia.com) has quit (Changing host) | |
[15:35:47] | Mode for #mythtv-theming by ChanServ!ChanServ@services. : +v stuartm_ | |
[15:36:21] | abqjp (abqjp!~abqjp@71-38-208-26.albq.qwest.net) has joined #mythtv-theming | |
[15:36:22] | stuartm (stuartm!~stuartm@mythtv/developer/stuartm) has quit (Remote host closed the connection) | |
[17:55:25] | mrand (mrand!~mrand@ubuntu/member/mrand) has joined #mythtv-theming | |
[21:16:11] | brfransen (brfransen!~brfransen@216.254.250.47) has quit (Read error: Connection reset by peer) | |
[21:16:48] | brfransen (brfransen!~brfransen@216.254.250.47) has joined #mythtv-theming | |
[21:44:07] | abqjp (abqjp!~abqjp@71-38-208-26.albq.qwest.net) has quit (Remote host closed the connection) | |
[21:59:07] | iamlindoro (iamlindoro!~iamlindor@mythtv/developer/iamlindoro) has quit (Ping timeout: 258 seconds) | |
[21:59:54] | abqjp (abqjp!~abqjp@71-38-208-26.albq.qwest.net) has joined #mythtv-theming | |
[22:07:24] | stuartm_ (stuartm_!~stuartm@cpc4-derb9-0-0-cust534.8-3.cable.virginmedia.com) has joined #mythtv-theming | |
[22:07:24] | stuartm_ (stuartm_!~stuartm@mythtv/developer/stuartm) has joined #mythtv-theming | |
[22:07:24] | stuartm_ (stuartm_!~stuartm@cpc4-derb9-0-0-cust534.8-3.cable.virginmedia.com) has quit (Changing host) | |
[22:07:24] | Mode for #mythtv-theming by ChanServ!ChanServ@services. : +v stuartm_ | |
[22:27:06] | iamlindoro (iamlindoro!~iamlindor@mythtv/developer/iamlindoro) has joined #mythtv-theming | |
[22:27:06] | Mode for #mythtv-theming by ChanServ!ChanServ@services. : +v iamlindoro | |
[22:56:11] | knightr (knightr!~knightr@mythtv/developer/knightr) has quit (Ping timeout: 240 seconds) | |
[22:56:29] | knightr (knightr!~knightr@mythtv/developer/knightr) has joined #mythtv-theming | |
[23:53:41] | abqjp (abqjp!~abqjp@71-38-208-26.albq.qwest.net) has quit (Quit: abqjp) |
IRC Logs collected by
BeirdoBot.
Please use the above link to report any bugs.