UI Nits: Ride list scrollbar on Mac

Style was all wrong and when rides were filtered
the scrollbar disappeared by the space was left
un painted.
This commit is contained in:
Mark Liversedge
2012-12-04 15:58:27 +00:00
parent b0c69b00dc
commit aff76bfde0
2 changed files with 6 additions and 0 deletions

View File

@@ -567,7 +567,9 @@ MainWindow::MainWindow(const QDir &home) :
QWidget *activityHistory = new QWidget(this);
activityHistory->setContentsMargins(0,0,0,0);
#ifndef Q_OS_MAC // not on mac thanks
activityHistory->setStyleSheet("padding: 0px; border: 0px; margin: 0px;");
#endif
QVBoxLayout *activityLayout = new QVBoxLayout(activityHistory);
activityLayout->setSpacing(0);
activityLayout->setContentsMargins(0,0,0,0);
@@ -714,8 +716,10 @@ MainWindow::MainWindow(const QDir &home) :
splitter->setChildrenCollapsible(false); // QT BUG crash QTextLayout do not undo this
splitter->setHandleWidth(1);
#ifndef Q_OS_MAC // not on Mac thanks
splitter->setStyleSheet(" QSplitter::handle { background-color: #B3B4BA; "
" color: #B3B4BA; }");
#endif
splitter->setFrameStyle(QFrame::NoFrame);
splitter->setContentsMargins(0, 0, 0, 0); // attempting to follow some UI guides