diff --git a/profiler_gui/graphics_scrollbar.cpp b/profiler_gui/graphics_scrollbar.cpp index 256acb1..2770fec 100644 --- a/profiler_gui/graphics_scrollbar.cpp +++ b/profiler_gui/graphics_scrollbar.cpp @@ -289,8 +289,7 @@ EasyGraphicsScrollbar::EasyGraphicsScrollbar(QWidget* _parent) setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff); setContentsMargins(0, 0, 0, 0); - setMinimumHeight(DEFAULT_HEIGHT + 2); - setMaximumHeight(DEFAULT_HEIGHT + 2); + setFixedHeight(DEFAULT_HEIGHT + 2); auto selfScene = new QGraphicsScene(this); selfScene->setSceneRect(0, DEFAULT_TOP, 500, DEFAULT_HEIGHT); diff --git a/profiler_gui/main_window.cpp b/profiler_gui/main_window.cpp index 1bf2a15..937a94f 100644 --- a/profiler_gui/main_window.cpp +++ b/profiler_gui/main_window.cpp @@ -124,6 +124,7 @@ EasyMainWindow::EasyMainWindow() : Parent(), m_treeWidget(nullptr), m_graphicsVi loadSettings(); m_progress = new QProgressDialog("Loading file...", "Cancel", 0, 100, this); + m_progress->setFixedWidth(300); m_progress->setWindowTitle("EasyProfiler"); m_progress->setModal(true); m_progress->hide();