kopia lustrzana https://gitlab.com/eliggett/wfview
Added catch for slash key, does nothing so far, plan to cycle modes.
rodzic
f2fc2fbcad
commit
a361b330d3
14
wfmain.cpp
14
wfmain.cpp
|
@ -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())
|
||||
{
|
||||
|
|
3
wfmain.h
3
wfmain.h
|
@ -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;
|
||||
|
|
Ładowanie…
Reference in New Issue