subsurface/qt-ui
Lubomir I. Ivanov afed054d82 modeldelegates.cpp: add custom highlight drawing in location items
There is a problem in LocationFilterDelegate::paint(), which
can manifest as very light background with white text in the
combo box from which the user selects a location - a
Windows 7 test case.

The main offenders are the drawControl() call which draws the
selected item background very bright and the fact that
the highlightText() is returning white.

It seems as if the combination of these is just wrong, theme
wise.

e5fa424a and 44762c42 fix that by branching Windows by version,
but do not cover the case where the user can use a custom theme -
e.g. dark selection highlight on Windows 7.

This patch skips drawControl() and draws the highlighted item
background manually. It makes it look similar to the small
tag highlights in TagWidget.

The patch adjust slightly the X offset of the drawn text.

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2015-10-07 18:35:37 +01:00
..
css
marble
profile Preserve profile toggle-button state zoomed_plot across sessions. 2015-10-07 08:34:47 +01:00
statistics Address uninitialized member warnings 2015-06-22 10:57:51 -07:00
about.cpp Re-assign numbers for beta versions 2015-09-03 07:40:14 -07:00
about.h
about.ui
btdeviceselectiondialog.cpp Fix build error on Windows with Qt5.5 2015-09-20 15:08:14 -07:00
btdeviceselectiondialog.h Fix build error on Windows with Qt5.5 2015-09-20 15:08:14 -07:00
btdeviceselectiondialog.ui Style and readability tweaks to btdeviceselectiondialog 2015-09-05 07:08:20 -07:00
configuredivecomputerdialog.cpp Avoid potential uninitialized access 2015-10-02 15:42:43 -04:00
configuredivecomputerdialog.h Connect up custom serial in dc configuration 2015-09-12 14:02:32 -07:00
configuredivecomputerdialog.ui Probe and expose OSTC3 model information 2015-09-25 09:56:11 -07:00
divecomponentselection.ui Layout issues: Fix DiveShare export dialog 2015-05-25 17:45:13 -07:00
divecomputermanagementdialog.cpp Fewer rebuilds triggered by changes in models.h 2015-05-29 14:13:44 -07:00
divecomputermanagementdialog.h
divecomputermanagementdialog.ui
divelistview.cpp Undo/redo of dive deletion needs to handle trips as well 2015-10-02 14:50:12 -04:00
divelistview.h Add support to "split" a dive with surface time in the middle 2015-10-01 22:29:43 -04:00
divelogexportdialog.cpp More style and readability changes 2015-09-05 07:42:57 -07:00
divelogexportdialog.h HTML export: separate UI and logic code 2015-06-16 14:04:41 -07:00
divelogexportdialog.ui Default to first tab on export 2015-07-21 07:33:31 -07:00
divelogimportdialog.cpp CSV import: strip whitespace from column names before matching 2015-09-11 11:10:36 -07:00
divelogimportdialog.h Clean up CSV import parameters 2015-08-27 08:59:44 -07:00
divelogimportdialog.ui Layout issues: Fix the DiveImportDialog 2015-05-25 17:45:11 -07:00
divepicturewidget.cpp Move DivePictureModel to qt-models 2015-05-29 14:14:27 -07:00
divepicturewidget.h Move DivePictureModel to qt-models 2015-05-29 14:14:27 -07:00
diveplanner.cpp Don't offer gas selection for the last waypoint in planner 2015-09-11 09:15:14 -07:00
diveplanner.h VPM-B: Add conservatism levels to the ui. Fix planner settings disabling. 2015-08-15 15:16:51 +02:00
diveplanner.ui Layout issues: Fix DiveShare export dialog 2015-05-25 17:45:13 -07:00
diveshareexportdialog.cpp Remove unneeded includes 2015-08-31 15:12:18 -07:00
diveshareexportdialog.h
diveshareexportdialog.ui Layout issues: Fix DiveShare export dialog 2015-05-25 17:45:13 -07:00
downloadfromdivecomputer.cpp Bugfix for checkboxes in DC download window GUI repaint delay. 2015-10-07 08:34:37 +01:00
downloadfromdivecomputer.h Only enable Bluetooth support if building against Qt5.4 or newer 2015-07-20 09:35:00 -07:00
downloadfromdivecomputer.ui More style and readability changes 2015-09-05 07:42:57 -07:00
filterwidget.ui Add better icons for the filter dialog 2014-12-31 23:53:28 -08:00
globe.cpp Don't zoom out the globe if the dive site has no GPS 2015-10-01 07:52:13 -04:00
globe.h Enable building with NO_MARBLE again 2015-07-31 11:01:57 -07:00
graphicsview-common.cpp CCR option: display o2 sensor data 2015-01-21 17:00:18 +12:00
graphicsview-common.h CCR option: display o2 sensor data 2015-01-21 17:00:18 +12:00
groupedlineedit.cpp Change colors of stars if widget has focus 2015-08-15 05:00:30 -07:00
groupedlineedit.h
kmessagewidget.cpp KMessageWidget: hide messages regardless whether it's visible 2015-07-16 10:55:55 -07:00
kmessagewidget.h Update KMessageWidget to KF5 2015-06-03 21:26:31 -07:00
listfilter.ui Layout issues: Fix spacing for the filter dialog 2015-05-25 17:43:08 -07:00
locationinformation.cpp Do not incorrectly use the UUID as the dive name 2015-10-06 00:01:30 +01:00
locationinformation.h Remove unused member 2015-10-02 17:30:21 -04:00
locationInformation.ui Make it possible to use Subsurface in height=768 2015-09-02 15:25:44 -07:00
maintab.cpp Be way more carefull when copying dive site 2015-10-06 21:17:03 +01:00
maintab.h Remove unused code 2015-10-06 21:15:51 +01:00
maintab.ui Add a new QLineEdit to set the dive trip location 2015-10-01 17:59:44 -04:00
mainwindow.cpp Preserve profile toggle-button state zoomed_plot across sessions. 2015-10-07 08:34:47 +01:00
mainwindow.h Show error messages during start up as soon as the main window is shown 2015-10-06 00:01:30 +01:00
mainwindow.ui Make Facebook more user friendly 2015-09-16 21:16:58 -07:00
metrics.cpp
metrics.h
modeldelegates.cpp modeldelegates.cpp: add custom highlight drawing in location items 2015-10-07 18:35:37 +01:00
modeldelegates.h Create a delegate to display custom data 2015-07-01 19:24:52 -07:00
notificationwidget.cpp Cloud storage: clear our last error if verification succeeds 2015-06-14 14:18:51 -07:00
notificationwidget.h Cloud storage: clear our last error if verification succeeds 2015-06-14 14:18:51 -07:00
plannerDetails.ui Layout issues: Fix planner layout 2015-05-25 17:45:13 -07:00
plannerSettings.ui Use Bühlmann in all strings shown to the user 2015-09-16 21:16:58 -07:00
preferences.cpp Simplify code 2015-10-07 07:56:44 +01:00
preferences.h Make password change asynchronous 2015-07-22 15:06:57 -07:00
preferences.ui Remove unused part of the geocoding preferences 2015-10-06 00:01:30 +01:00
printdialog.cpp Printing: use the same code for both statistics and divelist print 2015-08-22 18:36:19 +03:00
printdialog.h Printing: add template_options struct that contains template 2015-07-05 21:00:25 +03:00
printoptions.cpp printoptions.cpp: add missing tr() calls 2015-10-01 12:55:29 -04:00
printoptions.h Printing: add statistics templates to the dialog 2015-08-22 18:34:34 +03:00
printoptions.ui Printing: add "Import", "Export" and "Delete" buttons for templates 2015-07-28 11:37:51 +03:00
qtwaitingspinner.cpp Add a new class, QtWaitingSpinner, MIT Licensed. 2015-05-17 15:00:25 -07:00
qtwaitingspinner.h Add a new class, QtWaitingSpinner, MIT Licensed. 2015-05-17 15:00:25 -07:00
renumber.ui
searchbar.ui
setpoint.ui A widget to add a set-point change 2014-12-01 14:19:03 -08:00
shiftimagetimes.ui Add checkbox to force images to match dives 2015-09-11 09:18:55 -07:00
shifttimes.ui
simplewidgets.cpp Avoid having uninitialized member 2015-10-01 22:02:53 -04:00
simplewidgets.h Add checkbox to force images to match dives 2015-09-11 09:18:55 -07:00
socialnetworks.cpp Make Facebook more user friendly 2015-09-16 21:16:58 -07:00
socialnetworks.h Make Facebook more user friendly 2015-09-16 21:16:58 -07:00
socialnetworksdialog.ui Facebook integration: improve dialog layout 2014-12-29 11:58:38 -08:00
starwidget.cpp Minor code cleanup. 2015-08-15 05:01:33 -07:00
starwidget.h
subsurfacewebservices.cpp Make importing of GPS locations less verbose 2015-09-28 13:11:44 -04:00
subsurfacewebservices.h Make password change asynchronous 2015-07-22 15:06:57 -07:00
tableview.cpp Fewer rebuilds triggered by changes in models.h 2015-05-29 14:13:44 -07:00
tableview.h TableView - improving the column width calculation 2015-03-19 15:33:16 -07:00
tableview.ui Revert "Remove unused strings from ui files" 2014-12-24 10:06:41 -08:00
tagwidget.cpp Remove information panel from mainwindow.ui 2015-02-10 10:45:45 -08:00
tagwidget.h
templateedit.cpp Printing: minor fixes as suggested by Lubomir 2015-09-16 21:32:22 -07:00
templateedit.h Printing: fix TemplateEdit color selection bug 2015-08-15 15:02:04 +03:00
templateedit.ui Style & spelling changes to printing 2015-09-05 07:43:11 -07:00
undocommands.cpp Use copy_string() to avoid potential crash 2015-10-03 07:19:55 -04:00
undocommands.h Undo/redo of dive deletion needs to handle trips as well 2015-10-02 14:50:12 -04:00
updatemanager.cpp Remove unneeded includes 2015-08-31 15:12:18 -07:00
updatemanager.h Add unique but random UUID to server queries 2015-01-25 12:02:13 -08:00
urldialog.ui Allow images to be added via the web 2015-04-24 09:36:21 -07:00
usermanual.cpp Make search and close shortcut for user manual work on Mac 2015-01-28 14:30:19 -08:00
usermanual.h Make search and close shortcut for user manual work on Mac 2015-01-28 14:30:19 -08:00
usersurvey.cpp Move helper functions around 2015-02-23 09:31:08 -08:00
usersurvey.h Move helper functions around 2015-02-23 09:31:08 -08:00
usersurvey.ui Include iPhone companion app to user survey 2015-01-30 22:48:08 -08:00
webservices.ui