mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Fix #864 visual issue
This commit is contained in:
parent
6cc36a969a
commit
9e35a73daf
|
@ -96,13 +96,12 @@ void ContentLayout::init()
|
|||
mainHead->layout()->setSpacing(0);
|
||||
mainHead->setMouseTracking(true);
|
||||
|
||||
mainHLine = new QFrame();
|
||||
mainHLine->setFrameShape(QFrame::HLine);
|
||||
mainHLine->setFrameShadow(QFrame::Plain);
|
||||
QPalette palette = mainHLine->palette();
|
||||
mainHLine.setFrameShape(QFrame::HLine);
|
||||
mainHLine.setFrameShadow(QFrame::Plain);
|
||||
QPalette palette = mainHLine.palette();
|
||||
palette.setBrush(QPalette::WindowText, QBrush(QColor(193, 193, 193)));
|
||||
palette.setBrush(QPalette::WindowText, QBrush(QColor(193, 193, 193)));
|
||||
mainHLine->setPalette(palette);
|
||||
mainHLine.setPalette(palette);
|
||||
|
||||
mainContent = new QWidget();
|
||||
mainContent->setLayout(new QVBoxLayout);
|
||||
|
@ -120,7 +119,10 @@ void ContentLayout::init()
|
|||
mainContent->setStyleSheet(Style::getStylesheet(":ui/settings/mainContent.css"));
|
||||
#endif
|
||||
|
||||
mainHLineLayout.addWidget(&mainHLine);
|
||||
mainHLineLayout.addSpacing(5);
|
||||
|
||||
addWidget(mainHead);
|
||||
addWidget(mainHLine);
|
||||
addLayout(&mainHLineLayout);
|
||||
addWidget(mainContent);
|
||||
}
|
||||
|
|
|
@ -21,8 +21,7 @@
|
|||
#define CONTENTLAYOUT_H
|
||||
|
||||
#include <QBoxLayout>
|
||||
|
||||
class QFrame;
|
||||
#include <QFrame>
|
||||
|
||||
class ContentLayout : public QVBoxLayout
|
||||
{
|
||||
|
@ -33,8 +32,9 @@ public:
|
|||
|
||||
void clear();
|
||||
|
||||
QFrame mainHLine;
|
||||
QHBoxLayout mainHLineLayout;
|
||||
QWidget* mainContent;
|
||||
QFrame* mainHLine;
|
||||
QWidget* mainHead;
|
||||
|
||||
private:
|
||||
|
|
Loading…
Reference in New Issue
Block a user