From 411e16074e19726bb7f5e9a5c76f26f140b406f2 Mon Sep 17 00:00:00 2001 From: Yannick Verdie Date: Tue, 24 Aug 2010 12:23:37 +0000 Subject: [PATCH] Qt Ticket #520 --- modules/highgui/src/window_QT.cpp | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/modules/highgui/src/window_QT.cpp b/modules/highgui/src/window_QT.cpp index c061424ed1..2292dadd11 100755 --- a/modules/highgui/src/window_QT.cpp +++ b/modules/highgui/src/window_QT.cpp @@ -1686,9 +1686,8 @@ void CvWindow::createShortcuts() void CvWindow::createToolBar() { myToolBar = new QToolBar(this); - myToolBar->blockSignals(true); - //myToolBar->setFloatable(false);//is not a window - myToolBar->setMaximumHeight(28); + myToolBar->setFloatable(false);//is not a window + myToolBar->setFixedHeight(28); foreach (QAction *a, vect_QActions) myToolBar->addAction(a); @@ -1698,9 +1697,16 @@ void CvWindow::createStatusBar() { myStatusBar = new QStatusBar(this); myStatusBar->setSizeGripEnabled(false); - myStatusBar->setMaximumHeight(20); + myStatusBar->setFixedHeight(20); myStatusBar_msg = new QLabel; - myStatusBar_msg->setFrameStyle(QFrame::Raised); + + + //I comment this because if we change the style, myview (the picture) + //will not be the correct size anymore (will lost 2 pixel because of the borders) + + //myStatusBar_msg->setFrameStyle(QFrame::Raised); + + myStatusBar_msg->setAlignment(Qt::AlignHCenter); myStatusBar->addWidget(myStatusBar_msg); }