Wednesday, July 22, 2009

Wonky Qt Stuff

You can check out current progress here. Notice the top toolbar (which looks great in my opinion) and beginnings of the HerdictWeb plugin. After some talks with the Berkman Center, we are finally moving forward with the HerdictWeb plugin. We are going to adapt an existing tor connection class we've previously made to allow for HerdictWeb reporting over Tor. On top of this, we are going to give an interactive, side-by-side comparison of the website over Tor and the website over the regular internet connection. In my opinion this is a large security risk (because for Tor, it is) but this is what they want, so this is what they get.

The toolbar may look nice, but its causing a few problems of its own. This is me moving the tabs. Notice the toolbar icons painting over the tab bar? This is a bug in Qt (we assume) involving the use of the setUnifiedTitleandToolBaronMac function for windows. By setting that function to true, we get the chrome statusbar and toolbar. But, when that function is set to true the tabbar gets a fresh coat of toolbar icons painted over it. As far as we can tell, outside of reimplementing parts of patching Qt there is nothing we can do about this. So, mac users can't move tabs! On top of this, when the user stops tor and the toolbar message changes, this happens. Where'd help go? The MainWindow apparantly picks a size for the ToolBar and sticks to it no matter how much space remains in the ToolBar space. Resizing it does nothing to stop this. So, mac users get only icons in the toolbar! And all this only happens if setUnifiedTitleandToolBaronMac is set to true. If this is set to false, these bugs don't occur but the window looks uglier. Decisions, decisions.

Thats all for updating right now. More coming soon!

No comments:

Post a Comment