Florian Bruhin
cf17af147e
Fix and clean up insertmode checks
2014-06-23 14:26:34 +02:00
Florian Bruhin
752422c351
Add missing returns after calling superclass events.
...
We fscked that up in 9668994046
.
2014-06-23 10:18:27 +02:00
Florian Bruhin
6774445497
Fix lint
2014-06-23 08:26:35 +02:00
Florian Bruhin
be68f98ce7
Don't crash on invalid icon rect
2014-06-23 08:20:40 +02:00
Florian Bruhin
0a205071be
Add username to contact info
2014-06-23 08:16:00 +02:00
Florian Bruhin
593a2fe4ec
Make it configurable whether to leave insertmode on click
2014-06-23 08:05:52 +02:00
Florian Bruhin
0028bd94cc
Go to insertmode in google docs
2014-06-23 08:02:10 +02:00
Florian Bruhin
35ffc2c2c0
Don't crash if url is None in tabopen
2014-06-23 07:48:45 +02:00
Florian Bruhin
5efc9de434
Add comment about leaving insertmode
2014-06-23 07:47:42 +02:00
Florian Bruhin
8a8ca0c34f
Split utils.misc into utils.{qt,misc}
2014-06-23 07:45:04 +02:00
Florian Bruhin
4eeeb13927
Fix resizing completion on init
2014-06-23 06:23:33 +02:00
Florian Bruhin
ca576a1c82
Add some logging when restoring mainwindow size.
2014-06-23 06:20:37 +02:00
Florian Bruhin
03098f861e
Add logging for completion resizing
2014-06-22 23:52:50 +02:00
Florian Bruhin
d5834e0cf0
Don't crash on completion items without icon
2014-06-22 23:46:43 +02:00
Florian Bruhin
9668994046
Don't return values from events.
2014-06-22 23:37:16 +02:00
Florian Bruhin
8f85149c96
Don't accidentally call superclass event twice.
2014-06-22 23:37:06 +02:00
Florian Bruhin
983a0da520
Use toDisplayString for URL text.
2014-06-22 23:35:20 +02:00
Florian Bruhin
ba20300a2c
Check if hit test result is null
2014-06-22 23:35:01 +02:00
Florian Bruhin
15126dfb3c
Don't leave insert mode on non-insert clicks.
...
This proved to be a bad idea, as we only can guess what's an insert mode and
what isn't.
2014-06-22 23:34:19 +02:00
Florian Bruhin
7aea12ad35
Add comment about CodeMirror.
2014-06-22 23:34:05 +02:00
Florian Bruhin
46c19012ab
Fix spelling in comment.
2014-06-22 23:33:55 +02:00
Florian Bruhin
231aa6f9b8
Add FIXME for QTime.
2014-06-22 23:33:43 +02:00
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
bf9e829d4d
Don't use .warn on loggers, use .warning instead.
2014-06-22 23:30:44 +02:00
Florian Bruhin
a64775a0f9
Improve logging messages
2014-06-21 22:40:31 +02:00
Florian Bruhin
14bcdafe47
Fix completion coloring
2014-06-21 17:50:29 +02:00
Florian Bruhin
e1aabc974c
Remove completion bg from stylesheet
2014-06-21 17:38:04 +02:00
Florian Bruhin
7a6e2b3242
Ensure validity of Qt objects
2014-06-21 17:02:30 +02:00
Florian Bruhin
16758354e8
Fix missing return
2014-06-20 23:57:14 +02:00
Florian Bruhin
113221c731
Log some exceptions
2014-06-20 23:26:19 +02:00
Florian Bruhin
8b6af23b13
Make sure we don't display passwords in URLs to the user
2014-06-20 19:50:44 +02:00
Florian Bruhin
d3196fe683
Rename Url in statusbar to UrlText
2014-06-20 17:40:36 +02:00
Florian Bruhin
91416e345d
Treat CodeMirror instances as editable
2014-06-20 16:55:42 +02:00
Florian Bruhin
0fd64419da
Remove urlutils.{urlstring,qurl}.
...
The idea of treating an URL-string and a QUrl as essentially the same data type
got us into all kinds of problems. Now we use QUrl everywhere except at the
borders to the user interface.
2014-06-20 16:33:01 +02:00
Florian Bruhin
52d1645479
Revert "Clean up styles"
...
This reverts commit f821d9e211
.
This causes all methods to be applied from QCommonStyle, thus resulting in
right-click menus being blank...
2014-06-19 21:05:41 +02:00
Florian Bruhin
f821d9e211
Clean up styles
2014-06-19 15:43:34 +02:00
Florian Bruhin
d642aa48c1
Fix reparenting issues with layouts
2014-06-19 14:13:44 +02:00
Florian Bruhin
3de113ee8c
Don't double-connect tabCloseRequested
2014-06-19 13:43:43 +02:00
Florian Bruhin
6f4b2e872b
Don't restore focus to unfocused widget
2014-06-19 13:43:16 +02:00
Florian Bruhin
e6f9c0ccea
Fix keyboard focus issues.
2014-06-19 11:50:31 +02:00
Florian Bruhin
d65587128f
Add vim modelines to all files.
2014-06-19 09:04:37 +02:00
Florian Bruhin
4eebf24775
Improve crash dialog
2014-06-19 07:53:17 +02:00
Florian Bruhin
2b5a1cc322
Add wiget/object list to crash dialog
2014-06-17 23:04:58 +02:00
Florian Bruhin
87ddfc418e
Remove unneeded informations from segfault crash dialog
2014-06-17 22:37:20 +02:00
Florian Bruhin
e6866f7d85
Don't go to insert mode on disabled/readonly fields
2014-06-17 15:32:18 +02:00
Florian Bruhin
1fef2d02b9
Add an :all-objects command and __repr__s
2014-06-17 11:03:42 +02:00
Florian Bruhin
fe99cbc331
Fix crashes after parent-child cleanup.
2014-06-17 10:20:15 +02:00
Florian Bruhin
af9e4ae072
Fix parent/child relationships
2014-06-17 07:17:21 +02:00
Florian Bruhin
17cd86d564
Add an :all-widgets command and useful __repr__s
2014-06-17 06:37:56 +02:00
Florian Bruhin
177e2945b6
Use currying instead of self.sender() where applicable
2014-06-16 22:49:22 +02:00
Florian Bruhin
49fd9951ed
Use multiple eventloops
2014-06-15 22:24:37 +02:00
Florian Bruhin
fa79212fea
Don't crash on :<space>
2014-06-15 11:29:33 +02:00
Florian Bruhin
392784213b
Use EventLoop which raises an Exception on double exec_()
2014-06-14 21:00:08 +02:00
Florian Bruhin
e453d9c8ca
Merge Prompt:_display into Prompt:ask_question.
2014-06-13 23:42:07 +02:00
Florian Bruhin
197bbf1a95
Fix spacing between download items
2014-06-13 23:06:25 +02:00
Florian Bruhin
9cd0369f89
Add some space between download items
2014-06-13 22:55:24 +02:00
Florian Bruhin
0e11bae002
Turn off scrollbars in DownloadView
2014-06-13 22:53:56 +02:00
Florian Bruhin
82ed50050d
Update DownloadView geometry when MainWindow size changed.
2014-06-13 20:19:36 +02:00
Florian Bruhin
aa36d3b10c
Relayout DownloadView when size changed.
2014-06-13 20:19:27 +02:00
Florian Bruhin
6579f4dba0
Resize DownloadModel based on last item
2014-06-13 20:19:00 +02:00
Florian Bruhin
fce591839b
Abort filename prompt when download is cancelled.
2014-06-13 18:19:18 +02:00
Florian Bruhin
5a2e6ba99a
Add answer as argument to question's answered signal.
2014-06-13 18:16:24 +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
ac43a0b5cb
Style DownloadView
2014-06-13 07:39:47 +02:00
Florian Bruhin
3c2c08f73a
Add missing docstrings
2014-06-12 17:56:28 +02:00
Florian Bruhin
c91dced99f
Make it possible to cancel a message.question
2014-06-12 17:49:36 +02:00
Florian Bruhin
0713890980
Fix DownloadView sizing
2014-06-12 13:05:43 +02:00
Florian Bruhin
704be222d5
Set DownloadView size policy
2014-06-12 10:20:42 +02:00
Florian Bruhin
dcd05cae14
Move downloadview before browser
2014-06-12 10:19:45 +02:00
Florian Bruhin
2114f0cd73
Start adding download model/view
2014-06-12 08:02:44 +02:00
Florian Bruhin
7dd5b1b94e
First debugging implementation of downloads
2014-06-10 22:11:17 +02:00
Florian Bruhin
43c0578ede
Support closing windows via javascript.
2014-06-10 16:50:14 +02:00
Florian Bruhin
1c63ff620d
Add option to expand tabs
2014-06-10 14:30:31 +02:00
Florian Bruhin
2f1cd43f9c
Change lists to tuples for immutable values
2014-06-06 17:21:35 +02:00
Florian Bruhin
f173b19094
s/QuteBrowser/qutebrowser/
2014-06-04 14:52:12 +02:00
Florian Bruhin
a3bfc97079
Use an enum for user model roles.
2014-06-04 07:11:07 +02:00
Florian Bruhin
40009970df
Add option to configure if js statusbar messages should be shown
2014-06-03 19:17:35 +02:00
Florian Bruhin
62908e97c1
Fix javascript statusbar messages
2014-06-03 18:00:53 +02:00
Florian Bruhin
ec25821fae
_foo.py file rename [2/2]
2014-06-03 15:01:57 +02:00
Florian Bruhin
fa1e03f56b
_foo.py file rename [1/2]
2014-06-03 14:57:57 +02:00
Florian Bruhin
0f41366269
Fix lint
2014-06-03 13:48:12 +02:00
Florian Bruhin
02e92fd0ed
Move set_model logging to completer
2014-06-03 13:42:29 +02:00
Florian Bruhin
968bb3d430
Move selection_changed to Completer
2014-06-03 13:37:11 +02:00
Florian Bruhin
7d440426eb
Move on_update_completion
2014-06-03 12:59:50 +02:00
Florian Bruhin
2648f283b9
Get rid of _model in completion widget
2014-06-03 12:53:07 +02:00
Florian Bruhin
ff06e753df
Start moving stuff to Completer
2014-06-03 12:51:23 +02:00
Florian Bruhin
58c1646e9b
Shrink completion if configured to do so
2014-06-03 11:39:53 +02:00
Florian Bruhin
c7b2ff4db5
Make item_count a @property
2014-06-03 10:48:47 +02:00
Florian Bruhin
a555aa66a0
Hide completion if there are no items
2014-06-03 10:46:58 +02:00
Florian Bruhin
e294c01d7d
Fix lint
2014-06-03 10:44:19 +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
ce8ada5024
Get rid of self._completing in completion
2014-06-03 10:06:50 +02:00
Florian Bruhin
8914614f7b
Always update completion when cursor position changed
2014-06-03 10:05:01 +02:00
Florian Bruhin
e741744f1d
Clear _empty_item_idx correctly.
2014-06-03 09:51:20 +02:00
Florian Bruhin
f2c60c01ae
More logging
2014-06-03 09:50:53 +02:00
Florian Bruhin
f82fa297b0
Insert fake empty element when cursor is between spaces.
...
Known problems:
- This doesn't work when moving the cursor away from the spaces and moving
it back; then the completion pattern is wrong.
- When moving the cursor away from the spaces, the completion isn't updated
properly.
2014-06-03 07:36:28 +02:00
Florian Bruhin
98b967abaa
Completion logging improvements
2014-06-03 06:58:18 +02:00
Florian Bruhin
9bee827d52
Return [''] when splitting empty cmdline
2014-06-03 06:55:08 +02:00
Florian Bruhin
2eb26c96c4
More command splitting cleanup
2014-06-03 06:55:08 +02:00
Florian Bruhin
1d2d435231
Move split_cmdline() out of commands.managers
2014-06-03 06:55:08 +02:00
Florian Bruhin
0c1f611a72
Fix lint
2014-06-03 06:55:08 +02:00
Florian Bruhin
34946d031b
Whitespace fix
2014-06-03 06:55:08 +02:00
Florian Bruhin
a389b0f688
Add a quick-complete option.
...
This moves to the next commandline part when completing if there's only
one possible completion.
2014-06-03 06:55:07 +02:00
Florian Bruhin
749e330383
Ignore completion updates while completing
2014-06-03 06:55:07 +02:00
Florian Bruhin
1928add992
Remove cursor_part_changed signal.
2014-06-03 06:55:07 +02:00
Florian Bruhin
f9eb2af979
Fix cursor position after completing.
2014-06-03 06:55:07 +02:00
Florian Bruhin
1bb757a39e
Update cursor part in on_text_edited
2014-06-03 06:55:07 +02:00
Florian Bruhin
962a83b592
Handle parts/prefix in statusbar.command widget
2014-06-03 06:55:07 +02:00
Florian Bruhin
dc655dd40b
First try at using cursor position
2014-06-03 06:55:07 +02:00
Florian Bruhin
1ff193e4dd
Replace page_ by page()
2014-05-27 16:04:45 +02:00
Florian Bruhin
271d00417c
Avoid newlines in log
2014-05-26 20:09:46 +02:00
Florian Bruhin
4538745ffb
Implement QWebPage:javaScript*
2014-05-26 20:04:44 +02:00
Florian Bruhin
fa01bfbbad
Add per-tab inspector like dwb.
...
This also means the webinspector will always be detached / in its own window.
2014-05-26 15:35:05 +02:00
Florian Bruhin
62407eef33
Revert "Use a splitter for the webinspector"
...
This reverts commit f1f06b0a19
.
2014-05-26 15:13:39 +02:00
Florian Bruhin
6bc0f7e5e7
Revert "Make inspector detachable."
...
This reverts commit ee241c3f6c
.
Conflicts:
qutebrowser/config/configdata.py
2014-05-26 15:13:33 +02:00
Florian Bruhin
edacb23076
Color statusbar on prompts
2014-05-26 16:59:11 +02:00
Florian Bruhin
61d4821065
Add configurable confirmation when closing
2014-05-26 16:51:57 +02:00
Florian Bruhin
15a27a4c96
Fix double import
2014-05-26 12:17:43 +02:00
Florian Bruhin
ee241c3f6c
Make inspector detachable.
2014-05-26 12:16:03 +02:00
Florian Bruhin
8eed5a02d4
Don't adjust completion position when inspector is open.
2014-05-26 12:15:40 +02:00
Florian Bruhin
f1f06b0a19
Use a splitter for the webinspector
2014-05-26 12:00:45 +02:00
Florian Bruhin
24543edcbe
Spelling fix
2014-05-26 09:04:38 +02:00
Florian Bruhin
f87e7b76f4
Log to RAM and display log in crash dialog
2014-05-25 18:46:15 +02:00
Florian Bruhin
1e256699f8
Add topic-specific loggers
2014-05-23 16:11:55 +02:00
Florian Bruhin
99bd53de89
Close tabs on right click
2014-05-23 04:12:18 +02:00
Florian Bruhin
897fc0c72f
Leave hinting mode when tab changed
2014-05-22 17:50:10 +02:00
Florian Bruhin
9a3554a784
Add answered_(yes|no) signals to Question.
2014-05-22 16:43:38 +02:00
Florian Bruhin
89350cbff4
Emit answered signal from statusbar prompt.
...
This is so we can leave the mode (and hide the command widget) before
emitting the answered signal (and possibly ask something again).
2014-05-22 16:41:58 +02:00
Florian Bruhin
3a3d8fddee
Merge branch 'userscripts'
2014-05-22 08:52:20 +02:00
Florian Bruhin
e7d9a3dc88
Fix completion
2014-05-22 08:40:36 +02:00
Florian Bruhin
8d570b686c
Initial userscript support
2014-05-21 19:53:58 +02:00
Florian Bruhin
ecc838d02c
Fix ALL the lint
2014-05-21 17:29:09 +02:00
Florian Bruhin
cfd70e7821
Make yes/no questions work
2014-05-20 12:05:14 +02:00
Florian Bruhin
f43549d452
Clean up prompt code
2014-05-20 11:03:55 +02:00
Florian Bruhin
20f8c2b8b4
Add a new MinimalLineEdit widget
2014-05-20 10:11:05 +02:00
Florian Bruhin
1a959a39b2
Don't inherit Prompt from TextBase
2014-05-20 09:15:15 +02:00
Florian Bruhin
b1b1580136
Add some docstrings to prompt
2014-05-20 09:14:35 +02:00
Florian Bruhin
d4c90b4a60
Add proxy authentication
2014-05-20 08:56:56 +02:00
Florian Bruhin
77eb7d621a
Handle cancelling of authentication
2014-05-20 08:56:54 +02:00
Florian Bruhin
9ffc8d74c4
Save temporary username in Question object
2014-05-20 08:56:52 +02:00
Florian Bruhin
84fdd0f4f7
Get rid of accepted signal
2014-05-20 08:56:50 +02:00
Florian Bruhin
97df8fc172
Move some attributes to dedicated Question object
2014-05-20 08:56:48 +02:00
Florian Bruhin
7ca605ade6
First try at statusbar prompt
2014-05-20 08:56:46 +02:00
Florian Bruhin
9ce06c75bc
Clear hover URL when changing tab
2014-05-19 18:10:48 +02:00
Florian Bruhin
c24e92e519
Make hover URL display more reliable.
...
This uses a similiar mechanism to the statusbar text now.
Previously in some corner cases (e.g. reloading while hovering) the
incorrect link was displayed.
2014-05-19 18:08:33 +02:00
Florian Bruhin
d6c593f035
Use properties rather than overwriting __setattr__
2014-05-19 17:08:51 +02:00
Florian Bruhin
118d3e03cd
Revert "Make scroll bars hideable"
...
This reverts commit 1bfbdd79e4
.
Conflicts:
qutebrowser/browser/commands.py
qutebrowser/config/configdata.py
qutebrowser/widgets/webview.py
2014-05-19 09:50:56 +02:00