mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 00:28:42 +00:00
More 'orphaned' Widgets
RideMetadata widget in mainindow is never placed into a layout since it is not used for user entry/display. MetricAggregator used QWidget as a base class, this should of course have been QObject. It uses signal/slots but has no GUI.
This commit is contained in:
@@ -266,6 +266,7 @@ MainWindow::MainWindow(const QDir &home) :
|
||||
|
||||
// need to get metadata in before calendar!
|
||||
_rideMetadata = new RideMetadata(this);
|
||||
_rideMetadata->hide(); // never displayed
|
||||
metricDB = new MetricAggregator(this, home, zones(), hrZones()); // just to catch config updates!
|
||||
metricDB->refreshMetrics();
|
||||
|
||||
@@ -533,7 +534,6 @@ MainWindow::MainWindow(const QDir &home) :
|
||||
setCentralWidget(splitter);
|
||||
|
||||
/////////////////////////////// Menus ///////////////////////////////
|
||||
|
||||
QMenu *fileMenu = menuBar()->addMenu(tr("&Cyclist"));
|
||||
fileMenu->addAction(tr("&New..."), this,
|
||||
SLOT(newCyclist()), tr("Ctrl+N"));
|
||||
|
||||
Reference in New Issue
Block a user