# HG changeset patch # User Hasan Yavuz Ă–ZDERYA # Date 2016-09-17 11:14:52 # Node ID a0f1ec28dad265f996c3a9373b2be08dd7b72f7a # Parent d4655b060234afc1c9312a2514191e473fbfcad1 enabled Alt-* shortcuts for menu items diff --git a/src/commandpanel.cpp b/src/commandpanel.cpp --- a/src/commandpanel.cpp +++ b/src/commandpanel.cpp @@ -27,7 +27,7 @@ CommandPanel::CommandPanel(QSerialPort* port, QWidget *parent) : QWidget(parent), ui(new Ui::CommandPanel), - _menu(trUtf8("Commands")), _newCommandAction(trUtf8("New Command"), this) + _menu(trUtf8("&Commands")), _newCommandAction(trUtf8("&New Command"), this) { serialPort = port; diff --git a/src/mainwindow.ui b/src/mainwindow.ui --- a/src/mainwindow.ui +++ b/src/mainwindow.ui @@ -90,12 +90,12 @@ 0 0 653 - 20 + 27 - Help + &Help @@ -103,7 +103,7 @@ - File + &File @@ -113,7 +113,7 @@ - View + &View @@ -161,7 +161,7 @@ - About + &About @@ -169,7 +169,7 @@ true - Demo Mode + &Demo Mode Toggle Demo Mode @@ -177,7 +177,7 @@ - Export CSV + &Export CSV Export plot data to CSV @@ -185,7 +185,7 @@ - Quit + &Quit Ctrl+Q @@ -193,7 +193,7 @@ - Report a Bug + &Report a Bug Report a Bug on SerialPlot Website @@ -201,7 +201,7 @@ - Save Settings + &Save Settings Save Settings to a File @@ -209,7 +209,7 @@ - Load Settings + &Load Settings Load Settings from a File diff --git a/src/plotmanager.cpp b/src/plotmanager.cpp --- a/src/plotmanager.cpp +++ b/src/plotmanager.cpp @@ -27,12 +27,12 @@ PlotManager::PlotManager(QWidget* plotArea, QObject *parent) : QObject(parent), _plotArea(plotArea), - showGridAction("Grid", this), - showMinorGridAction("Minor Grid", this), - unzoomAction("Unzoom", this), - darkBackgroundAction("Dark Background", this), - showLegendAction("Legend", this), - showMultiAction("Multi Plot", this) + showGridAction("&Grid", this), + showMinorGridAction("&Minor Grid", this), + unzoomAction("&Unzoom", this), + darkBackgroundAction("&Dark Background", this), + showLegendAction("&Legend", this), + showMultiAction("Multi &Plot", this) { _autoScaled = true; _yMin = 0; diff --git a/src/snapshotmanager.cpp b/src/snapshotmanager.cpp --- a/src/snapshotmanager.cpp +++ b/src/snapshotmanager.cpp @@ -30,10 +30,10 @@ SnapshotManager::SnapshotManager(QMainWindow* mainWindow, ChannelManager* channelMan) : - _menu("Snapshots"), - _takeSnapshotAction("Take Snapshot", this), - loadSnapshotAction("Load Snapshots", this), - clearAction("Clear Snapshots", this) + _menu("&Snapshots"), + _takeSnapshotAction("&Take Snapshot", this), + loadSnapshotAction("&Load Snapshots", this), + clearAction("&Clear Snapshots", this) { _mainWindow = mainWindow; _channelMan = channelMan;