22#include " theme/Theme.h"
33
44#include < QCloseEvent>
5- #include < QHBoxLayout>
6- #include < QLabel>
75#include < QMoveEvent>
86#include < QResizeEvent>
97#include < QSettings>
@@ -30,20 +28,6 @@ void PopOutWindow::setupUi(const QString& title) {
3028 m_mainLayout->setContentsMargins (0 , 0 , 0 , 0 );
3129 m_mainLayout->setSpacing (0 );
3230
33- m_titleBar = new QWidget (this );
34- m_titleBar->setObjectName (" PopOutTitleBar" );
35- m_titleBar->setFixedHeight (36 );
36-
37- QHBoxLayout* titleLayout = new QHBoxLayout (m_titleBar);
38- titleLayout->setContentsMargins (12 , 0 , 8 , 0 );
39- titleLayout->setSpacing (8 );
40-
41- m_titleLabel = new QLabel (title, m_titleBar);
42- m_titleLabel->setProperty (" role" , " header" );
43- titleLayout->addWidget (m_titleLabel);
44-
45- m_mainLayout->addWidget (m_titleBar);
46-
4731 m_contentContainer = new QWidget (this );
4832 m_contentContainer->setObjectName (" PopOutContent" );
4933 QVBoxLayout* contentLayout = new QVBoxLayout (m_contentContainer);
@@ -80,14 +64,11 @@ void PopOutWindow::showAndRestore() {
8064}
8165
8266void PopOutWindow::setMinimumContentSize (int width, int height) {
83- setMinimumSize (width, height + m_titleBar-> height () );
67+ setMinimumSize (width, height);
8468}
8569
8670void PopOutWindow::setWindowTitle (const QString& title) {
8771 QDialog::setWindowTitle (title);
88- if (m_titleLabel) {
89- m_titleLabel->setText (title);
90- }
9172}
9273
9374void PopOutWindow::closeEvent (QCloseEvent* event) {
0 commit comments