ref Env namespace for win32/reg stuff / startup toggle
Bigger than usual commit, but all of this had to be done simultaneously
This commit is contained in:
parent
94d2ebf1c2
commit
047808c89f
8 changed files with 293 additions and 103 deletions
|
|
@ -37,7 +37,6 @@ CustomWidgetEvent<T>::CustomWidgetEvent(QEvent::Type type, T payload) : QEvent(t
|
|||
this->payload = payload;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* MeterSlider::MeterSlider(Qt::Orientation orientation, QWidget* parent) {
|
||||
* //style = new MixerStyle();
|
||||
|
|
@ -225,7 +224,7 @@ QRect MainWindow::setSizePosition(QScreen* screen, int width, int height) {
|
|||
QRect availableRes = screen->availableGeometry();
|
||||
int arx1, arx2, ary1, ary2;
|
||||
availableRes.getCoords(&arx1, &ary1, &arx2, &ary2);
|
||||
log_debugcpp("Available res: " + std::to_string(arx1) + " " + std::to_string(arx2)+" " + std::to_string(ary1) + " " + std::to_string(ary2);)
|
||||
log_debugcpp("Available res: " + std::to_string(arx1) + " " + std::to_string(arx2)+" " + std::to_string(ary1) + " " + std::to_string(ary2));
|
||||
|
||||
if(height > (ary2 - ary1)) height = (ary2 - ary1);
|
||||
log_debugcpp("Height res: " + std::to_string(height));
|
||||
|
|
@ -959,11 +958,15 @@ HeaderWidget::HeaderWidget(QWidget *parent) : QWidget(parent) {
|
|||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
text = "&" STRING_STARTUP;
|
||||
startup = new QCheckBox(text, this);
|
||||
//connect(openCP, &QPushButton::clicked, [](){ osh->openControlPanel(); });
|
||||
if(osh->isToRunAtStartup()) {
|
||||
startup->setChecked(true);
|
||||
}
|
||||
connect(startup, &QCheckBox::stateChanged, [this](){
|
||||
osh->setStartupConfig(startup->isChecked());
|
||||
});
|
||||
|
||||
widgetLayout->addWidget(openCP , 0, 0, 2, 2);
|
||||
widgetLayout->addWidget(channels, 0, 2, 1, 2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue