mirror of
https://github.com/leozide/leocad
synced 2024-12-27 21:58:37 +01:00
Flag initial view as active.
This commit is contained in:
parent
c0759c226d
commit
ced7e21d38
1 changed files with 3 additions and 1 deletions
|
@ -75,9 +75,11 @@ void lcMainWindow::CreateWidgets()
|
|||
QGridLayout* CentralLayout = new QGridLayout(CentralFrame);
|
||||
CentralLayout->setContentsMargins(0, 0, 0, 0);
|
||||
|
||||
QWidget* ViewWidget = new lcQGLWidget(CentralFrame, mPiecePreviewWidget, new View(NULL), true);
|
||||
View* NewView = new View(NULL);
|
||||
QWidget* ViewWidget = new lcQGLWidget(CentralFrame, mPiecePreviewWidget, NewView, true);
|
||||
CentralLayout->addWidget(ViewWidget, 0, 0, 1, 1);
|
||||
ViewWidget->setFocus();
|
||||
SetActiveView(NewView);
|
||||
|
||||
connect(QApplication::clipboard(), SIGNAL(dataChanged()), this, SLOT(ClipboardChanged()));
|
||||
ClipboardChanged();
|
||||
|
|
Loading…
Reference in a new issue