mirror of
https://github.com/opencv/opencv.git
synced 2025-01-21 00:20:59 +08:00
Qt Ticket #520
This commit is contained in:
parent
4104c3fd0b
commit
411e16074e
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user