View Issue Details

IDProjectCategoryView StatusLast Update
0026763PatchesWidgetsetpublic2014-09-24 11:27
ReporterG. Colla Assigned ToZeljan Rikalo  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.3 (SVN) 
Target Version1.2.6Fixed in Version1.3 (SVN) 
Summary0026763: TTrackBar in Qt WS doesn't consider LineSize
DescriptionWhatever value is given to TTrackBar.LineSize, the increment and decrement with left/right or up/down arrows is always of one unit.

The reason is that QtTrackBar.setSingleStep is never called. The attached patch fixes the bug.

Steps To ReproducePut a TTrackbar in a form, set LineSize to a value > 1, use arrows and verify that steps are always of one unit.
Tagspatch
Fixed in Revision46305
LazTarget1.2.6
WidgetsetQT
Attached Files

Activities

G. Colla

2014-09-23 13:28

developer  

Trackbar.patch (591 bytes)   
Index: qtwscomctrls.pp
===================================================================
--- qtwscomctrls.pp	(revisione 46299)
+++ qtwscomctrls.pp	(copia locale)
@@ -358,6 +358,8 @@
 
     if QtTrackBar.getPageStep <> ATrackBar.PageSize then
       QtTrackBar.setPageStep(ATrackBar.PageSize);
+    if QtTrackBar.getSingleStep <> ATrackBar.LineSize then
+      QtTrackBar.setSingleStep(ATrackBar.LineSize);
     if QtTrackBar.getTickInterval <> ATrackBar.Frequency then
       QtTrackBar.setTickInterval(ATrackBar.Frequency);
     if QtTrackBar.getSliderPosition <> ATrackBar.Position then
Trackbar.patch (591 bytes)   

Zeljan Rikalo

2014-09-24 07:34

developer   ~0077575

Thanks for the patch.Please test and close if ok.

G. Colla

2014-09-24 11:27

developer   ~0077587

Verified. Now it's OK.
Thanks

Issue History

Date Modified Username Field Change
2014-09-23 13:28 G. Colla New Issue
2014-09-23 13:28 G. Colla File Added: Trackbar.patch
2014-09-23 13:44 Mike Thompson Tag Attached: patch
2014-09-24 07:25 Zeljan Rikalo Assigned To => Zeljan Rikalo
2014-09-24 07:25 Zeljan Rikalo Status new => assigned
2014-09-24 07:34 Zeljan Rikalo Fixed in Revision => 46305
2014-09-24 07:34 Zeljan Rikalo LazTarget => 1.2.6
2014-09-24 07:34 Zeljan Rikalo Note Added: 0077575
2014-09-24 07:34 Zeljan Rikalo Status assigned => resolved
2014-09-24 07:34 Zeljan Rikalo Fixed in Version => 1.3 (SVN)
2014-09-24 07:34 Zeljan Rikalo Resolution open => fixed
2014-09-24 07:34 Zeljan Rikalo Target Version => 1.2.6
2014-09-24 11:27 G. Colla Note Added: 0077587
2014-09-24 11:27 G. Colla Status resolved => closed