From d9da68345e48bb66e437d7b95bc5b50f926d51ab Mon Sep 17 00:00:00 2001 From: LoudSnorer Date: Thu, 29 Dec 2022 12:54:22 -0500 Subject: [PATCH] add icon and changed label name --- oscar/daily.cpp | 2 +- oscar/daily.h | 2 +- oscar/daily.ui | 11 +++++++++-- oscar/icons/cog.png | Bin 0 -> 4656 bytes oscar/overview.cpp | 2 +- oscar/overview.h | 2 +- oscar/overview.ui | 11 +++++++++-- 7 files changed, 22 insertions(+), 8 deletions(-) create mode 100644 oscar/icons/cog.png diff --git a/oscar/daily.cpp b/oscar/daily.cpp index aa393581..db836edc 100644 --- a/oscar/daily.cpp +++ b/oscar/daily.cpp @@ -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); } diff --git a/oscar/daily.h b/oscar/daily.h index bc3efd13..5cac0477 100644 --- a/oscar/daily.h +++ b/oscar/daily.h @@ -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 *); diff --git a/oscar/daily.ui b/oscar/daily.ui index 294abed7..502fbb5b 100644 --- a/oscar/daily.ui +++ b/oscar/daily.ui @@ -1558,9 +1558,16 @@ QToolButton:pressed { - + - Backup + Layout + + + + :/icons/cog.png:/icons/cog.png + + + Save and Restore graph layout settings diff --git a/oscar/icons/cog.png b/oscar/icons/cog.png new file mode 100644 index 0000000000000000000000000000000000000000..e66b4ff700238de8ceaec95ac12f1f08e69296aa GIT binary patch literal 4656 zcmai22{@GN+aEQ_nl(BiV@PBfgcwHImy8%oW|E9C!&qj<7`w_6LchCG@@2|8&lG&iTIgy54!`d4BhOKlgJlzvsQ)1X~+(ejW)P5D3I? zX<>o_o*r8_*AC$KTjY+NAQ1Qt(ZQMKjI@U1$bP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BRakg< zXvVq*lj&4`;VlO}A)&js*T>fv3`4u^BXkA1O}Y<0c@ip~PL(`br*}wO+v)M({PXAT zl(FRGWPkzs`ubY$f=%t7)%wLq=1bROvhe5%Cnbi3S;_(a@z+Nr=pu(~M2Do)yFJv^ z)t?k20d7pXbZPO!2YUrkpcH^wtEs60&JHCdrSO&4!$6DA;Do`9yu2o#QPr-PU*ZP5 zYXFwwiQS>iars7L#M(#8R|eW|nV1@HH#g7;-I1108_b-e({T>@o+>|+=KY8 zAV_anbp9N)ca6j;1@L17oV=(n0TKR*4;Xz6YodqMHAl`7iiuBy{Cq4%Do)22iGhGJ zVY8*sC7ko~^R1|4t;PSu9XgrcE^IEhva(W(giMlIHghtS}8nJ4Yb9ByW2X1;$U)hbbVc2 zFi+0S%~dW|02TIGSy~#ZDjqttTkzi9yGJ1qkVGsWfQ3@x9L_KuFF z1M&=u_mfRY+HdeT@cOR^=&yGUz!p!O{S7q_yfX-*#%|t7j6h1z%`T2-kBvDmihdEi zgHc(Sd^l5Zt~N^Cj%-XfJF=dZ3sOkDSy?Hb9UCn2^jFb%0ckONQP6GrAizsZrZVsa zBGW25CPoPL``nx%e6O_hx8=DLjJ+H!M@*g!57$uVtS00A2?Ti~N*uQ3S)WBJ9}iDG zZ9cU^+-i2cRiMdLpbihz@2|l~PduLEf$RNCMMV5+!}CXV+pDLGC@PF59u@i;HNnSC&_nZP|=iQe&98nybF{)Mbzxb>mO($vP} JmXTZZ{{Znp^&0>H literal 0 HcmV?d00001 diff --git a/oscar/overview.cpp b/oscar/overview.cpp index 5e660a6f..438c3922 100644 --- a/oscar/overview.cpp +++ b/oscar/overview.cpp @@ -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); } diff --git a/oscar/overview.h b/oscar/overview.h index 786cefa3..d9c7ccfd 100644 --- a/oscar/overview.h +++ b/oscar/overview.h @@ -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(); diff --git a/oscar/overview.ui b/oscar/overview.ui index 90ab0d87..e7281f70 100644 --- a/oscar/overview.ui +++ b/oscar/overview.ui @@ -260,9 +260,16 @@ QToolButton:pressed { - + - Backup + Layout + + + + :/icons/cog.png:/icons/cog.png + + + Save and Restore graph layout settings