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
{\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