summaryrefslogtreecommitdiff
path: root/vcl/qt5
AgeCommit message (Collapse)AuthorFilesLines
2017-11-08Retrofit "KeepEmptyLinesAtTheStartOfBlocks: false" into .clang-formatStephan Bergmann33-1913/+1680
...even if that can cause reformatting of already formatted code. The problem I came across is that without this something like > namespace { > > void f1(); > > void f2(); > > } (which is quite a common style in the current code base) would be changed to > namespace > { > > void f1(); > > void f2(); > } instead of > namespace > { > void f1(); > > void f2(); > } and I found no other clang-format style option that would result in the presence or absence of an empty line be identical at the start and end of the namespace block. vmiklos asked to reformat the existing new (i.e., non-blacklisted) files at the same time, so this commit includes that. Some of those new files had not been formatted at all, so this commit includes their full reformatting changes. Change-Id: I54daf0c11098d07d02c802104cf7f56372e61f7c Reviewed-on: https://gerrit.libreoffice.org/44450 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-11-07QT5 initial keyboard supportJan-Marek Glogowski2-4/+111
No idea, if we can / should map those vendor specific keys, like Gtk+ does. This also prefixes the non-virtual functions with "handle". Change-Id: Id8c42651e07d33728ff6deced06a82de29aa3fad
2017-11-07QT5 queue paint update on showJan-Marek Glogowski3-9/+16
Something like gtk_widget_set_redraw_on_allocate. On resize of dialogs, we still get artefacts, but at least you see something without forcing an event. And since there isn't any Qt5 theming yet, we let VCL paint the menus with a border. Change-Id: Ia2ff6b199ee25e481e3fb29a921b0d3d490f1535
2017-11-06Removed duplicated includeAndrea Gelmini1-1/+0
Change-Id: I1d6d4a6ce285e46b3910f5e48b6beb1685460f74 Reviewed-on: https://gerrit.libreoffice.org/44376 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
2017-11-06QT5 implement Graphics damage trackingJan-Marek Glogowski6-69/+197
Since we implement SalGraphics handling like the gtk3 backend, we need damage tracking to queue updates. Since there is no native damage tracking in Qt5, we have to log the damage in our subclassed QPainter, which will queue an update on destruction. Change-Id: Ife17770750a5be9959c2fc2633b422908d196869
2017-11-06QT5 implement alpha based drawingJan-Marek Glogowski2-13/+96
Change-Id: Ide2ef42110798ed061f7e32e49e38b6428c22c01
2017-11-06QT5 port quarz Polgon and PolyPolygon handlingJan-Marek Glogowski3-11/+194
Change-Id: I53807bff3db9c9e4300f03e56857381cad7c9431
2017-11-06QT5 unify Graphics constructorsJan-Marek Glogowski2-13/+9
Change-Id: I85ce73e0e79927fa9233230bc4a9134db4c513dc
2017-11-06QT5 always generate a QPainterJan-Marek Glogowski3-34/+52
Change-Id: Ie8684cd4be56fb6d88d9643a6326307590115a80
2017-11-06QT5 implement some mouse handlingJan-Marek Glogowski5-1/+137
Scrollwheel handling seems to work with mouse, but not correct when using a touchpad - at least for me. Change-Id: I4f1b32205516912e31f9c52605ba2bf4ec6059a8
2017-11-06QT5 port more of the gtk3 positioning codeJan-Marek Glogowski2-10/+102
Change-Id: I36631c332ddffbca73768cdc4a596213e0b026ef
2017-11-06QT5 rotate generated bitmapJan-Marek Glogowski1-7/+16
QImage stores the scanlines from top => bottom. Change-Id: I0a176066ab631179b8460b61a6c2b07ad2179d31
2017-11-06QT5 implement cursor supportJan-Marek Glogowski4-3/+182
Change-Id: Ie47b8def36d67255b61eab04bc7e3818bb1d8ea8
2017-11-06QT5 first stab on implementing CommonSalLayoutJan-Marek Glogowski6-14/+99
CommonSalLayout doesn't rally have an interface. It's cluttered with #ifdefs. Currently we have to move the Qt5Font into the VCL library. Someone should refactor this... Doen't render any text yet, but reports some sizes. Eventually that would cut down the public interface again. Change-Id: I12f32affb05b37e070c6cbc80db01779f84590b6
2017-11-06QT5 implement cairo rendering pathJan-Marek Glogowski9-39/+204
Instead of QImage, this uses cairo_surface_t internally and just blits the composed image in the Qt5Widgets paint function. To enable this rendering path set SAL_VCL_QT5_USE_CAIRO. Change-Id: Ieddda9bad2596ce46d7d07d4d7060e40d44997db
2017-11-06QT5 rename from KF5Jan-Marek Glogowski29-0/+3407
Move out of unx, as this will eventually compile on other OS platforms. At least currently it doesn't contain platform dependant code. Change-Id: Iea0bebf574201881ea158381fe7ba8af2a9a6488