mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Rename Overview
.. clunky, but for such an edge case its not worth the effort to make the UX slicker. At least now we can rename. Fixes #4032
This commit is contained in:
@@ -39,6 +39,9 @@ OverviewWindow::OverviewWindow(Context *context, int scope) : GcChartWindow(cont
|
||||
QAction *importChart= new QAction(tr("Import Chart..."));
|
||||
addAction(importChart);
|
||||
|
||||
QAction *renameChart= new QAction(tr("Rename..."));
|
||||
addAction(renameChart);
|
||||
|
||||
setControls(NULL);
|
||||
|
||||
QHBoxLayout *main = new QHBoxLayout;
|
||||
@@ -73,6 +76,7 @@ OverviewWindow::OverviewWindow(Context *context, int scope) : GcChartWindow(cont
|
||||
// menu items
|
||||
connect(addTile, SIGNAL(triggered(bool)), this, SLOT(addTile()));
|
||||
connect(importChart, SIGNAL(triggered(bool)), this, SLOT(importChart()));
|
||||
connect(renameChart, SIGNAL(triggered(bool)), this, SLOT(renameChart()));
|
||||
connect(space, SIGNAL(itemConfigRequested(ChartSpaceItem*)), this, SLOT(configItem(ChartSpaceItem*)));
|
||||
}
|
||||
|
||||
@@ -94,6 +98,12 @@ OverviewWindow::addTile()
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
OverviewWindow::renameChart()
|
||||
{
|
||||
emit showControls();
|
||||
}
|
||||
|
||||
void
|
||||
OverviewWindow::importChart()
|
||||
{
|
||||
|
||||
@@ -55,6 +55,7 @@ class OverviewWindow : public GcChartWindow
|
||||
// add a tile to the window
|
||||
void addTile();
|
||||
void importChart();
|
||||
void renameChart();
|
||||
|
||||
// config item requested
|
||||
void configItem(ChartSpaceItem *);
|
||||
|
||||
Reference in New Issue
Block a user