Skip to content
Snippets Groups Projects
Commit 7db5f068 authored by marco's avatar marco
Browse files

make the splitter thinner on MacOS X

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2637 5a81b35b-ba03-0410-adc8-b2c5c5119f08
parent 235da291
No related branches found
No related tags found
No related merge requests found
...@@ -47,9 +47,17 @@ public: ...@@ -47,9 +47,17 @@ public:
virtual void resizeEvent(QResizeEvent *event) virtual void resizeEvent(QResizeEvent *event)
{ {
if (this->orientation()==Qt::Horizontal) { if (this->orientation()==Qt::Horizontal) {
#if defined(__APPLE__)
this->setContentsMargins(1, 0, 0, 0);
#else
this->setContentsMargins(1, 0, 1, 0); this->setContentsMargins(1, 0, 1, 0);
#endif
} else { } else {
#if defined(__APPLE__)
this->setContentsMargins(0, 1, 0, 0);
#else
this->setContentsMargins(0, 1, 0, 1); this->setContentsMargins(0, 1, 0, 1);
#endif
} }
this->setMask(QRegion()); this->setMask(QRegion());
} }
...@@ -58,8 +66,8 @@ public: ...@@ -58,8 +66,8 @@ public:
{ {
QPainter p(this); QPainter p(this);
QPalette palette=qApp->palette(); QPalette palette=qApp->palette();
p.setBrush(QBrush(palette.color(QPalette::Active, QPalette::Shadow))); p.setBrush(QBrush(QColor(120,120,120)));
p.setPen(Qt::black); p.setPen(QColor(120,120,120));
p.drawRect(this->contentsRect()); p.drawRect(this->contentsRect());
} }
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment