mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-07 19:50:45 +00:00
add icon and changed label name
This commit is contained in:
parent
1d0fe2e007
commit
d9da68345e
@ -2852,7 +2852,7 @@ void Daily::on_splitter_2_splitterMoved(int, int)
|
|||||||
AppSetting->setDailyPanelWidth(size);
|
AppSetting->setDailyPanelWidth(size);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Daily::on_backup_clicked() {
|
void Daily::on_layout_clicked() {
|
||||||
if (!saveGraphLayoutSettings) {
|
if (!saveGraphLayoutSettings) {
|
||||||
saveGraphLayoutSettings= new SaveGraphLayoutSettings("daily",this);
|
saveGraphLayoutSettings= new SaveGraphLayoutSettings("daily",this);
|
||||||
}
|
}
|
||||||
|
@ -273,7 +273,7 @@ private slots:
|
|||||||
|
|
||||||
void on_splitter_2_splitterMoved(int pos, int index);
|
void on_splitter_2_splitterMoved(int pos, int index);
|
||||||
|
|
||||||
void on_backup_clicked();
|
void on_layout_clicked();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void showEvent(QShowEvent *);
|
virtual void showEvent(QShowEvent *);
|
||||||
|
@ -1558,9 +1558,16 @@ QToolButton:pressed {
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="backup">
|
<widget class="QPushButton" name="layout">
|
||||||
<property name="text">
|
<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>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
BIN
oscar/icons/cog.png
Normal file
BIN
oscar/icons/cog.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.5 KiB |
@ -935,7 +935,7 @@ void Overview::on_toggleVisibility_clicked(bool checked)
|
|||||||
GraphView->redraw();
|
GraphView->redraw();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Overview::on_backup_clicked() {
|
void Overview::on_layout_clicked() {
|
||||||
if (!saveGraphLayoutSettings) {
|
if (!saveGraphLayoutSettings) {
|
||||||
saveGraphLayoutSettings= new SaveGraphLayoutSettings("overview",this);
|
saveGraphLayoutSettings= new SaveGraphLayoutSettings("overview",this);
|
||||||
}
|
}
|
||||||
|
@ -145,7 +145,7 @@ class Overview : public QWidget
|
|||||||
void on_RangeUpdate(double minx, double maxx);
|
void on_RangeUpdate(double minx, double maxx);
|
||||||
void setGraphText ();
|
void setGraphText ();
|
||||||
|
|
||||||
void on_backup_clicked();
|
void on_layout_clicked();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void CreateAllGraphs();
|
void CreateAllGraphs();
|
||||||
|
@ -260,9 +260,16 @@ QToolButton:pressed {
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="backup">
|
<widget class="QPushButton" name="layout">
|
||||||
<property name="text">
|
<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>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
Loading…
Reference in New Issue
Block a user