Changeset - 6df12181783c
[Not reviewed]
default
0 1 0
Hasan Yavuz Ă–ZDERYA - 10 years ago 2015-09-02 00:48:25
hy@ozderya.net
add shortcut (F2) and tooltip for openAction
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
portcontrol.cpp
Show inline comments
 
@@ -21,6 +21,7 @@
 
#include "ui_portcontrol.h"
 

	
 
#include <QSerialPortInfo>
 
#include <QKeySequence>
 
#include <QtDebug>
 
#include "utils.h"
 

	
 
@@ -36,6 +37,8 @@ PortControl::PortControl(QSerialPort* po
 

	
 
    // setup the toolbar
 
    openAction.setCheckable(true);
 
    openAction.setShortcut(QKeySequence("F2"));
 
    openAction.setToolTip("Open Port (F2)");
 
    QObject::connect(&openAction, &QAction::triggered,
 
                     this, &PortControl::openActionTriggered);
 
    portToolBar.addAction(&openAction);
0 comments (0 inline, 0 general)