summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--RELEASE_NOTES2
-rw-r--r--src/mainwin.cc8
2 files changed, 8 insertions, 2 deletions
diff --git a/RELEASE_NOTES b/RELEASE_NOTES
index 3af3c1a..3e10eec 100644
--- a/RELEASE_NOTES
+++ b/RELEASE_NOTES
@@ -13,6 +13,7 @@ o Strings can now be lexographically compared using the <, <=, >, >= operators
o The version() function will return the OpenSCAD version as a vector, e.g. [2011, 09]
o The version_num() function will return the OpenSCAD version as a number, e.g. 20110923
o Added PI constant.
+o Now uses standard shortcuts for save and reload on Linux and Windows. F2/F3 will still work but is deprecated.
Bugfixes:
o square() crashed if any of the dimensions were zero
@@ -28,6 +29,7 @@ o The file, layer, origin and scale parameters to linear_extrude() and rotate_ex
are now deprecated. Use an import() child instead.
o import_dxf(), import_stl() and import_off() are now deprecated. Use import() instead.
o When exporting geometry from the cmd-line, use the universal -o option. It will export to the correct file format based on the given suffix (dxf, stl, off).
+o F2 and F3 for Save and Reload is now deprecated
OpenSCAD 2011.06
================
diff --git a/src/mainwin.cc b/src/mainwin.cc
index cc30be5..9944f67 100644
--- a/src/mainwin.cc
+++ b/src/mainwin.cc
@@ -218,8 +218,12 @@ MainWindow::MainWindow(const QString &filename)
connect(this->fileActionReload, SIGNAL(triggered()), this, SLOT(actionReload()));
connect(this->fileActionQuit, SIGNAL(triggered()), this, SLOT(quit()));
#ifndef __APPLE__
- this->fileActionSave->setShortcut(QKeySequence(Qt::Key_F2));
- this->fileActionReload->setShortcut(QKeySequence(Qt::Key_F3));
+ QList<QKeySequence> shortcuts = this->fileActionSave->shortcuts();
+ shortcuts.push_back(QKeySequence(Qt::Key_F2));
+ this->fileActionSave->setShortcuts(shortcuts);
+ shortcuts = this->fileActionReload->shortcuts();
+ shortcuts.push_back(QKeySequence(Qt::Key_F3));
+ this->fileActionReload->setShortcuts(shortcuts);
#endif
// Open Recent
for (int i = 0;i<maxRecentFiles; i++) {
contact: Jan Huwald // Impressum