Commit 411e1607 authored by Yannick Verdie's avatar Yannick Verdie

Qt Ticket #520

parent 4104c3fd
...@@ -1686,9 +1686,8 @@ void CvWindow::createShortcuts() ...@@ -1686,9 +1686,8 @@ void CvWindow::createShortcuts()
void CvWindow::createToolBar() void CvWindow::createToolBar()
{ {
myToolBar = new QToolBar(this); myToolBar = new QToolBar(this);
myToolBar->blockSignals(true); myToolBar->setFloatable(false);//is not a window
//myToolBar->setFloatable(false);//is not a window myToolBar->setFixedHeight(28);
myToolBar->setMaximumHeight(28);
foreach (QAction *a, vect_QActions) foreach (QAction *a, vect_QActions)
myToolBar->addAction(a); myToolBar->addAction(a);
...@@ -1698,9 +1697,16 @@ void CvWindow::createStatusBar() ...@@ -1698,9 +1697,16 @@ void CvWindow::createStatusBar()
{ {
myStatusBar = new QStatusBar(this); myStatusBar = new QStatusBar(this);
myStatusBar->setSizeGripEnabled(false); myStatusBar->setSizeGripEnabled(false);
myStatusBar->setMaximumHeight(20); myStatusBar->setFixedHeight(20);
myStatusBar_msg = new QLabel; 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_msg->setAlignment(Qt::AlignHCenter);
myStatusBar->addWidget(myStatusBar_msg); myStatusBar->addWidget(myStatusBar_msg);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment