Skip to content

Commit

Permalink
[Spreadsheet] add tooltip for alias line edit. Also, per user request…
Browse files Browse the repository at this point in the history
…, make it so when creating a new spreadsheet it is open for viewing/editing
  • Loading branch information
mwganson authored and wwmayer committed Mar 13, 2020
1 parent 1ee2c4d commit 973caf9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Mod/Spreadsheet/Gui/Command.cpp
Expand Up @@ -868,6 +868,8 @@ void CmdCreateSpreadsheet::activated(int iMsg)

openCommand("Create Spreadsheet");
doCommand(Doc,"App.activeDocument().addObject('Spreadsheet::Sheet','%s\')",FeatName.c_str());
doCommand(Gui,"Gui.Selection.clearSelection()\n");
doCommand(Gui,"Gui.Selection.addSelection(App.activeDocument().Name,'%s\')",FeatName.c_str());
commitCommand();
}

Expand Down
4 changes: 4 additions & 0 deletions src/Mod/Spreadsheet/Gui/Sheet.ui
Expand Up @@ -48,6 +48,10 @@
<property name="enabled">
<bool>false</bool>
</property>
<property name="toolTip">
<string>Refer to cell by alias, for example\n Spreadsheet.my_alias_name instead of Spreadsheet.B1
</string>
</property>
</widget>
</item>
</layout>
Expand Down

0 comments on commit 973caf9

Please sign in to comment.