Added catch for slash key, does nothing so far, plan to cycle modes.

merge-requests/1/merge
Elliott Liggett 2019-01-28 15:46:14 -08:00
rodzic f2fc2fbcad
commit a361b330d3
2 zmienionych plików z 13 dodań i 4 usunięć

Wyświetl plik

@ -64,13 +64,14 @@ wfmain::wfmain(QWidget *parent) :
keyF10->setKey(Qt::Key_F10);
connect(keyF10, SIGNAL(activated()), this, SLOT(shortcutF10()));
keyStar = new QShortcut(this);
keyStar->setKey(Qt::Key_Asterisk);
connect(keyStar, SIGNAL(activated()), this, SLOT(shortcutStar()));
keySlash = new QShortcut(this);
keySlash->setKey(Qt::Key_Slash);
connect(keySlash, SIGNAL(activated()), this, SLOT(shortcutSlash()));
setDefaultColors(); // set of UI colors with defaults populated
setDefPrefs(); // other default options
@ -528,6 +529,12 @@ void wfmain::shortcutStar()
ui->freqMhzLineEdit->setFocus();
}
void wfmain::shortcutSlash()
{
// Cycle through available modes
// mode+=1%maxmodes
// TODO
}
void wfmain::getInitialRigState()
{
@ -585,6 +592,7 @@ void wfmain::setAppTheme(bool isDark)
{
if(isDark)
{
// TODO: Take path from preference data
QFile f(":qdarkstyle/style.qss");
if (!f.exists())
{

Wyświetl plik

@ -73,8 +73,8 @@ private slots:
void shortcutF9();
void shortcutF10();
void shortcutStar();
void shortcutSlash();
void handlePttLimit(); // hit at 3 min transmit length
@ -234,6 +234,7 @@ private:
QShortcut *keyStar;
QShortcut *keySlash;
rigCommander * rig;