Commit Graph

131 Commits

Author SHA1 Message Date
Florian Bruhin
4bd8a596f1 Check return values (e.g. indexOf) 2014-06-22 23:33:32 +02:00
Florian Bruhin
ef5b16556b More validity checks. 2014-06-22 23:32:49 +02:00
Florian Bruhin
5ab9755ac4 Fix vim modeline in models.completion 2014-06-21 22:41:04 +02:00
Florian Bruhin
a64775a0f9 Improve logging messages 2014-06-21 22:40:31 +02:00
Florian Bruhin
7a6e2b3242 Ensure validity of Qt objects 2014-06-21 17:02:30 +02:00
Florian Bruhin
113221c731 Log some exceptions 2014-06-20 23:26:19 +02:00
Florian Bruhin
d65587128f Add vim modelines to all files. 2014-06-19 09:04:37 +02:00
Florian Bruhin
1fef2d02b9 Add an :all-objects command and __repr__s 2014-06-17 11:03:42 +02:00
Florian Bruhin
d76226626f Add debug argument for commands 2014-06-16 09:44:11 +02:00
Florian Bruhin
9b42617c76 Fix lint 2014-06-13 23:09:24 +02:00
Florian Bruhin
6579f4dba0 Resize DownloadModel based on last item 2014-06-13 20:19:00 +02:00
Florian Bruhin
ba1f8e3764 Don't require parent argument for rowCount in DownloadModel. 2014-06-13 20:18:42 +02:00
Florian Bruhin
a5f71a286d Don't make download items selectable 2014-06-13 17:47:03 +02:00
Florian Bruhin
3e5e8e59c1 Add right-click menu to cancel download 2014-06-13 12:19:30 +02:00
Florian Bruhin
4dc33102b7 Cleanup 2014-06-13 07:41:51 +02:00
Florian Bruhin
8c673ee66c Add basic download info to view 2014-06-12 23:29:34 +02:00
Florian Bruhin
2ffc9bb00a Add colors to DownloadView 2014-06-12 21:43:30 +02:00
Florian Bruhin
3c2c08f73a Add missing docstrings 2014-06-12 17:56:28 +02:00
Florian Bruhin
3150a88a3b Fix download model output if percentage is None 2014-06-12 10:20:27 +02:00
Florian Bruhin
8d9372045d Connect downloadmanager signals to model properly 2014-06-12 10:20:10 +02:00
Florian Bruhin
2114f0cd73 Start adding download model/view 2014-06-12 08:02:44 +02:00
Florian Bruhin
d5891b2e86 Get raw config values for completion model 2014-06-04 18:42:21 +02:00
Florian Bruhin
170098683f Fix exception on :set introduced with curitem completion 2014-06-04 18:39:38 +02:00
Florian Bruhin
9add8b105c Get rid of NoCompletionsError 2014-06-04 07:16:34 +02:00
Florian Bruhin
055d341760 Make it possible to explicitely sort categories 2014-06-04 07:11:20 +02:00
Florian Bruhin
a3bfc97079 Use an enum for user model roles. 2014-06-04 07:11:07 +02:00
Florian Bruhin
93c6d8ea2f Add current value to completions for settings 2014-06-04 06:44:07 +02:00
Florian Bruhin
062b7b177b Simplify setting value completion models. 2014-06-04 06:42:57 +02:00
Florian Bruhin
c7b2ff4db5 Make item_count a @property 2014-06-03 10:48:47 +02:00
Florian Bruhin
3f0682e5a9 Mark items after filtering 2014-06-03 10:37:04 +02:00
Florian Bruhin
b10f375814 Add item_count method to CompletionFilterModel 2014-06-03 10:16:31 +02:00
Florian Bruhin
1e256699f8 Add topic-specific loggers 2014-05-23 16:11:55 +02:00
Florian Bruhin
876dcad28f Fix some more escaped quotes 2014-05-13 22:18:59 +02:00
Florian Bruhin
edc9d0810c Use QCoreApplication.instance() 2014-05-09 17:01:05 +02:00
Florian Bruhin
c8fd0937b0 Revert "Use global object dict for global objects"
This reverts commit bf2c7831c8.

