mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 05:29:54 +08:00
Merge pull request #3850 from piponazo:2.4
This commit is contained in:
commit
c9bb18b9f7
@ -406,13 +406,14 @@ static CvBar* icvFindBarByName(QBoxLayout* layout, QString name_bar, typeBar typ
|
||||
static CvTrackbar* icvFindTrackBarByName(const char* name_trackbar, const char* name_window, QBoxLayout* layout = NULL)
|
||||
{
|
||||
QString nameQt(name_trackbar);
|
||||
QString nameWinQt(name_window);
|
||||
|
||||
if (!name_window && global_control_panel) //window name is null and we have a control panel
|
||||
if (nameWinQt.isEmpty() && global_control_panel) //window name is null and we have a control panel
|
||||
layout = global_control_panel->myLayout;
|
||||
|
||||
if (!layout)
|
||||
{
|
||||
QPointer<CvWindow> w = icvFindWindowByName(QLatin1String(name_window));
|
||||
QPointer<CvWindow> w = icvFindWindowByName(nameWinQt);
|
||||
|
||||
if (!w)
|
||||
CV_Error(CV_StsNullPtr, "NULL window handler");
|
||||
|
Loading…
Reference in New Issue
Block a user