Commit Graph

16 Commits

Author SHA1 Message Date
Martchus 106ac4c57e Improve behavior of ButtonOverlay
* Remove all existing actions when falling back to using a custom layout to
  prevent duplicating those buttons
* Enable clear button of ClearComboBox by default for consistency with
  other widgets
2020-06-16 00:16:52 +02:00
Martchus ee9ec87386 Resolve TODO regarding QCursor::pos() 2020-06-14 15:53:45 +02:00
Martchus 793bd00cb6 Avoid repeating default pixmap size of IconButton all over the place 2020-06-14 14:56:03 +02:00
Martchus ee7539cf6e Allow adding custom actions to button overlay
Of course it would is possible to add actions directly to the line edit.
These new helper functions have the advantage that they provide a fallback
to the old button overlay implementation in case line edit actions can not
be used.
2020-06-09 23:24:24 +02:00
Martchus 5974690006 Use QLineEdit's functions to implement ButtonOverlay functions if possible 2020-06-09 22:03:26 +02:00
Martchus 7db2fd02fc Improve button overlay so buttons will not be shown over e.g. spin box buttons
* Unify/streamline code
* Use Qt::SC_ComboBoxEditField/Qt::SC_SpinBoxEditField to determine the edit
  area for better compatibility accorss various styles
2020-06-04 19:13:14 +02:00
Martchus 8cbe2da2a2 Remove own icons for button overlay
* Use "edit-clear" from icon theme instead
* Other icons were only used by the tag editor but it now uses
  icons from the icon theme instead
2019-08-08 22:54:13 +02:00
Martchus b3e7c390d9 Have everything in one top-level namespace 2019-06-10 21:57:46 +02:00
Martchus e32f3c9dad Enable using clear icon from theme 2019-05-28 23:53:49 +02:00
Martchus afe3373896 Apply tidy after updating to clang-format 5.0.0
The behavior of clang-format slightly changed in Clang 5.0.0:
http://releases.llvm.org/5.0.0/tools/clang/docs/ReleaseNotes.html#clang-format
2017-09-17 21:45:49 +02:00
Martchus 0599eb354d Apply clang-format 2017-05-04 22:46:37 +02:00
Martchus 2dcbc02f4b Apply clang-format 2017-05-01 03:16:25 +02:00
Martchus ebf76ab4cf Add high res edit icons 2017-03-01 23:29:40 +01:00
Martchus 27b132f39a Capitalize 'Clear' tooltip on ButtonOverlay 2016-12-01 23:04:45 +01:00
Martchus 721e79d027 fixed includes 2015-09-06 20:19:21 +02:00
Martchus 26748b4923 First commit 2015-04-22 18:57:44 +02:00