| The Following 2 Users Say Thank You to Estel For This Useful Post: | ||
|
|
2013-05-11
, 03:18
|
|
|
Posts: 1,986 |
Thanked: 7,698 times |
Joined on Dec 2010
@ Dayton, Ohio
|
#982
|
Especially, the part about "syncing with flash" creeps me - big "no" for additional flash wear, where it isn't required (why Qt must be so lame in breaking so simple things?!).
I think that Qt in fact does its best to minimize accessing persistent storage; I'm not entirely sure how often it syncs the in-memory representation of the settings with that on the disc (or flash in this case), but I know they avoid doing so when they can. Of course, what I really should do is to stop relying on QSettings as a crutch, and only store those values when I know the program is about to end. (Which, I guess, runs the risk of losing the data if the program exits in an unexpected manner, but that's probably a worthwhile tradeoff...)It may also be a development trap - now you minimize damage to acceptable level, in a week you will add something to program, and chain reaction will make performance bad again, requiring minimizing damage again...
But really, this is the fun part; I've always thought that finding ways to accomplish a given goal with fewer instructions is probably the most enjoyable part of coding...
| The Following 3 Users Say Thank You to Copernicus For This Useful Post: | ||
|
|
2013-05-11
, 09:17
|
|
Posts: 2,290 |
Thanked: 4,134 times |
Joined on Apr 2010
@ UK
|
#983
|
What I really should do is to stop relying on QSettings as a crutch, and only store those values when I know the program is about to end. (Which, I guess, runs the risk of losing the data if the program exits in an unexpected manner, but that's probably a worthwhile tradeoff...)
| The Following 3 Users Say Thank You to sixwheeledbeast For This Useful Post: | ||
|
|
2013-05-13
, 02:36
|
|
|
Posts: 1,986 |
Thanked: 7,698 times |
Joined on Dec 2010
@ Dayton, Ohio
|
#984
|
Hope this one didn't bite too many folks.
(I will be much more careful about how I use QSettings in the future...)| The Following 6 Users Say Thank You to Copernicus For This Useful Post: | ||
|
|
2013-05-13
, 04:45
|
|
|
Posts: 1,079 |
Thanked: 1,019 times |
Joined on Mar 2010
|
#985
|
I was getting the keyset name wrong, which caused favorites to be forgotten after certain operations.Hope this one didn't bite too many folks!
|
|
2013-05-13
, 10:33
|
|
|
Posts: 1,986 |
Thanked: 7,698 times |
Joined on Dec 2010
@ Dayton, Ohio
|
#986
|
Is that the reason why I've been getting blank screens when selecting favorite keysets?
)
|
|
2013-05-13
, 17:26
|
|
Posts: 535 |
Thanked: 598 times |
Joined on Apr 2011
@ Republic of the Philippines
|
#987
|
| The Following User Says Thank You to vetsin For This Useful Post: | ||
|
|
2013-05-13
, 17:49
|
|
Posts: 2,290 |
Thanked: 4,134 times |
Joined on Apr 2010
@ UK
|
#988
|
[General] currentKeysetMake=LG currentKeysetName=TV Keyset 1 currentTabsName=2005360 currentPanelIndex=-1 [favorites] 1\keysetMake=LG 1\keysetName=TV Keyset 1 size=5 2\keysetMake=Samsung 2\keysetName=TV Keyset 1 3\keysetMake=Sony 3\keysetName=TV Keyset 1 4\keysetMake=Toshiba 4\keysetName=TV Keyset 1 5\keysetMake=Virgin Media 5\keysetName=STB Keyset 1 1\tabBarName=2005360 1\panelIndex=-1 2\tabBarName=2005360 2\panelIndex=-1 3\tabBarName=2005360 3\panelIndex=-1 4\tabBarName=2005360 4\panelIndex=-1 5\tabBarName=2005360 5\panelIndex=-1 [Panels] Main=true Utility=true Keypad=true Menu=true Media=true Favorites=true Input=true [Preferences] useAltMain=true macroKbdFocus=0
| The Following 2 Users Say Thank You to sixwheeledbeast For This Useful Post: | ||
|
|
2013-05-13
, 18:22
|
|
|
Posts: 1,986 |
Thanked: 7,698 times |
Joined on Dec 2010
@ Dayton, Ohio
|
#989
|
currentTabsName=2005360 currentPanelIndex=-1
Dunno what's going on here, it doesn't seem to be happening on my test machines. I'll check the code. (You should be able to just delete the currentTabsName, currentPanelIndex, tabBarName, and panelIndex lines without causing any problems; that might fix the issue...)| The Following User Says Thank You to Copernicus For This Useful Post: | ||
|
|
2013-05-13
, 18:25
|
|
Posts: 2,290 |
Thanked: 4,134 times |
Joined on Apr 2010
@ UK
|
#990
|
| The Following User Says Thank You to sixwheeledbeast For This Useful Post: | ||
Of course, I appreciate effort put into bringing those features, I just think that it is bad idea to sacrifice performance/reliability for it. It may also be a development trap - now you minimize damage to acceptable level, in a week you will add something to program, and chain reaction will make performance bad again, requiring minimizing damage again...
/Estel
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1 | ereswap | bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!