This was a bad idea as we need to access some of the main attributes
from commands via instance=...
2014-05-05 20:12:20 +02:00
Florian Bruhin
bf2c7831c8 Use global object dict for global objects 2014-05-05 19:12:47 +02:00
Florian Bruhin
667b255d01 Use QApplication for global singletons 2014-05-05 17:56:14 +02:00
Florian Bruhin
970d8fd7ba Shorter completion header texts 2014-05-04 18:06:25 +02:00
Florian Bruhin
c33fc62d2f Fix lint 2014-05-02 17:53:59 +02:00
Florian Bruhin
54d00938c5 Show config values correctly 2014-05-02 16:53:37 +02:00
Florian Bruhin
0fc789509f Use setData of model instead of item 2014-05-02 16:29:01 +02:00
Florian Bruhin
e54a649337 Add on_config_changed slot for models. 2014-05-02 16:23:51 +02:00
Florian Bruhin
35006bd246 Add a misc column to models. 2014-05-02 16:23:11 +02:00
Florian Bruhin
f8ab7e5052 Add aliases to CommandCompletionModel 2014-05-02 15:22:45 +02:00
Florian Bruhin
b74a97580f Handle completions for ValueList sections correctly 2014-05-02 14:18:40 +02:00
Florian Bruhin
1eabbfbfcf Replace QAbstractItemModel by QStandardItemModel.
This is probably the most depressing commit ever.

For some reason I didn't find this while searching for models I could
use and rolled my own one. This uses A LOT less code, and is A LOT
faster...
2014-04-30 07:32:51 +02:00
Florian Bruhin
9252ef94ca Consistent string chars 2014-04-25 16:53:23 +02:00
Florian Bruhin
da91907656 Unfiy completions into single file 2014-04-25 12:29:00 +02:00
Florian Bruhin
06ff2e00e9 Always draw categories correctly in completion 2014-04-22 21:38:06 +02:00
Florian Bruhin
55e3aca702 linting cleanup 2014-04-22 17:53:27 +02:00
Florian Bruhin
1638823fb3 Add a complete() method to config types 2014-04-22 15:19:01 +02:00
Florian Bruhin
963066b4bd Remove some old FIXMEs 2014-04-22 14:45:24 +02:00
Florian Bruhin
39f580d9f1 Cleanup 2014-04-17 17:44:27 +02:00
Florian Bruhin
c0236b8d22 Use a proper separated model for cmd history 2014-04-17 11:08:14 +02:00
Florian Bruhin
48ced03d57 Display config description in completion 2014-04-16 16:36:45 +02:00
Florian Bruhin
57baafbf30 Change configdata from function to attribute 2014-04-16 16:32:14 +02:00
Florian Bruhin
91e6f4c37d Better linting with config files 2014-04-16 11:05:58 +02:00
Florian Bruhin
e878fc538d Fix some checks 2014-04-16 10:02:34 +02:00
Florian Bruhin
f959c0c137 Add completion for settings values 2014-04-14 17:54:11 +02:00
Florian Bruhin
c5ca0e56be Remove blank lines before """ in docstrings.
pep257 has changed in this regard so we reflect this change.
2014-04-10 14:21:27 +02:00
Florian Bruhin
60cb5ad85d Lint fixes 2014-04-10 07:42:21 +02:00
Florian Bruhin
c26430d08d Remove annoying two-word completions 2014-04-10 06:58:58 +02:00
Florian Bruhin
4b0b9d884c lint fixes 2014-04-09 17:57:00 +02:00
Florian Bruhin
3f7635619a Complete multi-part values correctly 2014-04-09 17:54:41 +02:00
Florian Bruhin
d5456fcae1 Fix tabbing with models with children 2014-03-23 21:15:28 +01:00
Florian Bruhin
cbd368d980 Add FIXME 2014-03-21 20:25:11 +01:00
Florian Bruhin
a643bcd617 Store complete model correctly 2014-03-21 19:19:55 +01:00
Florian Bruhin
e61d7f724f cleanup 2014-03-10 00:39:15 +01:00
Florian Bruhin
df26d4ad91 Completion pattern update 2014-03-10 00:39:15 +01:00
Florian Bruhin
e33b87f713 sourcemodel and logging updates 2014-03-10 00:39:15 +01:00
Florian Bruhin
bd4dba1ed3 Broken setting completion 2014-03-10 00:39:15 +01:00
Florian Bruhin
b22b19d881 Start using (broken) decorators 2014-03-03 06:09:23 +01:00
Florian Bruhin
b91b6038c6 Emit dataChanged correctly for model 2014-02-20 11:24:24 +01:00
Florian Bruhin
f70ad71f9c Add error strings to exceptions 2014-02-19 11:11:21 +01:00
Florian Bruhin
9a990d56d9 Nicer docstrings 2014-02-19 10:58:32 +01:00
Florian Bruhin
034f85b1d4 Use property for CompletionFilterModel.srcmodel 2014-02-18 17:57:58 +01:00
Florian Bruhin
5f83228c75 Reorder some methods, widgets not done yet 2014-02-18 17:54:17 +01:00
Florian Bruhin
911d5d3b4a Refactor ALL the things 2014-02-18 16:51:01 +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
933296f47f Move models to qutebrowser.models 2014-02-14 17:41:12 +01:00