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