Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/renamedialog.cpp
Show First 20 Lines • Show All 470 Lines • ▼ Show 20 Line(s) | 469 | if (!u.isValid()) { | |||
---|---|---|---|---|---|
471 | qCWarning(KIO_WIDGETS) << u.errorString(); | 471 | qCWarning(KIO_WIDGETS) << u.errorString(); | ||
472 | return; | 472 | return; | ||
473 | } | 473 | } | ||
474 | 474 | | |||
475 | done(Result_Rename); | 475 | done(Result_Rename); | ||
476 | } | 476 | } | ||
477 | } | 477 | } | ||
478 | 478 | | |||
479 | #if KIOWIDGETS_BUILD_DEPRECATED_SINCE(5, 0) | ||||
479 | QString RenameDialog::suggestName(const QUrl &baseURL, const QString &oldName) | 480 | QString RenameDialog::suggestName(const QUrl &baseURL, const QString &oldName) | ||
480 | { | 481 | { | ||
481 | return KFileUtils::suggestName(baseURL, oldName); | 482 | return KFileUtils::suggestName(baseURL, oldName); | ||
482 | } | 483 | } | ||
484 | #endif | ||||
483 | 485 | | |||
484 | // Propose button clicked | 486 | // Propose button clicked | ||
485 | void RenameDialog::suggestNewNamePressed() | 487 | void RenameDialog::suggestNewNamePressed() | ||
486 | { | 488 | { | ||
487 | /* no name to play with */ | 489 | /* no name to play with */ | ||
488 | if (d->m_pLineEdit->text().isEmpty()) { | 490 | if (d->m_pLineEdit->text().isEmpty()) { | ||
489 | return; | 491 | return; | ||
490 | } | 492 | } | ||
▲ Show 20 Lines • Show All 194 Lines • Show Last 20 Lines |