Changeset View
Changeset View
Standalone View
Standalone View
krusader/Splitter/splittergui.cpp
Show First 20 Lines • Show All 143 Lines • ▼ Show 20 Line(s) | 80 | { | |||
---|---|---|---|---|---|
144 | grid->addWidget(buttonBox, 5 , 0); | 144 | grid->addWidget(buttonBox, 5 , 0); | ||
145 | 145 | | |||
146 | setWindowTitle(i18n("Krusader::Splitter")); | 146 | setWindowTitle(i18n("Krusader::Splitter")); | ||
147 | 147 | | |||
148 | 148 | | |||
149 | KConfigGroup cfg(KSharedConfig::openConfig(), QStringLiteral("Splitter")); | 149 | KConfigGroup cfg(KSharedConfig::openConfig(), QStringLiteral("Splitter")); | ||
150 | overwriteCb->setChecked(cfg.readEntry("OverWriteFiles", false)); | 150 | overwriteCb->setChecked(cfg.readEntry("OverWriteFiles", false)); | ||
151 | 151 | | |||
152 | connect(sizeCombo, SIGNAL(activated(int)), this, SLOT(sizeComboActivated(int))); | 152 | connect(sizeCombo, QOverload<int>::of(&QComboBox::activated), this, &SplitterGUI::sizeComboActivated); | ||
153 | connect(deviceCombo, SIGNAL(activated(int)), this, SLOT(predefinedComboActivated(int))); | 153 | connect(deviceCombo, QOverload<int>::of(&QComboBox::activated), this, &SplitterGUI::predefinedComboActivated); | ||
154 | connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject())); | 154 | connect(buttonBox, &QDialogButtonBox::rejected, this, &SplitterGUI::reject); | ||
155 | connect(buttonBox , SIGNAL(accepted()), this, SLOT(splitPressed())); | 155 | connect(buttonBox , &QDialogButtonBox::accepted, this, &SplitterGUI::splitPressed); | ||
156 | 156 | | |||
157 | predefinedComboActivated(0); | 157 | predefinedComboActivated(0); | ||
158 | } | 158 | } | ||
159 | 159 | | |||
160 | SplitterGUI::~SplitterGUI() | 160 | SplitterGUI::~SplitterGUI() | ||
161 | { | 161 | { | ||
162 | KConfigGroup cfg(KSharedConfig::openConfig(), QStringLiteral("Splitter")); | 162 | KConfigGroup cfg(KSharedConfig::openConfig(), QStringLiteral("Splitter")); | ||
163 | cfg.writeEntry("OverWriteFiles", overwriteCb->isChecked()); | 163 | cfg.writeEntry("OverWriteFiles", overwriteCb->isChecked()); | ||
▲ Show 20 Lines • Show All 102 Lines • Show Last 20 Lines |