Merge pull request #5570 from paroj:qsliderfix
This commit is contained in:
commit
c3eb1254cf
@ -664,7 +664,7 @@ CV_IMPL void cvSetTrackbarMax(const char* name_bar, const char* window_name, int
|
|||||||
QPointer<CvTrackbar> t = icvFindTrackBarByName(name_bar, window_name);
|
QPointer<CvTrackbar> t = icvFindTrackBarByName(name_bar, window_name);
|
||||||
if (t)
|
if (t)
|
||||||
{
|
{
|
||||||
int minval = t->slider->getMinimum();
|
int minval = t->slider->minimum();
|
||||||
maxval = (maxval>minval)?maxval:minval;
|
maxval = (maxval>minval)?maxval:minval;
|
||||||
t->slider->setMaximum(maxval);
|
t->slider->setMaximum(maxval);
|
||||||
}
|
}
|
||||||
@ -679,7 +679,7 @@ CV_IMPL void cvSetTrackbarMin(const char* name_bar, const char* window_name, int
|
|||||||
QPointer<CvTrackbar> t = icvFindTrackBarByName(name_bar, window_name);
|
QPointer<CvTrackbar> t = icvFindTrackBarByName(name_bar, window_name);
|
||||||
if (t)
|
if (t)
|
||||||
{
|
{
|
||||||
int maxval = t->slider->getMaximum();
|
int maxval = t->slider->maximum();
|
||||||
minval = (maxval<minval)?maxval:minval;
|
minval = (maxval<minval)?maxval:minval;
|
||||||
t->slider->setMinimum(minval);
|
t->slider->setMinimum(minval);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user