Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/kpropertiesdialog.cpp
Show First 20 Lines • Show All 1085 Lines • ▼ Show 20 Line(s) | 1082 | if (!hasDirs) { // Only files [and symlinks] | |||
---|---|---|---|---|---|
1086 | d->m_sizeStopButton = nullptr; | 1086 | d->m_sizeStopButton = nullptr; | ||
1087 | } else { // Directory | 1087 | } else { // Directory | ||
1088 | QHBoxLayout *sizelay = new QHBoxLayout(); | 1088 | QHBoxLayout *sizelay = new QHBoxLayout(); | ||
1089 | grid->addLayout(sizelay, curRow++, 2); | 1089 | grid->addLayout(sizelay, curRow++, 2); | ||
1090 | 1090 | | |||
1091 | // buttons | 1091 | // buttons | ||
1092 | d->m_sizeDetermineButton = new QPushButton(i18n("Calculate"), d->m_frame); | 1092 | d->m_sizeDetermineButton = new QPushButton(i18n("Calculate"), d->m_frame); | ||
1093 | d->m_sizeStopButton = new QPushButton(i18n("Stop"), d->m_frame); | 1093 | d->m_sizeStopButton = new QPushButton(i18n("Stop"), d->m_frame); | ||
1094 | d->m_sizeDetermineButton->setIcon(QIcon::fromTheme(QStringLiteral("view-refresh"))); | ||||
1095 | d->m_sizeStopButton->setIcon(QIcon::fromTheme(QStringLiteral("dialog-cancel"))); | ||||
1094 | connect(d->m_sizeDetermineButton, &QAbstractButton::clicked, this, &KFilePropsPlugin::slotSizeDetermine); | 1096 | connect(d->m_sizeDetermineButton, &QAbstractButton::clicked, this, &KFilePropsPlugin::slotSizeDetermine); | ||
1095 | connect(d->m_sizeStopButton, &QAbstractButton::clicked, this, &KFilePropsPlugin::slotSizeStop); | 1097 | connect(d->m_sizeStopButton, &QAbstractButton::clicked, this, &KFilePropsPlugin::slotSizeStop); | ||
1096 | sizelay->addWidget(d->m_sizeDetermineButton, 0); | 1098 | sizelay->addWidget(d->m_sizeDetermineButton, 0); | ||
1097 | sizelay->addWidget(d->m_sizeStopButton, 0); | 1099 | sizelay->addWidget(d->m_sizeStopButton, 0); | ||
1098 | sizelay->addStretch(10); // so that the buttons don't grow horizontally | 1100 | sizelay->addStretch(10); // so that the buttons don't grow horizontally | ||
1099 | 1101 | | |||
1100 | // auto-launch for local dirs only, and not for '/' | 1102 | // auto-launch for local dirs only, and not for '/' | ||
1101 | if (isLocal && !hasRoot) { | 1103 | if (isLocal && !hasRoot) { | ||
▲ Show 20 Lines • Show All 2825 Lines • Show Last 20 Lines |