Changeset View
Changeset View
Standalone View
Standalone View
krusader/Synchronizer/synchronizedialog.cpp
Show All 15 Lines | |||||
16 | * * | 16 | * * | ||
17 | * You should have received a copy of the GNU General Public License * | 17 | * You should have received a copy of the GNU General Public License * | ||
18 | * along with Krusader. If not, see [http://www.gnu.org/licenses/]. * | 18 | * along with Krusader. If not, see [http://www.gnu.org/licenses/]. * | ||
19 | *****************************************************************************/ | 19 | *****************************************************************************/ | ||
20 | 20 | | |||
21 | #include "synchronizedialog.h" | 21 | #include "synchronizedialog.h" | ||
22 | #include "../FileSystem/krpermhandler.h" | 22 | #include "../FileSystem/krpermhandler.h" | ||
23 | #include "../krglobal.h" | 23 | #include "../krglobal.h" | ||
24 | #include "../icon.h" | ||||
24 | #include "../defaults.h" | 25 | #include "../defaults.h" | ||
25 | 26 | | |||
26 | // QtWidgets | 27 | // QtWidgets | ||
27 | #include <QLayout> | 28 | #include <QLayout> | ||
28 | #include <QVBoxLayout> | 29 | #include <QVBoxLayout> | ||
29 | #include <QLabel> | 30 | #include <QLabel> | ||
30 | 31 | | |||
31 | #include <KConfigCore/KSharedConfig> | 32 | #include <KConfigCore/KSharedConfig> | ||
▲ Show 20 Lines • Show All 72 Lines • ▼ Show 20 Line(s) | 44 | { | |||
104 | cbOverwrite->setChecked(group.readEntry("Confirm overwrites", _ConfirmOverWrites)); | 105 | cbOverwrite->setChecked(group.readEntry("Confirm overwrites", _ConfirmOverWrites)); | ||
105 | layout->addWidget(cbOverwrite); | 106 | layout->addWidget(cbOverwrite); | ||
106 | 107 | | |||
107 | QSpacerItem* spacer = new QSpacerItem(20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum); | 108 | QSpacerItem* spacer = new QSpacerItem(20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum); | ||
108 | hbox->addItem(spacer); | 109 | hbox->addItem(spacer); | ||
109 | 110 | | |||
110 | btnStart = new QPushButton(hboxWidget); | 111 | btnStart = new QPushButton(hboxWidget); | ||
111 | btnStart->setText(i18n("&Start")); | 112 | btnStart->setText(i18n("&Start")); | ||
112 | btnStart->setIcon(QIcon::fromTheme("media-playback-start")); | 113 | btnStart->setIcon(Icon("media-playback-start")); | ||
113 | hbox->addWidget(btnStart); | 114 | hbox->addWidget(btnStart); | ||
114 | 115 | | |||
115 | btnPause = new QPushButton(hboxWidget); | 116 | btnPause = new QPushButton(hboxWidget); | ||
116 | btnPause->setEnabled(false); | 117 | btnPause->setEnabled(false); | ||
117 | btnPause->setText(i18n("&Pause")); | 118 | btnPause->setText(i18n("&Pause")); | ||
118 | btnPause->setIcon(QIcon::fromTheme("media-playback-pause")); | 119 | btnPause->setIcon(Icon("media-playback-pause")); | ||
119 | hbox->addWidget(btnPause); | 120 | hbox->addWidget(btnPause); | ||
120 | 121 | | |||
121 | QPushButton *btnClose = new QPushButton(hboxWidget); | 122 | QPushButton *btnClose = new QPushButton(hboxWidget); | ||
122 | btnClose->setText(i18n("&Close")); | 123 | btnClose->setText(i18n("&Close")); | ||
123 | btnClose->setIcon(QIcon::fromTheme("dialog-close")); | 124 | btnClose->setIcon(Icon("dialog-close")); | ||
124 | hbox->addWidget(btnClose); | 125 | hbox->addWidget(btnClose); | ||
125 | 126 | | |||
126 | layout->addWidget(hboxWidget); | 127 | layout->addWidget(hboxWidget); | ||
127 | 128 | | |||
128 | connect(btnStart, SIGNAL(clicked()), this, SLOT(startSynchronization())); | 129 | connect(btnStart, SIGNAL(clicked()), this, SLOT(startSynchronization())); | ||
129 | connect(btnPause, SIGNAL(clicked()), this, SLOT(pauseOrResume())); | 130 | connect(btnPause, SIGNAL(clicked()), this, SLOT(pauseOrResume())); | ||
130 | connect(btnClose, SIGNAL(clicked()), this, SLOT(reject())); | 131 | connect(btnClose, SIGNAL(clicked()), this, SLOT(reject())); | ||
131 | 132 | | |||
▲ Show 20 Lines • Show All 72 Lines • Show Last 20 Lines |