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:
Mark Liversedge
2021-12-09 10:13:19 +00:00
parent 7fd2c98a20
commit be8ae85dbd
2 changed files with 11 additions and 0 deletions

View File

@@ -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()
{

View File

@@ -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 *);