Commit Graph

53 Commits

Author SHA1 Message Date
Florian Bruhin
9a990d56d9 Nicer docstrings 2014-02-19 10:58:32 +01:00
Florian Bruhin
6d709d9fd8 Allow completion widget height to be configured in % 2014-02-18 19:05:56 +01:00
Florian Bruhin
9318558eb6 Make completion height configurable 2014-02-18 18:42:43 +01:00
Florian Bruhin
96747c9d58 Reordering in widget submodules 2014-02-18 18:32:07 +01:00
Florian Bruhin
034f85b1d4 Use property for CompletionFilterModel.srcmodel 2014-02-18 17:57:58 +01:00
Florian Bruhin
911d5d3b4a Refactor ALL the things 2014-02-18 16:51:01 +01:00
Florian Bruhin
8d9280d1d8 Set more parents 2014-02-18 08:37:05 +01:00
Florian Bruhin
01096b995c Store more Qt properties as class attributes. 2014-02-17 16:09:27 +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
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
203fa3eb34 Docstring grammar fixes 2014-02-13 18:57:19 +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
01633007e0 Be PEP257 compliant. 2014-02-07 20:21:50 +01:00
Florian Bruhin
0648dce295 Add GNU GPL 2014-02-06 14:01:23 +01:00
Florian Bruhin
bb7df14c08 Fix completion widget size handling 2014-02-06 10:36:00 +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
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
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
06c8f2d03a Set sensible sizePolicies everywhere 2014-01-30 22:29:01 +01:00
Florian Bruhin
293ebc8d46 Add some asserts 2014-01-29 15:45:10 +01:00
Florian Bruhin
e56099e0ec Docstringify ALL the things 2014-01-29 15:30:19 +01:00
Florian Bruhin
46660b11ef Refactor CompletionView 2014-01-29 09:14:37 +01:00
Florian Bruhin
a8f9137fc8 Simple cleanups in widgets.completion 2014-01-29 09:07:04 +01:00
Florian Bruhin
7d4c02d301 Add docstrings to widgets.completion 2014-01-29 09:06:38 +01:00
Florian Bruhin
d83b98ecc0 More pylint fixes 2014-01-29 08:36:44 +01:00
Florian Bruhin
8870882edd Shut up, pylint 2014-01-29 04:25:46 +01:00
Florian Bruhin
06ad500964 Refactor CompletionItemDelegate a bit 2014-01-29 06:36:13 +01:00
Florian Bruhin
6f3a2448ba pep8 fixes 2014-01-28 23:12:44 +01:00
Florian Bruhin
f059bf0b3d some pylint fixes 2014-01-28 19:52:09 +01:00
Florian Bruhin
80feee323f Fix long lines 2014-01-28 17:33:48 +01:00
Florian Bruhin
eeb33a3e10 Remove semicolon 2014-01-28 17:30:37 +01:00
Florian Bruhin
9f25f049b8 Remove stylesheet debug output 2014-01-28 16:25:46 +01:00
Florian Bruhin
a907e913dd More monospace fonts 2014-01-28 15:20:58 +01:00
Florian Bruhin
9e24731d9a Don't tabcomplete if it's impossible 2014-01-28 13:23:08 +01:00
Florian Bruhin
fb84bdb55c Fix color configuration bugs 2014-01-28 13:03:15 +01:00
Florian Bruhin
9c209c0cdd Allow completion to be disabled 2014-01-28 12:59:38 +01:00
Florian Bruhin
9bf7dd2bbb Make colors configurable 2014-01-28 12:24:08 +01:00
Florian Bruhin
16645768e6 completion: clean up tab handler 2014-01-28 08:16:31 +01:00
Florian Bruhin
2480f13106 completion: Mark in red, not blue 2014-01-28 07:53:52 +01:00
Florian Bruhin
9d42bfa7cb Remove old FIXME 2014-01-28 07:53:21 +01:00