Added attribute to show tooltips even when the window is unfocused. (#684)

This commit is contained in:
juuz0 2021-09-01 14:42:40 +05:30 committed by GitHub
parent a66618c690
commit 3b48cb9e32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,6 +17,7 @@ MainWindow::MainWindow(QWidget *parent) :
mp_about(new About(this)), mp_about(new About(this)),
mp_localKiwixServer(new LocalKiwixServer(this)) mp_localKiwixServer(new LocalKiwixServer(this))
{ {
QWidget::setAttribute(Qt::WA_AlwaysShowToolTips);
mp_ui->setupUi(this); mp_ui->setupUi(this);
mp_ui->tabBar->setExpanding(false); mp_ui->tabBar->setExpanding(false);
mp_ui->tabBar->setStackedWidget(mp_ui->mainView); mp_ui->tabBar->setStackedWidget(mp_ui->mainView);