• Skip to content
  • Skip to link menu
Brand

API Documentation

  1. KDE API Reference
  2. The KDE Frameworks
  3. KCoreAddons
  • KDE Home
  • Contact Us

Quick Links

Skip menu "KCoreAddons"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • File List
  • Dependencies
  • Related Pages

Class Picker

About

Addons to QtCore

Maintainer
Michael Pyne
Supported platforms
Android, FreeBSD, Linux, MacOSX, Windows
Community
IRC: #kde-devel on Freenode
Mailing list: kde-frameworks-devel
Use with CMake
find_package(KF5CoreAddons)
target_link_libraries(yourapp KF5::CoreAddons)
Use with QMake
QT += KCoreAddons 
Clone
git clone git://anongit.kde.org/kcoreaddons.git
Browse source
KCoreAddons on cgit.kde.org

KCoreAddons

Functions
KFileUtils Namespace Reference

Functions

KCOREADDONS_EXPORT QString suggestName (const QUrl &baseURL, const QString &oldName)
 

Detailed Description

A namespace for KFileUtils globals.

Function Documentation

QString KFileUtils::suggestName ( const QUrl &  baseURL,
const QString &  oldName 
)

Given a directory path and a filename (which usually exists already), this function returns a suggested name for a file that doesn't exist in that directory.

The existence is only checked for local urls though. The suggested file name is of the form "foo 1", "foo 2" etc.

Since
5.61

Definition at line 24 of file kfileutils.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Wed Dec 11 2019 06:44:23 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal