ui: fixed tooltips were not resizing if app font size was changed on windows
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
QToolTip {
|
||||
background-color: #E0E0E0;
|
||||
color: black;
|
||||
font-size: <setting:font_size>px;
|
||||
}
|
||||
|
||||
QPushButton {
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include <QSettings>
|
||||
#include <QTimer>
|
||||
#include <QToolBar>
|
||||
#include <QToolTip>
|
||||
|
||||
#include "Application.h"
|
||||
#include "CompositeView.h"
|
||||
@@ -482,6 +483,10 @@ void QtMainWindow::setContentEnabled(bool enabled)
|
||||
void QtMainWindow::refreshStyle()
|
||||
{
|
||||
setStyleSheet(utility::getStyleSheet(ResourcePaths::getGuiPath().concatenate(L"main/main.css")).c_str());
|
||||
|
||||
QFont tooltipFont = QToolTip::font();
|
||||
tooltipFont.setPixelSize(ApplicationSettings::getInstance()->getFontSize());
|
||||
QToolTip::setFont(tooltipFont);
|
||||
}
|
||||
|
||||
void QtMainWindow::setWindowsTaskbarProgress(float progress)
|
||||
|
||||
Reference in New Issue
Block a user