Changeset View
Changeset View
Standalone View
Standalone View
krusader/Synchronizer/synchronizedialog.cpp
Show First 20 Lines • Show All 120 Lines • ▼ Show 20 Line(s) | 44 | { | |||
---|---|---|---|---|---|
121 | 121 | | |||
122 | QPushButton *btnClose = new QPushButton(hboxWidget); | 122 | QPushButton *btnClose = new QPushButton(hboxWidget); | ||
123 | btnClose->setText(i18n("&Close")); | 123 | btnClose->setText(i18n("&Close")); | ||
124 | btnClose->setIcon(Icon("dialog-close")); | 124 | btnClose->setIcon(Icon("dialog-close")); | ||
125 | hbox->addWidget(btnClose); | 125 | hbox->addWidget(btnClose); | ||
126 | 126 | | |||
127 | layout->addWidget(hboxWidget); | 127 | layout->addWidget(hboxWidget); | ||
128 | 128 | | |||
129 | connect(btnStart, SIGNAL(clicked()), this, SLOT(startSynchronization())); | 129 | connect(btnStart, &QPushButton::clicked, this, [=]() { startSynchronization(); }); | ||
130 | connect(btnPause, SIGNAL(clicked()), this, SLOT(pauseOrResume())); | 130 | connect(btnPause, &QPushButton::clicked, this, [=]() { pauseOrResume(); }); | ||
131 | connect(btnClose, SIGNAL(clicked()), this, SLOT(reject())); | 131 | connect(btnClose, &QPushButton::clicked, this, [=]() { reject(); }); | ||
132 | 132 | | |||
133 | exec(); | 133 | exec(); | ||
134 | } | 134 | } | ||
135 | 135 | | |||
136 | SynchronizeDialog::~SynchronizeDialog() | 136 | SynchronizeDialog::~SynchronizeDialog() | ||
137 | { | 137 | { | ||
138 | KConfigGroup group(krConfig, "Synchronize"); | 138 | KConfigGroup group(krConfig, "Synchronize"); | ||
139 | group.writeEntry("Confirm overwrites", cbOverwrite->isChecked()); | 139 | group.writeEntry("Confirm overwrites", cbOverwrite->isChecked()); | ||
▲ Show 20 Lines • Show All 65 Lines • Show Last 20 Lines |