summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-08-22 22:26:07 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-08-23 08:09:11 -0700
commit9acf1caca3370f3e7eaf53c88e5419a62c07e4cb (patch)
treee7a4635c1ee338e97854b86aa5bd73ea8aecb1ae /qt-ui/profile
parentfe9e67bfaf250aecc17de437668fddfecd7e9b23 (diff)
downloadsubsurface-9acf1caca3370f3e7eaf53c88e5419a62c07e4cb.tar.gz
A much better Toolbar for the profile.
Using QToolBar I was able to remove much of the dead code from the mainwindow.ui xml file by transforming the QToolButtons into actions and loading them dynamically in the .cpp code. I couldn't use the designer for this ( as I wanted ) because Qt has no notion of ToolBars outside of the areas where the MainWindow should have one, and we use it in a very different area. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile')
-rw-r--r--qt-ui/profile/profilewidget2.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp
index bd51b3310..fcad3197f 100644
--- a/qt-ui/profile/profilewidget2.cpp
+++ b/qt-ui/profile/profilewidget2.cpp
@@ -740,7 +740,7 @@ void ProfileWidget2::setEmptyState()
setBackgroundBrush(getColor(::BACKGROUND, isGrayscale));
dataModel->clear();
currentState = EMPTY;
- MainWindow::instance()->setToolButtonsEnabled(false);
+ MainWindow::instance()->setEnabledToolbar(false);
fixBackgroundPos();
background->setVisible(true);
@@ -788,7 +788,7 @@ void ProfileWidget2::setProfileState()
MainWindow::instance()->enableDcShortcuts();
currentState = PROFILE;
- MainWindow::instance()->setToolButtonsEnabled(true);
+ MainWindow::instance()->setEnabledToolbar(true);
toolTipItem->readPos();
setBackgroundBrush(getColor(::BACKGROUND, isGrayscale));