Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/renamedialog.cpp
Show First 20 Lines • Show All 458 Lines • ▼ Show 20 Line(s) | 457 | if (!u.isValid()) { | |||
---|---|---|---|---|---|
459 | qCWarning(KIO_WIDGETS) << u.errorString(); | 459 | qCWarning(KIO_WIDGETS) << u.errorString(); | ||
460 | return; | 460 | return; | ||
461 | } | 461 | } | ||
462 | 462 | | |||
463 | done(Result_Rename); | 463 | done(Result_Rename); | ||
464 | } | 464 | } | ||
465 | } | 465 | } | ||
466 | 466 | | |||
467 | #ifndef KIOWIDGETS_NO_DEPRECATED | | |||
468 | QString RenameDialog::suggestName(const QUrl &baseURL, const QString &oldName) | 467 | QString RenameDialog::suggestName(const QUrl &baseURL, const QString &oldName) | ||
469 | { | 468 | { | ||
470 | return KFileUtils::suggestName(baseURL, oldName); | 469 | return KFileUtils::suggestName(baseURL, oldName); | ||
471 | } | 470 | } | ||
472 | #endif | | |||
473 | 471 | | |||
474 | // Propose button clicked | 472 | // Propose button clicked | ||
475 | void RenameDialog::suggestNewNamePressed() | 473 | void RenameDialog::suggestNewNamePressed() | ||
476 | { | 474 | { | ||
477 | /* no name to play with */ | 475 | /* no name to play with */ | ||
478 | if (d->m_pLineEdit->text().isEmpty()) { | 476 | if (d->m_pLineEdit->text().isEmpty()) { | ||
479 | return; | 477 | return; | ||
480 | } | 478 | } | ||
▲ Show 20 Lines • Show All 194 Lines • Show Last 20 Lines |