Fixes for VNC and virtual keyboard

This commit is contained in:
Nicolas Mailloux 2021-07-06 10:04:28 -04:00
parent 87e133b8d6
commit b0b5f9cdaa
2 changed files with 15 additions and 1 deletions

View file

@ -161,6 +161,11 @@ void generalDialog::on_cancelBtn_clicked()
global::keyboard::keyboardDialog = false;
global::keyboard::keyboardText = "";
}
else if(global::keyboard::vncDialog == true) {
global::keyboard::vncDialog = false;
global::keyboard::keyboardDialog = false;
global::keyboard::keyboardText = "";
}
generalDialog::close();
}
}
@ -348,6 +353,6 @@ void generalDialog::startVNC(QString server, QString password, QString port) {
string_writeconfig("/external_root/tmp/app_vnc_server", server_str);
string_writeconfig("/external_root/tmp/app_vnc_password", password_str);
string_writeconfig("/external_root/tmp/app_vnc_port", port_str);
string_writeconfig("/opt/ibxd", "app_start_vnc");
string_writeconfig("/opt/ibxd", "app_start_vnc\n");
qApp->quit();
}

View file

@ -99,6 +99,15 @@ virtualkeyboard::virtualkeyboard(QWidget *parent) :
ui->spaceBtn->setStyleSheet("font-weight: bold; font-size: 9pt; padding: 10px; border: 1px solid black");
ui->lineEdit->setStyleSheet("border: 3px solid black");
if(global::keyboard::vncDialog == true) {
ui->lineEdit->setFont(QFont("Noto Mono"));
}
else if(global::keyboard::searchDialog == true){
ui->lineEdit->setFont(QFont("Source Serif Pro"));
}
else {
ui->lineEdit->setFont(QFont("Roboto"));
}
}
virtualkeyboard::~virtualkeyboard()