0
0
mirror of https://github.com/yse/easy_profiler.git synced 2024-12-27 08:41:02 +08:00

(profiler_gui) Better way of setting fixed size of windows

This commit is contained in:
Victor Zarubkin 2016-08-21 14:26:36 +03:00
parent d4ebdeeda8
commit 5ab152620c
2 changed files with 2 additions and 2 deletions

View File

@ -289,8 +289,7 @@ EasyGraphicsScrollbar::EasyGraphicsScrollbar(QWidget* _parent)
setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff); setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
setContentsMargins(0, 0, 0, 0); setContentsMargins(0, 0, 0, 0);
setMinimumHeight(DEFAULT_HEIGHT + 2); setFixedHeight(DEFAULT_HEIGHT + 2);
setMaximumHeight(DEFAULT_HEIGHT + 2);
auto selfScene = new QGraphicsScene(this); auto selfScene = new QGraphicsScene(this);
selfScene->setSceneRect(0, DEFAULT_TOP, 500, DEFAULT_HEIGHT); selfScene->setSceneRect(0, DEFAULT_TOP, 500, DEFAULT_HEIGHT);

View File

@ -124,6 +124,7 @@ EasyMainWindow::EasyMainWindow() : Parent(), m_treeWidget(nullptr), m_graphicsVi
loadSettings(); loadSettings();
m_progress = new QProgressDialog("Loading file...", "Cancel", 0, 100, this); m_progress = new QProgressDialog("Loading file...", "Cancel", 0, 100, this);
m_progress->setFixedWidth(300);
m_progress->setWindowTitle("EasyProfiler"); m_progress->setWindowTitle("EasyProfiler");
m_progress->setModal(true); m_progress->setModal(true);
m_progress->hide(); m_progress->hide();