Fixes #98. Codegraphics bar with dark theme.

This commit is contained in:
Hugo Teso 2017-04-07 17:34:24 +02:00
parent 33bdaef02a
commit bfe44eb725

View File

@ -17,7 +17,9 @@ GraphicsBar::GraphicsBar(MainWindow *main, QWidget *parent) :
setWindowTitle("Code bar"); setWindowTitle("Code bar");
// setMovable(false); // setMovable(false);
setContentsMargins(0, 0, 0, 0); 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(); this->codeGraphic = new QGraphicsView();
// Radare core found in: // Radare core found in: