Made slight tweaks for high DPI displays
This commit is contained in:
@@ -49,6 +49,7 @@
|
||||
# include <QFileInfo>
|
||||
# include <QDesktopServices>
|
||||
# include <QMenu>
|
||||
# include <QDesktopWidget>
|
||||
#endif
|
||||
|
||||
#include "BrowserView.h"
|
||||
@@ -74,6 +75,11 @@ using namespace Gui;
|
||||
WebView::WebView(QWidget *parent)
|
||||
: QWebView(parent)
|
||||
{
|
||||
// Increase html font size for high DPI displays
|
||||
QRect mainScreenSize = QApplication::desktop()->screenGeometry();
|
||||
if(mainScreenSize.width() > 1920){
|
||||
setTextSizeMultiplier (mainScreenSize.width()/1920.0);
|
||||
}
|
||||
}
|
||||
|
||||
void WebView::wheelEvent(QWheelEvent *event)
|
||||
|
||||
Reference in New Issue
Block a user