Florian Bruhin
0425ce7b48
Extend paintEvent instead of using an eventFilter
2014-02-18 17:26:26 +01:00
Florian Bruhin
2fe2ca85c2
Set WA_StyledBackground for statusbar instead of overriding paintEvent
2014-02-18 16:57:10 +01:00
Florian Bruhin
911d5d3b4a
Refactor ALL the things
2014-02-18 16:51:01 +01:00
Florian Bruhin
3d37b22fb0
Cleanup
2014-02-18 14:21:39 +01:00
Florian Bruhin
234d171483
Use Qt saveGeometry and restoreGeometry
2014-02-18 14:14:27 +01:00
Florian Bruhin
c9e4f2417d
Add more shutdown debugging
2014-02-18 13:05:42 +01:00
Florian Bruhin
27d354633c
Save/restore window geometry.
2014-02-18 11:57:35 +01:00
Florian Bruhin
8ba4661838
bugfix: Fix command history
2014-02-18 10:50:41 +01:00
Florian Bruhin
d349a987c7
CrashDialog: add Stretch before buttons.
2014-02-18 08:52:37 +01:00
Florian Bruhin
8c1619236b
CrashDialog: fix layout setting issue
2014-02-18 08:52:25 +01:00
Florian Bruhin
8d9280d1d8
Set more parents
2014-02-18 08:37:05 +01:00
Florian Bruhin
2779b2f42e
Fix cur_scroll_page regression.
2014-02-17 22:24:17 +01:00
Florian Bruhin
14a090c087
More shutdown/crashing improvments.
2014-02-17 20:30:09 +01:00
Florian Bruhin
9c0f0e8ac5
Add last_close setting.
2014-02-17 16:50:41 +01:00
Florian Bruhin
01096b995c
Store more Qt properties as class attributes.
2014-02-17 16:09:27 +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
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
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
176c1aa7d6
Use float() where applicable, not int()
2014-02-13 11:48:25 +01:00
Florian Bruhin
029813c8eb
Implement page-wise scrolling.
2014-02-13 10:28:09 +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
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
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
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
83276b9576
Delete QWebViews when tabs are closed.
2014-02-11 11:17:53 +01:00
Florian Bruhin
78c89981ab
Implement custom style for Ubuntu madness.
2014-02-11 07:01:59 +01:00
Florian Bruhin
6cf85ff52e
Replace QUrl::url by QUrl::toString.
2014-02-10 19:12:12 +01:00
Florian Bruhin
094640b39b
Fix signal_cache init, more debugging.
2014-02-10 17:54:24 +01:00
Florian Bruhin
39ed73c3cf
python package cleanup
2014-02-10 15:06:46 +01:00
Florian Bruhin
e49a0aa0ed
Use generator expressions where possible.
2014-02-10 08:21:09 +01:00
Florian Bruhin
1af78272bb
Make fonts configurable.
2014-02-10 07:03:51 +01:00
Florian Bruhin
9636432bd5
Move completion widget when statusbar moves.
2014-02-09 21:43:24 +01:00
Florian Bruhin
1a74cbee74
Completion widget design microtuning.
2014-02-09 21:27:56 +01:00
Florian Bruhin
6fbfcab3e2
Don't hardcode heights of tabbar/statusbar
2014-02-09 21:18:44 +01:00
Florian Bruhin
01633007e0
Be PEP257 compliant.
2014-02-07 20:21:50 +01:00
Florian Bruhin
a4a2832f8e
Move url utils to url.py
2014-02-07 17:20:55 +01:00
Florian Bruhin
ccddf3f7e7
Improve url/searchterm checking.
2014-02-07 17:14:13 +01:00
Florian Bruhin
acd7a0a070
Load unknown about:... pages with QWebView.
2014-02-07 14:01:35 +01:00
Florian Bruhin
2ed3f722f5
Catch AttributeError when opening unknown about: pages
2014-02-07 12:54:39 +01:00
Florian Bruhin
920683b804
Refactor about:... handling
2014-02-07 10:34:37 +01:00
Florian Bruhin
0648dce295
Add GNU GPL
2014-02-06 14:01:23 +01:00
Florian Bruhin
04ffbc3e53
Fixes for checks.
2014-02-06 13:40:18 +01:00
Florian Bruhin
4c36665601
Bind loadStarted correctly, whoops.
2014-02-06 13:37:05 +01:00
Florian Bruhin
e2589a35b3
Add opencur and tabopencur
2014-02-06 13:34:49 +01:00
Florian Bruhin
bb7df14c08
Fix completion widget size handling
2014-02-06 10:36:00 +01:00
Florian Bruhin
9a0451c984
Crash more reliably #2
2014-02-06 10:25:22 +01:00
Florian Bruhin
ae81427293
Cleanup/Checks
2014-02-06 06:54:57 +01:00
Florian Bruhin
bc6c97a672
First implementation of sizeHint for completion.
...
This implements the sizeHint method of CompletionItemDelegate, however
this doesn't seem to work correctly yet. Only a few size hints get
called when using resizeColumnToContents...
2014-02-06 06:42:12 +01:00
Florian Bruhin
748a28be1c
completion resizeHint: adjust for scrollbar
2014-02-05 18:05:08 +01:00
Florian Bruhin
444b813cf5
Clear signal cache on loadStarted
2014-02-05 17:27:57 +01:00
Florian Bruhin
8e35fb5656
Fix signal cache
2014-02-05 17:19:52 +01:00
Florian Bruhin
0477df72b7
Don't output debug strings for cur_progress signals
2014-02-05 16:03:32 +01:00
Florian Bruhin
0005c1d0a7
Fix browser eventFilter/scroll hack
2014-02-05 15:59:54 +01:00
Florian Bruhin
ac33da82a2
Add more debug info to _filter_signals warning
2014-02-05 15:31:09 +01:00
Florian Bruhin
96cfdfc96c
Remove statusBarMessage FIXME
2014-02-05 15:21:24 +01:00
Florian Bruhin
81c65dbe97
Handle title changes correctly
2014-02-05 15:17:58 +01:00
Florian Bruhin
14288977d1
Use functools instead of lambda for _filter_signals
2014-02-05 14:21:55 +01:00
Florian Bruhin
81da8b6aaa
Introduce the concept of a signal cache in browser.
...
The latest cur_* signal emitted by each tab will be re-emitted now when
this tab gets the focus. This should fix the problem with stale data in
the statusbar.
2014-02-05 14:01:16 +01:00
Florian Bruhin
fc7caee370
Crash more reliably (lol'd)
2014-02-05 11:40:30 +01:00
Florian Bruhin
1f6ae3e0ed
Add possible workaround for model invalidate().
2014-02-04 20:59:39 +01:00
Florian Bruhin
109522e43f
Save sourceModel().
2014-02-04 18:37:35 +01:00
Florian Bruhin
1f59a00808
Change how resorting is done.
...
This avoids the pattern_changed signal and does the resorting in the
model directly (where it belongs) instead.
2014-02-04 13:19:55 +01:00
Florian Bruhin
0adf8d6b53
Call resizeEvent before resizing column for completion
2014-02-01 22:03:06 +01:00
Florian Bruhin
b6126a49a9
Maybe fix completion resize, add debugging.
2014-02-01 21:03:06 +01:00
Florian Bruhin
0cbb574ced
Refactor crashdialog setText
2014-01-31 10:30:18 +01:00
Florian Bruhin
89738bce7d
Improve crash dialog
2014-01-31 10:24:00 +01:00
Florian Bruhin
7cde8f00cb
Set MainWindow size on start
2014-01-31 10:11:59 +01:00
Florian Bruhin
053ce35032
Hopefully sane default config handling.
...
This now reads the values from the config, and from a default config if
it's not overridden.
2014-01-30 23:05:39 +01:00
Florian Bruhin
a6db387ef7
Make tabs movable
2014-01-30 22:29:26 +01:00
Florian Bruhin
725106e8ff
Add FIXME for settings to tabbar.py
2014-01-30 22:29:13 +01:00
Florian Bruhin
06c8f2d03a
Set sensible sizePolicies everywhere
2014-01-30 22:29:01 +01:00
Florian Bruhin
5366186dd1
Small CrashDialog improvements
2014-01-30 21:32:31 +01:00
Florian Bruhin
2c276b98a4
Handle exceptions with a crash dialog.
2014-01-30 21:22:56 +01:00
Florian Bruhin
c3ce167926
Allow commands/URLs to be passed as arguments.
2014-01-30 21:11:30 +01:00