@@ -105,13 +105,13 @@ void MainWindow::changeSettings()
105
105
106
106
void MainWindow::onTimeRecieved (WidgetSettings settings)
107
107
{
108
- auto *newTimer = new TimerWidget (settings, this );
108
+ auto *newTimer = new TimerWidget (std::move ( settings) , this );
109
109
110
110
timerScrollWidget->layout ()->addWidget (newTimer);
111
111
112
112
connect (newTimer, SIGNAL (del (const TimerWidget*)), this , SLOT (remove (const TimerWidget*)));
113
113
connect (newTimer, SIGNAL (timerFinished ()), this , SLOT (onTimerFinished ()));
114
- connect (newTimer, SIGNAL (blinkInfo (QString, bool )), this , SLOT (tabBlinking (QString,bool )));
114
+ connect (newTimer, SIGNAL (blinkInfo (QString,bool )), this , SLOT (tabBlinking (QString,bool )));
115
115
116
116
timersList.append (newTimer);
117
117
newTimer->updateWidget (Settings);
@@ -144,12 +144,12 @@ void MainWindow::onTimerFinished()
144
144
145
145
void MainWindow::onAlarmTimeRecieved (WidgetSettings settings)
146
146
{
147
- auto *newAlarm = new alertwidget (settings, this );
147
+ auto *newAlarm = new alertwidget (std::move ( settings) , this );
148
148
149
149
alarmScrollWidget->layout ()->addWidget (newAlarm);
150
150
151
151
connect (newAlarm, SIGNAL (del (const alertwidget*)), this , SLOT (remove (const alertwidget*)));
152
- connect (newAlarm, SIGNAL (blinkInfo (QString, bool )), this , SLOT (tabBlinking (QString,bool )));
152
+ connect (newAlarm, SIGNAL (blinkInfo (QString,bool )), this , SLOT (tabBlinking (QString,bool )));
153
153
154
154
155
155
alarmsList.append (newAlarm);
@@ -159,7 +159,7 @@ void MainWindow::onAlarmTimeRecieved(WidgetSettings settings)
159
159
160
160
void MainWindow::onSettingsRecieved (GlobalSettings settings)
161
161
{
162
- Settings = settings;
162
+ Settings = std::move ( settings) ;
163
163
164
164
this ->setWindowOpacity (Settings.windowOpacity );
165
165
@@ -169,7 +169,7 @@ void MainWindow::onSettingsRecieved(GlobalSettings settings)
169
169
// TODO: here
170
170
// update settings handler
171
171
172
- void MainWindow::tabBlinking (QString tabName, bool enable)
172
+ void MainWindow::tabBlinking (const QString & tabName, bool enable)
173
173
{
174
174
if (enable)
175
175
{
0 commit comments