Commit graph

35 commits

Author SHA1 Message Date
23rd
08b56a1789 Added text selection to context menu request from FlatLabel. 2024-04-30 17:22:23 +03:00
John Preston
ab5057f001 Optimize simple Ui::Text::String instances. 2023-10-12 13:53:44 +04:00
John Preston
02440524ea Add per-line geometry / colors customization for Text. 2023-10-04 22:17:27 +04:00
John Preston
7c60b03c9b Resize centered labels wide by default. 2023-08-01 19:05:34 +02:00
John Preston
c3aab1bd14 Allow disabling spoilers / emoji in FlatLabel. 2023-06-30 21:12:21 +04:00
John Preston
aa5cc61b6b Allow DividerLabel to wrap any widget, not just FlatLabel. 2023-04-04 17:06:52 +04:00
John Preston
1b9b173964 Support spoilers in FlatLabel. 2023-02-07 20:05:34 +04:00
John Preston
a113e50050 Separate ClickHandler::url from dragText. 2023-01-12 11:23:02 +04:00
John Preston
0937ac0ad0 Allow custom context menus on labels. 2022-11-29 13:41:12 +04:00
John Preston
73b6bc5e13 Implement animated spoilers. 2022-09-17 00:22:08 +04:00
John Preston
4ec399f169 Simplify labels with custom click handlers. 2022-09-06 11:20:23 +04:00
23rd
29ce965e61 Added ability to pass context with marked text to Ui::FlatLabel. 2022-08-25 20:39:15 +03:00
John Preston
b802516ca7 Allow DividerLabel with only top / bottom part. 2022-06-02 17:26:29 +04:00
23rd
1ba9270234 Added ability to provide custom style of context menu to flat labels. 2022-03-01 08:35:05 +03:00
23rd
73ec29fa06 Added clearing of selection on changing of FlatLabel selectability. 2022-02-28 12:33:31 +03:00
23rd
7bd7ada3ff Split qt_adapters to separated files. 2022-01-24 19:29:36 +03:00
23rd
b81b9371e6 Removed TextParseRichText. 2022-01-08 08:24:06 +03:00
Ilya Fedin
64e40913df Use new Qt 6 adapters 2021-10-19 19:28:45 +04:00
Ilya Fedin
534541367c Make enterEventHook accept a QEnterEvent 2021-10-19 17:06:25 +04:00
John Preston
8589a8d850 Try to fix a crash in label click handlers. 2021-09-13 17:38:53 +03:00
Ilya Fedin
b8485c0d8a Fix -Wunused-variable warnings 2021-07-13 21:24:22 +03:00
23rd
fc357ae28f Removed Q_OBJECT from FlatLabel. 2021-05-31 22:54:24 +03:00
23rd
86c1cce260 Replaced QTimer with base::Timer in FlatLabel. 2021-05-31 22:54:24 +03:00
23rd
92fe8b138b Replaced raw PopupMenu pointer with unique_qptr in FlatLabel. 2021-05-31 22:54:24 +03:00
23rd
8c381e6bd4 Replaced singleShot with InvokeQueued in FlatLabel. 2021-05-31 22:54:24 +03:00
23rd
6f097fc571 Removed obsolete ability to fill menu with slots. 2021-01-20 00:20:39 +03:00
Ilya Fedin
cffa5e11d8 Use QClipboard::supportsSelection instead of ifdefs 2020-11-06 08:23:55 +03:00
Ilya Fedin
f749fc7349 Use Q_OS_UNIX instead of Q_OS_LINUX since linux-specific code can be used also on *BSD/Haiku 2020-06-13 16:08:39 +04:00
John Preston
4ef3d2ff9f Fix label crossfade animation. 2019-10-11 19:59:39 +04:00
John Preston
ba1c7d8d31 Fix email links in labels. 2019-09-26 11:05:11 +03:00
John Preston
16adecf500 Improve label cross fade animation. 2019-09-23 21:24:10 +03:00
John Preston
71adf272c5 Use simple QPainter in CrossFadeAnimation. 2019-09-23 16:55:18 +03:00
John Preston
00393b7b3b Correct String::countHeight with breakEverywhere. 2019-09-20 19:30:21 +03:00
John Preston
f4904e5ec4 Add layer and box management. 2019-09-18 14:17:24 +03:00
John Preston
85c83003ca Initial commit. 2019-09-17 17:48:58 +03:00