KIO::KUriFilterSearchProviderActions Class
This class is a manager for web shortcuts. More...
- Header:
#include <KIO/KUriFilterSearchProviderActions> - CMake:
find_package(KF6 REQUIRED COMPONENTS KIO)
target_link_libraries(mytarget PRIVATE KF6::KIOWidgets) - Inherits: QObject
List of all members, including inherited members
Public Functions
- KUriFilterSearchProviderActions(QObject *parent = nullptr)
- void addWebShortcutsToMenu(QMenu *menu)
- QString selectedText() const
- void setSelectedText(const QString &selectedText)
Detailed Description
It will provide a list of web shortcuts against a selected text
You can set the selected text with setSelectedText() function
Member Function Documentation
[explicit] KUriFilterSearchProviderActions::KUriFilterSearchProviderActions(QObject *parent = nullptr)
Constructs a webshorts menu manager.
parent The QObject parent.
void KUriFilterSearchProviderActions::addWebShortcutsToMenu(QMenu *menu)
Add web shortcut actions to existing menu. menu menu to add shortcuts to
QString KUriFilterSearchProviderActions::selectedText() const
Returns the selected text
See also setSelectedText()
void KUriFilterSearchProviderActions::setSelectedText(const QString &selectedText)
Set selected text selectedText the text to search for
See also selectedText()