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:
parent
d4ebdeeda8
commit
5ab152620c
@ -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);
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user