Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/kpropertiesdialog.cpp
Show First 20 Lines • Show All 1177 Lines • ▼ Show 20 Line(s) | 1169 | if (mp) { | |||
---|---|---|---|---|---|
1178 | grid->addWidget(l, curRow, 0, Qt::AlignRight); | 1178 | grid->addWidget(l, curRow, 0, Qt::AlignRight); | ||
1179 | 1179 | | |||
1180 | l = new QLabel(mp->mountedFrom(), d->m_frame); | 1180 | l = new QLabel(mp->mountedFrom(), d->m_frame); | ||
1181 | grid->addWidget(l, curRow++, 2); | 1181 | grid->addWidget(l, curRow++, 2); | ||
1182 | l->setTextInteractionFlags(Qt::TextSelectableByMouse | Qt::TextSelectableByKeyboard); | 1182 | l->setTextInteractionFlags(Qt::TextSelectableByMouse | Qt::TextSelectableByKeyboard); | ||
1183 | } | 1183 | } | ||
1184 | } | 1184 | } | ||
1185 | 1185 | | |||
1186 | l = new QLabel(i18n("Device usage:"), d->m_frame); | 1186 | l = new QLabel(i18nc("Amount of used and available space on this device or partition", "Free space:"), d->m_frame); | ||
1187 | grid->addWidget(l, curRow, 0, Qt::AlignRight); | 1187 | grid->addWidget(l, curRow, 0, Qt::AlignRight); | ||
1188 | 1188 | | |||
1189 | d->m_capacityBar = new KCapacityBar(KCapacityBar::DrawTextOutline, d->m_frame); | 1189 | d->m_capacityBar = new KCapacityBar(KCapacityBar::DrawTextOutline, d->m_frame); | ||
1190 | d->m_capacityBar->setText(i18nc("@info:status", "Unknown size")); | 1190 | d->m_capacityBar->setText(i18nc("@info:status", "Unknown size")); | ||
1191 | grid->addWidget(d->m_capacityBar, curRow++, 2); | 1191 | grid->addWidget(d->m_capacityBar, curRow++, 2); | ||
1192 | 1192 | | |||
1193 | KIO::FileSystemFreeSpaceJob *job = KIO::fileSystemFreeSpace(url); | 1193 | KIO::FileSystemFreeSpaceJob *job = KIO::fileSystemFreeSpace(url); | ||
1194 | connect(job, &KIO::FileSystemFreeSpaceJob::result, this, &KFilePropsPlugin::slotFreeSpaceResult); | 1194 | connect(job, &KIO::FileSystemFreeSpaceJob::result, this, &KFilePropsPlugin::slotFreeSpaceResult); | ||
▲ Show 20 Lines • Show All 2046 Lines • ▼ Show 20 Line(s) | 3182 | { | |||
3241 | layout->addWidget(label, 3, 0, Qt::AlignRight); | 3241 | layout->addWidget(label, 3, 0, Qt::AlignRight); | ||
3242 | 3242 | | |||
3243 | d->mountpoint = new QLabel(d->m_frame); | 3243 | d->mountpoint = new QLabel(d->m_frame); | ||
3244 | d->mountpoint->setObjectName(QStringLiteral("LineEdit_mountpoint")); | 3244 | d->mountpoint->setObjectName(QStringLiteral("LineEdit_mountpoint")); | ||
3245 | 3245 | | |||
3246 | layout->addWidget(d->mountpoint, 3, 1); | 3246 | layout->addWidget(d->mountpoint, 3, 1); | ||
3247 | 3247 | | |||
3248 | // show disk free | 3248 | // show disk free | ||
3249 | d->m_freeSpaceText = new QLabel(i18n("Device usage:"), d->m_frame); | 3249 | d->m_freeSpaceText = new QLabel(i18nc("Amount of used and available space on this device or partition", "Free space:"), d->m_frame); | ||
3250 | layout->addWidget(d->m_freeSpaceText, 4, 0, Qt::AlignRight); | 3250 | layout->addWidget(d->m_freeSpaceText, 4, 0, Qt::AlignRight); | ||
3251 | 3251 | | |||
3252 | d->m_freeSpaceLabel = new QLabel(d->m_frame); | 3252 | d->m_freeSpaceLabel = new QLabel(d->m_frame); | ||
3253 | layout->addWidget(d->m_freeSpaceLabel, 4, 1); | 3253 | layout->addWidget(d->m_freeSpaceLabel, 4, 1); | ||
3254 | 3254 | | |||
3255 | d->m_freeSpaceBar = new QProgressBar(d->m_frame); | 3255 | d->m_freeSpaceBar = new QProgressBar(d->m_frame); | ||
3256 | d->m_freeSpaceBar->setObjectName(QStringLiteral("freeSpaceBar")); | 3256 | d->m_freeSpaceBar->setObjectName(QStringLiteral("freeSpaceBar")); | ||
3257 | layout->addWidget(d->m_freeSpaceBar, 5, 0, 1, 2); | 3257 | layout->addWidget(d->m_freeSpaceBar, 5, 0, 1, 2); | ||
▲ Show 20 Lines • Show All 672 Lines • Show Last 20 Lines |