@@ -28,21 +28,21 @@ ActivitySettings::ActivitySettings(QWidget *parent)
28
28
{
29
29
QHBoxLayout *hbox = new QHBoxLayout (this );
30
30
31
- // create a tab widget for the three activity views
31
+ // create a tab widget for the activity views
32
32
_tab = new QTabWidget (this );
33
33
hbox->addWidget (_tab);
34
34
setLayout (hbox);
35
35
36
- _localActivityWidget = new LocalActivityWidget (this );
37
- _tab->addTab (_localActivityWidget, Resources::getCoreIcon (QStringLiteral (" states/sync" )), tr (" Local Activity" ));
36
+ auto _localActivityWidget = new LocalActivityWidget (this );
37
+ auto localActivityTabId = _tab->addTab (_localActivityWidget, Resources::getCoreIcon (QStringLiteral (" states/sync" )), tr (" Local Activity" ));
38
38
39
- _issuesWidget = new SyncErrorWidget (this );
40
- _syncErrorTabId = _tab->addTab (_issuesWidget , Resources::getCoreIcon (QStringLiteral (" states/warning" )), QString ());
39
+ auto _syncErrorWidget = new SyncErrorWidget (this );
40
+ _syncErrorTabId = _tab->addTab (_syncErrorWidget , Resources::getCoreIcon (QStringLiteral (" states/warning" )), QString ());
41
41
slotShowIssueItemCount (0 ); // to display the label.
42
- connect (_issuesWidget , &SyncErrorWidget::issueCountUpdated, this , &ActivitySettings::slotShowIssueItemCount);
42
+ connect (_syncErrorWidget , &SyncErrorWidget::issueCountUpdated, this , &ActivitySettings::slotShowIssueItemCount);
43
43
44
44
// We want the local activity tab to be the default
45
- _tab->setCurrentIndex (_localActivityTabId );
45
+ _tab->setCurrentIndex (localActivityTabId );
46
46
}
47
47
48
48
ActivitySettings::~ActivitySettings ()
0 commit comments