From bfe44eb72579bf1a820dcfd0f89ecb54a8f3b1c9 Mon Sep 17 00:00:00 2001 From: Hugo Teso Date: Fri, 7 Apr 2017 17:34:24 +0200 Subject: [PATCH] Fixes #98. Codegraphics bar with dark theme. --- src/widgets/codegraphic.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/widgets/codegraphic.cpp b/src/widgets/codegraphic.cpp index 26925625..b5585afa 100644 --- a/src/widgets/codegraphic.cpp +++ b/src/widgets/codegraphic.cpp @@ -17,7 +17,9 @@ GraphicsBar::GraphicsBar(MainWindow *main, QWidget *parent) : setWindowTitle("Code bar"); // setMovable(false); setContentsMargins(0, 0, 0, 0); - setStyleSheet("QToolBar { border: 0px; border-bottom: 0px; border-top: 0px; border-width: 0px;}"); + // If line below is used, with the dark theme the paintEvent is not called + // and the result is wrong. Something to do with overwriting the style sheet :/ + //setStyleSheet("QToolBar { border: 0px; border-bottom: 0px; border-top: 0px; border-width: 0px;}"); this->codeGraphic = new QGraphicsView(); // Radare core found in: