draw instrument
This commit is contained in:
+5
-5
@@ -20,12 +20,12 @@ MainWindow::MainWindow(QWidget *parent)
|
||||
|
||||
nav = new QNavigationWidget(this);
|
||||
|
||||
copk = new Cockpit(this);
|
||||
copk = new Cockpit(this);
|
||||
|
||||
copk->setGeometry(this->width() - copk->width(),0,copk->width(),copk->height());
|
||||
copk->setGeometry(this->width() - copk->width(),0,700,this->height());
|
||||
|
||||
|
||||
nav->setGeometry(0,0,50,this->height());
|
||||
nav->setGeometry(0,0,50,this->height());
|
||||
|
||||
|
||||
nav->setRowHeight(50);
|
||||
@@ -71,7 +71,7 @@ MainWindow::MainWindow(QWidget *parent)
|
||||
map->SetMapType(mapcontrol::Helper::MapTypeFromString("BingSatellite"));
|
||||
map->setGeometry(nav->width(),
|
||||
0,
|
||||
this->width() - nav->width(),
|
||||
this->width() - nav->width() - copk->width(),
|
||||
this->height());
|
||||
|
||||
|
||||
@@ -94,7 +94,7 @@ void MainWindow::resizeEvent(QResizeEvent *e)
|
||||
|
||||
map->setGeometry(nav->width(),
|
||||
0,
|
||||
this->width() - nav->width(),
|
||||
this->width() - nav->width() - copk->width(),
|
||||
this->height());
|
||||
|
||||
update();
|
||||
|
||||
Reference in New Issue
Block a user