mirror of
https://github.com/Quill-OS/quill.git
synced 2024-12-26 23:57:22 -08:00
reader.cpp
: Fix highlight button popup not displaying at selection end
This commit is contained in:
parent
fde106cbaf
commit
cc6715f0a2
1 changed files with 5 additions and 8 deletions
|
@ -127,11 +127,6 @@ reader::reader(QWidget *parent) :
|
||||||
ui->line_19->deleteLater();
|
ui->line_19->deleteLater();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!(global::deviceID == "n705\n" or global::deviceID == "n905\n" or global::deviceID == "kt\n")) {
|
|
||||||
ui->brightnessBtn->setVisible(true);
|
|
||||||
ui->line_15->setVisible(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Style misc.
|
// Style misc.
|
||||||
ui->bookInfoLabel->setStyleSheet("font-style: italic");
|
ui->bookInfoLabel->setStyleSheet("font-style: italic");
|
||||||
|
|
||||||
|
@ -315,8 +310,10 @@ reader::reader(QWidget *parent) :
|
||||||
|
|
||||||
// Hiding the menubar + definition widget + brightness button + buttons bar widget
|
// Hiding the menubar + definition widget + brightness button + buttons bar widget
|
||||||
ui->menuWidget->setVisible(false);
|
ui->menuWidget->setVisible(false);
|
||||||
ui->brightnessBtn->setVisible(false);
|
if(!(global::deviceID == "n705\n" or global::deviceID == "n905\n" or global::deviceID == "kt\n")) {
|
||||||
ui->line_15->setVisible(false);
|
ui->brightnessBtn->setVisible(true);
|
||||||
|
ui->line_15->setVisible(true);
|
||||||
|
}
|
||||||
ui->menuBarWidget->setVisible(false);
|
ui->menuBarWidget->setVisible(false);
|
||||||
ui->buttonsBarWidget->setVisible(false);
|
ui->buttonsBarWidget->setVisible(false);
|
||||||
ui->pdfScaleWidget->setVisible(false);
|
ui->pdfScaleWidget->setVisible(false);
|
||||||
|
@ -1753,7 +1750,7 @@ void reader::on_text_selectionChanged() {
|
||||||
QObject::connect(textDialogWindow, &textDialog::unhighlightText, this, &reader::unhighlightText);
|
QObject::connect(textDialogWindow, &textDialog::unhighlightText, this, &reader::unhighlightText);
|
||||||
textDialogWindow->setAttribute(Qt::WA_DeleteOnClose);
|
textDialogWindow->setAttribute(Qt::WA_DeleteOnClose);
|
||||||
textDialogWindow->setWindowFlags(Qt::FramelessWindowHint | Qt::Popup);
|
textDialogWindow->setWindowFlags(Qt::FramelessWindowHint | Qt::Popup);
|
||||||
textDialogWindow->move(mapFromGlobal(QCursor::pos()));
|
textDialogWindow->move(mapFromGlobal(ui->text->cursorRect().bottomRight()));
|
||||||
textDialogWindow->show();
|
textDialogWindow->show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue