mirror of
https://github.com/Quill-OS/quill.git
synced 2024-12-27 16:17:21 -08:00
N437: Wi-Fi improvements + Increase virtual keyboard size
This commit is contained in:
parent
056d67e5a6
commit
30c71a954a
2 changed files with 52 additions and 1 deletions
|
@ -935,7 +935,13 @@ bool MainWindow::checkWifiState() {
|
||||||
* true: interface UP
|
* true: interface UP
|
||||||
* false: interface DOWN
|
* false: interface DOWN
|
||||||
*/
|
*/
|
||||||
string_checkconfig_ro("/sys/class/net/eth0/operstate");
|
if(readFile("/opt/inkbox_device") == "n437\n") {
|
||||||
|
string_checkconfig_ro("/sys/class/net/wlan0/operstate");
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
string_checkconfig_ro("/sys/class/net/eth0/operstate");
|
||||||
|
}
|
||||||
|
|
||||||
if(checkconfig_str_val == "up\n") {
|
if(checkconfig_str_val == "up\n") {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -100,6 +100,51 @@ virtualkeyboard::virtualkeyboard(QWidget *parent) :
|
||||||
ui->sat->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 27px");
|
ui->sat->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 27px");
|
||||||
ui->spaceBtn->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 15px; border: 1px solid black");
|
ui->spaceBtn->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 15px; border: 1px solid black");
|
||||||
}
|
}
|
||||||
|
else if(checkconfig_str_val == "n437\n") {
|
||||||
|
ui->n1->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 20px");
|
||||||
|
ui->n2->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 20px");
|
||||||
|
ui->n3->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 20px");
|
||||||
|
ui->n4->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 20px");
|
||||||
|
ui->n5->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 20px");
|
||||||
|
ui->n6->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 20px");
|
||||||
|
ui->n7->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 20px");
|
||||||
|
ui->n8->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 20px");
|
||||||
|
ui->n9->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 20px");
|
||||||
|
ui->n0->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 20px");
|
||||||
|
|
||||||
|
ui->la->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 20px");
|
||||||
|
ui->lb->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 20px");
|
||||||
|
ui->lc->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 20px");
|
||||||
|
ui->ld->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 20px");
|
||||||
|
ui->le->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 20px");
|
||||||
|
ui->lf->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 20px");
|
||||||
|
ui->lg->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 20px");
|
||||||
|
ui->lh->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 20px");
|
||||||
|
ui->li->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 20px");
|
||||||
|
ui->lj->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 20px");
|
||||||
|
ui->lk->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 20px");
|
||||||
|
ui->ll->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 20px");
|
||||||
|
ui->lm->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 20px");
|
||||||
|
ui->ln->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 20px");
|
||||||
|
ui->lo->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 20px");
|
||||||
|
ui->lp->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 20px");
|
||||||
|
ui->lq->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 20px");
|
||||||
|
ui->lr->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 20px");
|
||||||
|
ui->ls->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 20px");
|
||||||
|
ui->lt->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 20px");
|
||||||
|
ui->lu->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 20px");
|
||||||
|
ui->lv->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 20px");
|
||||||
|
ui->lw->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 20px");
|
||||||
|
ui->lx->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 20px");
|
||||||
|
ui->ly->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 20px");
|
||||||
|
ui->lz->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 20px");
|
||||||
|
|
||||||
|
ui->eraseBtn->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 20px");
|
||||||
|
ui->shiftBtn->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 20px");
|
||||||
|
ui->spt->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 20px");
|
||||||
|
ui->sat->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 20px");
|
||||||
|
ui->spaceBtn->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 15px; border: 1px solid black");
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
ui->n1->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
ui->n1->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||||
ui->n2->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
ui->n2->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 13px");
|
||||||
|
|
Loading…
Reference in a new issue