From 533d724d1b4380741ce7db91c39262df6c0df062 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 5 Nov 2015 09:32:19 -0800 Subject: Profile: begin untangling from MainWindow Use a signal to turn the toolbar on or off. Signed-off-by: Dirk Hohndel --- profile-widget/profilewidget2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'profile-widget/profilewidget2.cpp') diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp index 653818556..a7105b8ca 100644 --- a/profile-widget/profilewidget2.cpp +++ b/profile-widget/profilewidget2.cpp @@ -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)); -- cgit v1.2.3-70-g09d2