add icon and changed label name

This commit is contained in:
LoudSnorer 2022-12-29 12:54:22 -05:00
parent 1d0fe2e007
commit d9da68345e
7 changed files with 22 additions and 8 deletions

View File

@ -2852,7 +2852,7 @@ void Daily::on_splitter_2_splitterMoved(int, int)
AppSetting->setDailyPanelWidth(size);
}
void Daily::on_backup_clicked() {
void Daily::on_layout_clicked() {
if (!saveGraphLayoutSettings) {
saveGraphLayoutSettings= new SaveGraphLayoutSettings("daily",this);
}

View File

@ -273,7 +273,7 @@ private slots:
void on_splitter_2_splitterMoved(int pos, int index);
void on_backup_clicked();
void on_layout_clicked();
protected:
virtual void showEvent(QShowEvent *);

View File

@ -1558,9 +1558,16 @@ QToolButton:pressed {
</widget>
</item>
<item>
<widget class="QPushButton" name="backup">
<widget class="QPushButton" name="layout">
<property name="text">
<string>Backup</string>
<string>Layout</string>
</property>
<property name="icon">
<iconset resource="Resources.qrc">
<normaloff>:/icons/cog.png</normaloff>:/icons/cog.png</iconset>
</property>
<property name="toolTip">
<string>Save and Restore graph layout settings</string>
</property>
</widget>
</item>

BIN
oscar/icons/cog.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

View File

@ -935,7 +935,7 @@ void Overview::on_toggleVisibility_clicked(bool checked)
GraphView->redraw();
}
void Overview::on_backup_clicked() {
void Overview::on_layout_clicked() {
if (!saveGraphLayoutSettings) {
saveGraphLayoutSettings= new SaveGraphLayoutSettings("overview",this);
}

View File

@ -145,7 +145,7 @@ class Overview : public QWidget
void on_RangeUpdate(double minx, double maxx);
void setGraphText ();
void on_backup_clicked();
void on_layout_clicked();
private:
void CreateAllGraphs();

View File

@ -260,9 +260,16 @@ QToolButton:pressed {
</widget>
</item>
<item>
<widget class="QPushButton" name="backup">
<widget class="QPushButton" name="layout">
<property name="text">
<string>Backup</string>
<string>Layout</string>
</property>
<property name="icon">
<iconset resource="Resources.qrc">
<normaloff>:/icons/cog.png</normaloff>:/icons/cog.png</iconset>
</property>
<property name="toolTip">
<string>Save and Restore graph layout settings</string>
</property>
</widget>
</item>