Attempt to move the more frequently used toolbar actions to the top

This is highly dependent on the user, I guess. So I may be totally off
here. But the previous order was pretty much random (and even tried to
push one button in there twice in a row)...

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-01-04 07:30:09 -08:00
parent a308d2b7b4
commit 371c91f5ea

View file

@ -70,10 +70,18 @@ MainWindow::MainWindow() : QMainWindow(),
m_Instance = this;
ui.setupUi(this);
ui.multiFilter->hide();
profileToolbarActions << ui.profCalcAllTissues << ui.profCalcCeiling << ui.profDcCeiling << ui.profEad <<
ui.profHR << ui.profIncrement3m << ui.profMod << ui.profNdl_tts << ui.profNdl_tts <<
ui.profPhe << ui.profPn2 << ui.profPO2 << ui.profRuler << ui.profSAC << ui.profScaled <<
ui.profTogglePicture << ui.profTankbar << ui.profTissues;
// what is a sane order for those icons? we should have the ones the user is
// most likely to want towards the top so they are always visible
// and the ones that someone likely sets and then never touches again towards the bottom
profileToolbarActions << ui.profCalcCeiling << ui.profCalcAllTissues << // start with various ceilings
ui.profIncrement3m << ui.profDcCeiling <<
ui.profPhe << ui.profPn2 << ui.profPO2 << // partial pressure graphs
ui.profRuler << ui.profScaled << // measuring and scaling
ui.profTogglePicture << ui.profTankbar <<
ui.profMod << ui.profNdl_tts << // various values that a user is either interested in or not
ui.profEad << ui.profSAC <<
ui.profHR << // very few dive computers support this
ui.profTissues; // maybe less frequently used
setWindowIcon(QIcon(":subsurface-icon"));
if (!QIcon::hasThemeIcon("window-close")) {
QIcon::setThemeName("subsurface");