Qt Ticket #520
authorYannick Verdie <no@email>
Tue, 24 Aug 2010 12:23:37 +0000 (12:23 +0000)
committerYannick Verdie <no@email>
Tue, 24 Aug 2010 12:23:37 +0000 (12:23 +0000)
modules/highgui/src/window_QT.cpp

index c061424..2292dad 100755 (executable)
@@ -1686,9 +1686,8 @@ void CvWindow::createShortcuts()
 void CvWindow::createToolBar()\r
 {\r
        myToolBar = new QToolBar(this);\r
-       myToolBar->blockSignals(true);\r
-       //myToolBar->setFloatable(false);//is not a window\r
-       myToolBar->setMaximumHeight(28);\r
+       myToolBar->setFloatable(false);//is not a window\r
+       myToolBar->setFixedHeight(28);\r
 \r
        foreach (QAction *a, vect_QActions)\r
                myToolBar->addAction(a);\r
@@ -1698,9 +1697,16 @@ void CvWindow::createStatusBar()
 {\r
        myStatusBar = new QStatusBar(this);\r
        myStatusBar->setSizeGripEnabled(false);\r
-       myStatusBar->setMaximumHeight(20);\r
+       myStatusBar->setFixedHeight(20);\r
        myStatusBar_msg = new QLabel;\r
-       myStatusBar_msg->setFrameStyle(QFrame::Raised);\r
+\r
+\r
+       //I comment this because if we change the style, myview (the picture)\r
+       //will not be the correct size anymore (will lost 2 pixel because of the borders)\r
+\r
+       //myStatusBar_msg->setFrameStyle(QFrame::Raised);\r
+\r
+\r
        myStatusBar_msg->setAlignment(Qt::AlignHCenter);\r
        myStatusBar->addWidget(myStatusBar_msg);\r
 }\r