KWidgetsAddons
krecentfilesmenu.cpp
45 cutValue = fontMetrics.elidedText(urlString, Qt::ElideMiddle, maxWidthForTitles - displayNameMaxWidth);
111 QStringLiteral("%1/%2_recentfiles").arg(QStandardPaths::writableLocation(QStandardPaths::AppDataLocation), QCoreApplication::applicationName());
117 d->m_clearAction = new QAction(QIcon::fromTheme(QStringLiteral("edit-clear-history")), tr("Clear List"));
149 RecentFilesEntry *entry = new RecentFilesEntry(url, d->m_settings->value(QStringLiteral("displayName")).toString(), this);
void removeUrl(const QUrl &url)
Remove a URL from the recent files list.
Definition krecentfilesmenu.cpp:185
void urlTriggered(const QUrl &url)
emitted when the user clicks on a file action.
void setGroup(const QString &group)
Specify a group for storing the URLs.
Definition krecentfilesmenu.cpp:243
void setMaximumItems(size_t maximumItems)
Set the maximum URL count.
Definition krecentfilesmenu.cpp:254
int maximumItems() const
The maximum number of files this menu can hold.
Definition krecentfilesmenu.cpp:249
void addUrl(const QUrl &url, const QString &name=QString())
Add URL to recent files list.
Definition krecentfilesmenu.cpp:159
void recentFilesChanged()
Emitted when the recent files list has been changed.
AKONADI_CALENDAR_EXPORT QString displayName(Akonadi::ETMCalendar *calendar, const Akonadi::Collection &collection)
char * toString(const EngineQuery &query)
void triggered(bool checked)
applicationName
QRect boundingRect(QChar ch) const const
QString elidedText(const QString &text, Qt::TextElideMode mode, int width, int flags) const const
QList< QScreen * > screens()
QIcon fromTheme(const QString &name)
void reserve(qsizetype size)
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
int width() const const
AppDataLocation
QString writableLocation(StandardLocation type)
QString arg(Args &&... args) const const
bool isEmpty() const const
ElideMiddle
PreferLocalFile
QString fileName(ComponentFormattingOptions options) const const
QString toDisplayString(FormattingOptions options) const const
QFontMetrics fontMetrics() const const
size
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.