- QLabel* infoLabel = new QLabel(i18nc("@info", "(# will be replaced by ascending numbers)"), page);
- topLayout->addWidget(infoLabel);
+ QSet<QString> extensions;
+ foreach (const KFileItem& item, m_items) {
+ QMimeDatabase db;
+ const QString extension = db.suffixForFileName(item.url().toDisplayString().toLower());
+
+ if (extensions.contains(extension)) {
+ m_allExtensionsDifferent = false;
+ break;
+ }
+
+ extensions.insert(extension);
+ }
+
+ QLabel* infoLabel = new QLabel(i18nc("@info", "# will be replaced by ascending numbers starting with:"), page);
+ mainLayout->addWidget(infoLabel);
+ m_spinBox = new QSpinBox(page);
+ m_spinBox->setMaximum(10000);
+ m_spinBox->setMinimum(0);
+ m_spinBox->setSingleStep(1);
+ m_spinBox->setValue(1);
+ m_spinBox->setDisplayIntegerBase(10);
+
+ QHBoxLayout* horizontalLayout = new QHBoxLayout(page);
+ horizontalLayout->setMargin(0);
+ horizontalLayout->addWidget(infoLabel);
+ horizontalLayout->addWidget(m_spinBox);
+
+ topLayout->addLayout(horizontalLayout);