- m_recursiveDirectorySizeLimit = new QSpinBox();
- connect(m_recursiveDirectorySizeLimit, QOverload<int>::of(&QSpinBox::valueChanged), this, [this](int value) {
- m_recursiveDirectorySizeLimit->setSuffix(i18np(" level deep", " levels deep", value));
- });
- m_recursiveDirectorySizeLimit->setRange(1, 20);
- m_recursiveDirectorySizeLimit->setSingleStep(1);
-
- QHBoxLayout *contentsSizeLayout = new QHBoxLayout();
- contentsSizeLayout->addWidget(m_sizeOfContents);
- contentsSizeLayout->addWidget(m_recursiveDirectorySizeLimit);
-
- topLayout->addRow(i18nc("@title:group", "Folder size displays:"), m_numberOfItems);
- topLayout->addRow(QString(), contentsSizeLayout);
-#endif
-
- QDateTime thirtyMinutesAgo = QDateTime::currentDateTime().addSecs(-30 * 60);
- QLocale local;
- KFormat formatter(local);
-
- m_useRelatetiveDates = new QRadioButton(i18nc(
- "option:radio as in relative date", "Relative (e.g. '%1')", formatter.formatRelativeDateTime(thirtyMinutesAgo, QLocale::ShortFormat))
- );
- m_useShortDates = new QRadioButton(
- i18nc("option:radio as in absolute date", "Absolute (e.g. '%1')", local.toString(thirtyMinutesAgo, QLocale::ShortFormat))
- );
-
- QButtonGroup* dateFormatGroup = new QButtonGroup(this);
- dateFormatGroup->addButton(m_useRelatetiveDates);
- dateFormatGroup->addButton(m_useShortDates);
-
- topLayout->addRow(i18nc("@title:group", "Date style:"), m_useRelatetiveDates);
- topLayout->addRow(QString(), m_useShortDates);