mirror of
https://github.com/Quill-OS/quill.git
synced 2024-10-31 21:33:22 -07:00
Fixed wordsearch options button still showing bug
This commit is contained in:
parent
915a69fdcc
commit
a27ba992eb
1 changed files with 28 additions and 21 deletions
49
reader.cpp
49
reader.cpp
|
@ -98,22 +98,22 @@ reader::reader(QWidget *parent) :
|
||||||
stylesheetFile.close();
|
stylesheetFile.close();
|
||||||
|
|
||||||
ui->sizeValueLabel->setStyleSheet("font-size: 9pt");
|
ui->sizeValueLabel->setStyleSheet("font-size: 9pt");
|
||||||
ui->homeBtn->setStyleSheet("font-size: 9pt");
|
ui->homeBtn->setStyleSheet("font-size: 9pt; padding: 5px");
|
||||||
ui->aboutBtn->setStyleSheet("font-size: 9pt");
|
ui->aboutBtn->setStyleSheet("font-size: 9pt; padding: 5px");
|
||||||
ui->fontChooser->setStyleSheet("font-size: 9pt");
|
ui->fontChooser->setStyleSheet("font-size: 9pt");
|
||||||
|
|
||||||
// Hiding the menubar + definition widget + brightness widget
|
// Hiding the menubar + definition widget + brightness widget
|
||||||
ui->hideOptionsBtn->hide();
|
ui->hideOptionsBtn->hide();
|
||||||
ui->brightnessWidget->hide();
|
ui->brightnessWidget->setVisible(false);
|
||||||
ui->menuBarWidget->hide();
|
ui->menuBarWidget->setVisible(false);
|
||||||
ui->wordWidget->hide();
|
ui->wordWidget->setVisible(false);
|
||||||
if(checkconfig(".config/11-menubar/sticky") == true) {
|
if(checkconfig(".config/11-menubar/sticky") == true) {
|
||||||
ui->spacerWidget->show();
|
ui->spacerWidget->setVisible(true);
|
||||||
ui->statusBarWidget->show();
|
ui->statusBarWidget->setVisible(true);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
ui->spacerWidget->hide();
|
ui->spacerWidget->setVisible(false);
|
||||||
ui->statusBarWidget->hide();
|
ui->statusBarWidget->setVisible(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Getting brightness level
|
// Getting brightness level
|
||||||
|
@ -519,15 +519,15 @@ void reader::menubar_show() {
|
||||||
|
|
||||||
ui->hideOptionsBtn->show();
|
ui->hideOptionsBtn->show();
|
||||||
ui->optionsBtn->hide();
|
ui->optionsBtn->hide();
|
||||||
ui->menuBarWidget->show();
|
ui->menuBarWidget->setVisible(true);
|
||||||
ui->statusBarWidget->show();
|
ui->statusBarWidget->setVisible(true);
|
||||||
|
|
||||||
string_checkconfig("/opt/inkbox_device");
|
string_checkconfig("/opt/inkbox_device");
|
||||||
if(checkconfig_str_val == "n705\n") {
|
if(checkconfig_str_val == "n705\n") {
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
ui->brightnessWidget->show();
|
ui->brightnessWidget->setVisible(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
menubar_shown = true;
|
menubar_shown = true;
|
||||||
|
@ -539,18 +539,18 @@ void reader::menubar_hide() {
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
ui->brightnessWidget->hide();
|
ui->brightnessWidget->setVisible(false);
|
||||||
}
|
}
|
||||||
ui->hideOptionsBtn->hide();
|
ui->hideOptionsBtn->hide();
|
||||||
ui->optionsBtn->show();
|
ui->optionsBtn->show();
|
||||||
ui->menuBarWidget->hide();
|
ui->menuBarWidget->setVisible(false);
|
||||||
if(checkconfig(".config/11-menubar/sticky") == true) {
|
if(checkconfig(".config/11-menubar/sticky") == true) {
|
||||||
ui->spacerWidget->show();
|
ui->spacerWidget->setVisible(true);
|
||||||
ui->statusBarWidget->show();
|
ui->statusBarWidget->setVisible(true);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
ui->spacerWidget->hide();
|
ui->spacerWidget->setVisible(false);
|
||||||
ui->statusBarWidget->hide();
|
ui->statusBarWidget->setVisible(false);
|
||||||
}
|
}
|
||||||
menubar_shown = false;
|
menubar_shown = false;
|
||||||
}
|
}
|
||||||
|
@ -559,16 +559,23 @@ void reader::wordwidget_show() {
|
||||||
if(menubar_shown == true) {
|
if(menubar_shown == true) {
|
||||||
menubar_hide();
|
menubar_hide();
|
||||||
ui->hideOptionsBtn->hide();
|
ui->hideOptionsBtn->hide();
|
||||||
ui->wordWidget->show();
|
ui->optionsBtn->hide();
|
||||||
|
ui->line->hide();
|
||||||
|
ui->wordWidget->setVisible(true);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
ui->hideOptionsBtn->hide();
|
ui->hideOptionsBtn->hide();
|
||||||
ui->wordWidget->show();
|
ui->optionsBtn->hide();
|
||||||
|
ui->line->hide();
|
||||||
|
ui->wordWidget->setVisible(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void reader::wordwidget_hide() {
|
void reader::wordwidget_hide() {
|
||||||
ui->wordWidget->hide();
|
ui->wordWidget->setVisible(false);
|
||||||
|
ui->hideOptionsBtn->hide();
|
||||||
|
ui->optionsBtn->show();
|
||||||
|
ui->line->show();
|
||||||
selected_text_lock = false;
|
selected_text_lock = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue