Make toolbar color configurable

Not generally useful but allows one to make the toolbar
menu and titlebar match for a more pleasing general effect.
Most users will not use this I imagine and use the default
window colors.
This commit is contained in:
Mark Liversedge
2011-05-15 21:35:21 +01:00
parent c7e0d4ed8c
commit 4801fc0b87
5 changed files with 30 additions and 2 deletions

View File

@@ -24,9 +24,15 @@ MetadataWindow::MetadataWindow(MainWindow *mainWindow) :
setInstanceName("Metadata Window");
setControls(NULL);
setRideItem(NULL);
setContentsMargins(0,0,0,0);
QVBoxLayout *vlayout = new QVBoxLayout(this);
vlayout->setSpacing(0);
rideMetadata = new RideMetadata(mainWindow);
QFont font;
font.setPointSize(font.pointSize()-2);
rideMetadata->setFont(font);
rideMetadata->setContentsMargins(0,0,0,0);
vlayout->addWidget(rideMetadata);
connect(this, SIGNAL(rideItemChanged(RideItem*)), this, SLOT(rideItemChanged()));