Commit Graph

37 Commits

Author SHA1 Message Date
Martchus e448ff04fa Apply clang-format 2023-07-03 00:26:25 +02:00
Martchus b340ff819c Retranslate certain dialogs/widgets dynamically
This does not cover all details yet.
2023-07-03 00:07:01 +02:00
Martchus 55341a7305 Prevent memory leaks found via valgrind 2021-03-23 16:46:55 +01:00
Martchus 25062fcf01 Fix/silence warnings 2021-03-20 21:02:00 +01:00
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 660625d1e7 Don't use lower-case Qt macros 2020-03-08 13:07:31 +01: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 9303e3f60d Add cleared property to Clear* classes 2019-07-07 12:41:11 +02:00
Martchus 033351eebf Reorder member variables of PathSelection 2019-07-07 12:40:32 +02:00
Martchus 6dd7c0fce1 Don't use functions obsoleted in Qt 5.13.0 2019-06-25 14:16:12 +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 8dc2956edf Use override 2018-10-10 21:12:58 +02:00
Martchus 571c2f8a26 Fix missing #includes 2018-06-05 22:49:17 +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 37dc2f722f Add missing #include <functional> 2017-05-30 15:08:01 +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 7f9afcda73 Fix decoration for static builds
- Also fix finding static web view and JavaScript provider
2016-08-29 15:41:21 +02:00
Martchus f8718d31f6 Remove unneeded #include 2016-07-27 18:51:45 +02:00
Martchus 0b68468814 tweaked PathSelection 2016-04-23 13:29:15 +02:00
Martchus 489ba018b8 minor fixes 2016-04-16 18:35:25 +02:00
Martchus 9cf5656efe reduce code duplication in build system
- get rid of qmake project file
- provide CMake modules for common tasks
- provide templates for *.desktop files
2016-04-16 02:11:20 +02:00
Martchus 323c3b8824 allow building without Qt Widgets specific features 2016-04-09 02:33:09 +02:00
Martchus fbfe8491ec added Widgets::PathSelection 2016-04-09 02:32:07 +02:00
Martchus ed9fbc44cd ensure buttons are updated in all situations 2016-03-06 18:43:07 +01:00
Martchus 2a9d4cb353 ClearPlainTextEdit: buttons are no longer displayed over the scroll bar 2016-03-06 17:12:06 +01:00
Martchus 721e79d027 fixed includes 2015-09-06 20:19:21 +02:00
Martchus 89f3822f09 replaced signals and slots with Q_SIGNALS and Q_SLOTS to avoid conflicts
with boost signals
2015-08-10 23:27:26 +02:00
Martchus 26748b4923 First commit 2015-04-22 18:57:44 +02:00