[Spreadsheet] add tooltip for alias line edit. Also, per user request, make it so when creating a new spreadsheet it is open for viewing/editing

This commit is contained in:
mwganson
2020-03-12 18:18:48 -05:00
committed by wwmayer
parent e2e0018df6
commit f6f80256c8
2 changed files with 6 additions and 0 deletions

View File

@@ -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();
}

View File

@@ -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>