From b553aae8ad7d9a4151642bcbe7e8cbcca43b87c8 Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Sun, 10 May 2020 11:46:54 +0200 Subject: [PATCH] Correct icon sizing for normal definition display in BreakPointWidget. --- hurricane/src/viewer/BreakpointWidget.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hurricane/src/viewer/BreakpointWidget.cpp b/hurricane/src/viewer/BreakpointWidget.cpp index 78f78e84..ce527241 100644 --- a/hurricane/src/viewer/BreakpointWidget.cpp +++ b/hurricane/src/viewer/BreakpointWidget.cpp @@ -23,6 +23,7 @@ #include #include "hurricane/Breakpoint.h" #include "hurricane/viewer/BreakpointWidget.h" +#include "hurricane/viewer/Graphics.h" namespace Hurricane { @@ -38,7 +39,7 @@ namespace Hurricane { setModal ( false ); //setWindowModality( Qt::WindowModal ); setWindowTitle ( "Breakpoint" ); - setToolTip ( "Crush the Mush to continue..." ); + setToolTip ( "Hit Chuck to continue..." ); //_message->setTextFormat ( Qt::RichText ); _message->setText ( "No Message Yet" ); @@ -49,7 +50,7 @@ namespace Hurricane { QPushButton* ok = new QPushButton (); ok->setIcon ( QIcon(":/images/angry-birds-chuck.png") ); ok->setFlat ( true ); - ok->setIconSize ( QSize(200,200) ); + ok->setIconSize ( (Graphics::isHighDpi() ? QSize(200,200) : QSize(80,80)) ); QFrame* vLine = new QFrame (); vLine->setFrameShape ( QFrame::VLine );