Commit Graph

76 Commits

Author SHA1 Message Date
Željan Rikalo
d313b376bc Qt5,Qt6: must check if handle is valid.
(cherry picked from commit 5df0a8f05a)

Co-authored-by: zeljan1 <zeljko@holobit.hr>
2025-02-15 11:44:23 +00:00
Željan Rikalo
1d3028abc6 Qt5,Qt6: use floating point functions for primitives drawing on scaled displays. issue #41422
(cherry-picked from commit 683afd5cbb)

Co-authored-by: zeljan1 <zeljko@holobit.hr>
2025-02-11 13:53:37 +00:00
Željan Rikalo
342f30c518 Qt5, Qt6: Fixed TQtWidgetSet.SetActiveWindow and TQtWidgetSet.SetForegroundWindow behaviour. issue #41251, issue #41252
(cherry picked from commit d80a9519cb)

Co-authored-by: Željan Rikalo <zeljko@lazarus-ide.org>
2024-11-21 16:08:00 +00:00
Željan Rikalo
40e9db325a Qt5,Qt6: fixed restoring secondary minimized window. issue #40243
(cherry picked from commit 107d8dbeae)

Co-authored-by: Željan Rikalo <zeljko@lazarus-ide.org>
2024-11-20 12:19:01 +00:00
Željan Rikalo
91fe3cc4bc Qt5, Qt6: removed unused code. 2024-10-03 11:46:56 +02:00
Željan Rikalo
f528ace9dc Qt5, Qt6: simplified code, use GetTextExtentExPoint from lclintf implementation. 2024-10-02 13:05:27 +02:00
Željan Rikalo
720fc1261d Qt5, Qt6: Initialize MaxCount in GetTextExtentInfo().Patch by Alexander Koblov. issue #40934 2024-04-30 15:08:03 +02:00
Željan Rikalo
42ad212654 Qt,Qt5,Qt6: Fixed LpToDp() result. issue #40817 2024-03-05 15:37:57 +01:00
Maxim Ganetsky
f0eb9b849d IDE, LCL: Lazarus help output refactoring by n7800, issue #40690:
1. The text has been slightly corrected and made more uniform.
2. The parameters are sorted in some logical order, starting with the more "global" ones. A long list of values for debugging is located at the end. Now all parameters are visible at once, without scrolling.
3. Indentations fixed.
4. The list of values for the --skip-checks parameter is listed in a column, similar to the values for the --debug-enable parameter. This is easier to read and does not create a very long line, which is visible in the screenshot.
5. The "LCL Interface specific options:" header is displayed only if such parameters exist.
6. Changed max line length to a more standard 80.
7. Help output has been moved in a nested function.
8. Removed unused code.
2024-01-20 05:04:42 +03:00
Željan Rikalo
eb41784ad0 Qt5,Qt6: fixed memleak in enumfontfamiliesex() 2024-01-08 08:27:29 +01:00
Željan Rikalo
92b006ccaa Qt5,Qt6: Small optimization by avoid deep copy when using QImage::bits(), better use const overload QImage::constBits(). 2023-09-17 18:47:13 +02:00
Željan Rikalo
e73c702be2 Qt5,Qt6: fix possible wrong result of TQtWidgetSet.GetTextExtentPoint(). 2023-08-29 23:41:13 +02:00
Željan Rikalo
e554d21707 Qt5: cleanup of TQtWidgetSet.GetTextMetrics(). 2023-08-29 15:36:22 +02:00
Željan Rikalo
88afd66312 Qt5,Qt6: significant improvenment of TQtWidgetSet.GetTextExtentExPoint(), also corrected Size.cx in some cases. Returned results are now equal to win32 on windows, but also gtk2 on linux. 2023-08-29 15:11:15 +02:00
Željan Rikalo
f27a50f74e Qt5: improve string conversions by removing unneeded GetUtf8Str internal function. 2023-08-25 19:49:26 +02:00
zeljan1
0878535faa Qt,Qt5,Qt6: Fixed result of TQtWidgetSet.DrawFrameControl. Issue #40380 2023-07-27 19:10:27 +02:00
Juha
be92e362e8 LCL-QT[56]: Clean and optimise function TQtWidgetSet.EnumDisplayMonitors(). By lagprogramming. 2023-07-13 12:06:03 +03:00
Juha
211d95da17 LCL: Use TLCLHandle instead of a redefined LCLType.THandle or TLCLIntfHandle. Deprecate them. 2023-07-03 11:17:01 +03:00
Juha
c3891ad820 Reduce compiler warnings. 2023-07-03 06:23:49 +03:00
Željan Rikalo
00a23612bf Qt5, Qt6: fixed Ellipse() drawing with pen width > 1. issue #40208 2023-04-17 11:45:06 +02:00
Željan Rikalo
77f502b2c3 Qt,Qt5,Qt6: Fixed drawing line with pattern pen. issue #40165 2023-03-14 17:50:05 +01:00
Željan Rikalo
317b0691ca Qt5: added read only property MenuBar, renamed GetMenuBar to MenuBarNeeded 2023-02-01 16:26:09 +01:00
Željan Rikalo
99c433c0ee Qt5: fixed clientrect size of TCustomForm with main menu. Patch by rich2014, small modification by me. 2023-02-01 16:09:55 +01:00
Željan Rikalo
e41c66e9f4 Qt5: completelly reworked menubar. Now it's created on demand. 2023-01-30 18:22:46 +01:00
Željan Rikalo
41006a9e7f Qt5: fixed invalid dialog title and caption. issue #40027 2022-12-02 23:45:31 +01:00
Željan Rikalo
32e5d2b8ae Qt5: code simplified. Patch by Alexey Torgashin 2022-11-11 20:34:02 +01:00
zeljan1
8d55bd36cc Qt5: fixed font weight values according to Qt5 specs. 2022-11-11 13:34:17 +01:00
Željan Rikalo
3a8bac2cfd Qt5: fixed Ellipse() drawing. issue #39987 2022-11-06 12:16:18 +01:00
Željan Rikalo
7568b05082 Qt5: fixed crash when calling stretchBlt() on invisible form. issue #39780 2022-06-14 10:05:20 +02:00
Sergey Larin
61f292751a QT5: fixed uninitialized Result when getting WheelScrollLines 2022-02-20 10:13:46 +03:00
Juha
75aebbee85 LCL: Consider that MemSize can return 0 with a custom MemoryManager. Merge request !27 by Sergey Larin. 2021-10-28 11:23:36 +03:00
Željan Rikalo
9057aece81 Qt,Qt5: fixed system mouse lock when TCustomControl is double clicked. issue #27384 2021-10-15 17:17:57 +02:00
Željan Rikalo
c822e57876 Qt,Qt5: fixed radialPie paint with antialiasing. issue #39416 2021-10-11 11:38:04 +02:00
Željan Rikalo
e42dfcff56 Qt5: fixed typo. 2021-10-07 00:16:48 +02:00
Željan Rikalo
26930d85c6 Qt,Qt5: fixed antialiased paint of ellipse and poylgon. issue #35568 , issue #39416 2021-10-06 19:57:32 +02:00
Željan Rikalo
e8317fb534 Qt,Qt5: fixed problem with drawing primitives when antialiasing enabled. issue #39416 2021-10-06 11:37:19 +02:00
zeljko
0023eaced0 Qt,Qt5: allow usage of html formatted text in dialogs via define.
git-svn-id: trunk@64982 -
2021-04-13 11:41:26 +00:00
zeljko
5d132a7330 Qt,Qt5: fixed html text escaping - message boxes should be plain text. issue #37805
git-svn-id: trunk@63918 -
2020-09-24 08:46:27 +00:00
juha
933a4c9f98 LCL-Qt5/Qt4: Show correct icon in MessageBox. Issue #37270, patch from CudaText man.
git-svn-id: trunk@63724 -
2020-08-11 22:57:14 +00:00
zeljko
bf01889663 Qt5: removed -dQtUseAccurateFrame related code. This define does nothing anymore since window frame size is fixed.
git-svn-id: trunk@63041 -
2020-04-21 10:01:14 +00:00
zeljko
a9b7415541 Qt,Qt5: fixed accurate frame for qt/qt5 on mswindows. issue #36897
git-svn-id: trunk@62987 -
2020-04-15 12:25:43 +00:00
zeljko
f89e0d732b Qt,Qt5: implemented MonitorFromPoint(), MonitorFromRect() and MonitorFromWindow(). issue #36913
git-svn-id: trunk@62979 -
2020-04-14 16:34:50 +00:00
zeljko
4d84a5fe1d Qt,Qt5: accurate frame fails because of IsRectEmpty(). issue #36897
git-svn-id: trunk@62977 -
2020-04-14 15:16:05 +00:00
zeljko
8e657a460b LCL: lclstrconsts added rsqtOptionDisableAccurateFrame for -disableaccurateframe in qt/qt5
Qt/Qt5: added rsqtOptionDisableAccurateFrame in GetCommandLineOptions

git-svn-id: trunk@62975 -
2020-04-14 13:23:46 +00:00
zeljko
93a6164805 Qt5: now we have accurate window dimensions under x11 - we use dummy widget approach. issue #36897
git-svn-id: trunk@62970 -
2020-04-14 12:48:21 +00:00
zeljko
28cdfdfe8f Qt5: fixed SPI_GETWORKAREA result - it must be available geometry of primary screen. related to issue #36913
git-svn-id: trunk@62963 -
2020-04-14 09:26:39 +00:00
zeljko
e7fe8688e3 Qt,Qt5: simplified StretchMaskBlt()
git-svn-id: trunk@62920 -
2020-04-09 10:01:50 +00:00
zeljko
2d38d5077d Qt5: scale unclipped if sizes are different
git-svn-id: trunk@62919 -
2020-04-09 09:49:40 +00:00
zeljko
274cab383e Qt5: fix mask size if exceeds destination pixmap
git-svn-id: trunk@62913 -
2020-04-08 12:11:47 +00:00
zeljko
9e38dc5e85 Qt,Qt5: fixed result of StretchMaskBlt()
git-svn-id: trunk@62905 -
2020-04-07 16:00:08 +00:00