mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Profile: begin untangling from MainWindow
Use a signal to turn the toolbar on or off. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
fcf47552c6
commit
533d724d1b
3 changed files with 6 additions and 2 deletions
|
@ -919,7 +919,7 @@ void ProfileWidget2::setEmptyState()
|
|||
setBackgroundBrush(getColor(::BACKGROUND, isGrayscale));
|
||||
dataModel->clear();
|
||||
currentState = EMPTY;
|
||||
MainWindow::instance()->setEnabledToolbar(false);
|
||||
emit enableToolbar(false);
|
||||
|
||||
fixBackgroundPos();
|
||||
background->setVisible(true);
|
||||
|
@ -974,7 +974,7 @@ void ProfileWidget2::setProfileState()
|
|||
MainWindow::instance()->enableShortcuts();
|
||||
|
||||
currentState = PROFILE;
|
||||
MainWindow::instance()->setEnabledToolbar(true);
|
||||
emit enableToolbar(true);
|
||||
toolTipItem->readPos();
|
||||
setBackgroundBrush(getColor(::BACKGROUND, isGrayscale));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue