New functions with QT GUI:

Fixed memory leak
Disable QT by default
This commit is contained in:
Yannick Verdie 2010-06-20 08:44:19 +00:00
parent c007b60b25
commit bd643ad550
2 changed files with 9 additions and 1 deletions

View File

@ -496,7 +496,7 @@ endif()
############################### QT ################################
set(HAVE_QT 0)
set(HAVE_QT_OPENGL 0)
set(AUTOSWITCH_QT 1)#uses to disable QT
set(AUTOSWITCH_QT 0)#uses to disable QT
find_package(Qt4)# QUIET)
if (QT4_FOUND AND AUTOSWITCH_QT)

View File

@ -780,7 +780,15 @@ CvWindow::~CvWindow()
delete layout;
}
delete shortcutZ;
delete shortcutPlus;
delete shortcutMinus;
delete shortcutLeft;
delete shortcutRight;
delete shortcutUp;
delete shortcutDown;
}
void CvWindow::displayInfo(QString text,int delayms)