Commit Graph

9372 Commits

Author SHA1 Message Date
Florian Bruhin
3d882897c0 Use singleShot QTimer to process init arguments.
This processes all init arguments after the startup has completely
finished, so that things like   qutebrowser ':quit'   work correctly.
2014-02-17 14:37:12 +01:00
Florian Bruhin
8c37e1c33a Make closing/crashing much more reliable. 2014-02-17 14:17:56 +01:00
Florian Bruhin
966ceba1e6 Import cleanup 2014-02-17 12:23:52 +01:00
Florian Bruhin
d5807169d1 Decorate slots with pyqtSlot.
This seems to reduce memory usage a bit and make things a bit faster.
2014-02-17 12:00:08 +01:00
Florian Bruhin
0abb5cf738 Try to shut down everything cleanly. 2014-02-17 10:20:57 +01:00
Florian Bruhin
63ee3f4efd Set Qt application name/version. 2014-02-17 08:56:33 +01:00
Florian Bruhin
9257f0c98a Don't keep static references to QPainter.
For some reason, this seems to cause a segfault.
2014-02-17 08:42:12 +01:00
Florian Bruhin
76a459f604 Add more hard references.
This should prevent some segfaults, as pointed out by [1].

 [1]: https://github.com/integricho/path-of-a-pyqter/tree/master/qttut02
2014-02-17 08:19:30 +01:00
Florian Bruhin
933296f47f Move models to qutebrowser.models 2014-02-14 17:41:12 +01:00
Florian Bruhin
302736925b Clean up read_file(). 2014-02-14 16:43:41 +01:00
Florian Bruhin
2780793bf4 Update TODO 2014-02-14 08:08:10 +01:00
Florian Bruhin
434a904335 Add icon= to error html format() 2014-02-14 07:50:31 +01:00
Florian Bruhin
e56ed54102 Add broken error pages 2014-02-14 07:17:36 +01:00
Florian Bruhin
203fa3eb34 Docstring grammar fixes 2014-02-13 18:57:19 +01:00
Florian Bruhin
62f140cf88 Remove unneeded self.show()s 2014-02-13 18:47:39 +01:00
Florian Bruhin
c40346571a Update TODO for error pages 2014-02-13 13:02:06 +01:00
Florian Bruhin
308735ada6 Add error pages to TODO 2014-02-13 12:18:29 +01:00
Florian Bruhin
176c1aa7d6 Use float() where applicable, not int() 2014-02-13 11:48:25 +01:00
Florian Bruhin
a7d52feb99 Add ga binding 2014-02-13 10:30:52 +01:00
Florian Bruhin
029813c8eb Implement page-wise scrolling. 2014-02-13 10:28:09 +01:00
Florian Bruhin
4c5364ded0 Update TODO 2014-02-13 09:46:58 +01:00
Florian Bruhin
7deab20820 Cleanup, more checks 2014-02-13 09:10:53 +01:00
Florian Bruhin
963b90ae74 Disable pylint maybe-no-member in TabWidget._init_config 2014-02-13 09:00:07 +01:00
Florian Bruhin
5b0e24b799 Make tabbar configurable. 2014-02-13 08:56:01 +01:00
Florian Bruhin
d7f58015bb Set sizePolicy of Command to minimumExpanding. 2014-02-13 07:16:47 +01:00
Florian Bruhin
4271200846 Emit urlChanged immediately when opening a new tab. 2014-02-13 07:11:18 +01:00
Florian Bruhin
ca97a50820 Call tab.openurl _after_ connecting signals. 2014-02-13 07:10:41 +01:00
Florian Bruhin
0326a66758 Don't color progress bar anymore. 2014-02-13 07:06:34 +01:00
Florian Bruhin
6538dbbdf1 Colorize URLs in statusbar, fix hovering.
Before, when hovering from an URL to another URL, the old hover-URL was
saved as old-url. This is now fixed.
2014-02-13 06:58:17 +01:00
Florian Bruhin
76ba7921d4 Elide statusbar text/URLs correctly. 2014-02-12 23:56:23 +01:00
Florian Bruhin
7bfc1eb791 Add FIXME for color validation 2014-02-12 23:28:03 +01:00
Florian Bruhin
626b9fc3b8 Ignore StatusBar sizehint 2014-02-12 23:04:46 +01:00
Florian Bruhin
d343ea26af Don't use QMainWindow 2014-02-12 23:04:46 +01:00
Florian Bruhin
f893b11f1b Fix progress bar being red hopefully. 2014-02-12 17:13:31 +01:00
Florian Bruhin
5342b88519 linting update 2014-02-12 17:00:50 +01:00
Florian Bruhin
c0dc9f8622 Use Qt properties for condition coloring. 2014-02-12 17:00:39 +01:00
Florian Bruhin
002118953c Use separate QHBoxLayout elements for statusbar. 2014-02-12 08:48:54 +01:00
Florian Bruhin
f0df411464 Update TODO 2014-02-11 14:09:31 +01:00
Florian Bruhin
c77589a821 Make SignalCache an own class. 2014-02-11 14:04:36 +01:00
Florian Bruhin
d4e69c955e Show hovered link in statusbar. 2014-02-11 13:33:33 +01:00
Florian Bruhin
1134461953 Make it possible to ignore signals for cache. 2014-02-11 13:27:26 +01:00
Florian Bruhin
0676508687 Add signal_name in utils.misc 2014-02-11 13:26:41 +01:00
Florian Bruhin
d37318b851 Immediately emit cur_url_changed when opening new tab. 2014-02-11 13:08:15 +01:00
Florian Bruhin
9aa49b7fe8 Pad scroll percentage. 2014-02-11 13:06:02 +01:00
Florian Bruhin
d89098582f Show URL in statusbar. 2014-02-11 11:50:37 +01:00
Florian Bruhin
7486cb628a Revert "Delete QWebViews when tabs are closed."
This reverts commit 83276b9576.

This causes lots of segfaults and other strange stuff when a tab is
closed.
2014-02-11 11:31:20 +01:00
Florian Bruhin
547703a449 Add De Vincenzo link to TODO 2014-02-11 11:27:09 +01:00
Florian Bruhin
83276b9576 Delete QWebViews when tabs are closed. 2014-02-11 11:17:53 +01:00
Florian Bruhin
26787b0d30 Add custom set_trace for debugging. 2014-02-11 10:30:17 +01:00
Florian Bruhin
796cb0c7b6 Clean up style proxy to be much more concise. 2014-02-11 07:45:28 +01:00