mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00
kdeui: brief KSelectionOwner documentation
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
491dc6383a
commit
a6367dede7
1 changed files with 15 additions and 0 deletions
|
@ -36,13 +36,28 @@ class KDEUI_EXPORT KSelectionOwner : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
|
/*!
|
||||||
|
@brief Constructs object for @p atomname and @p screen with @p parent in preparation to
|
||||||
|
claim selection.
|
||||||
|
*/
|
||||||
KSelectionOwner(const char* const atomname, const int screen = -1, QObject *parent = nullptr);
|
KSelectionOwner(const char* const atomname, const int screen = -1, QObject *parent = nullptr);
|
||||||
~KSelectionOwner();
|
~KSelectionOwner();
|
||||||
|
|
||||||
|
/*!
|
||||||
|
@brief Returns the X11 window used to claim the selection, valid only if selection is
|
||||||
|
claimed by this object and until it is either released or lost
|
||||||
|
*/
|
||||||
Window ownerWindow() const;
|
Window ownerWindow() const;
|
||||||
|
|
||||||
public Q_SLOTS:
|
public Q_SLOTS:
|
||||||
|
/*!
|
||||||
|
@brief Attempts to claim the selection, if @p force is true and the selection is owned by
|
||||||
|
someone else the owner selection will be cleared and possibly killed.
|
||||||
|
*/
|
||||||
bool claim(const bool force);
|
bool claim(const bool force);
|
||||||
|
/*!
|
||||||
|
@brief Releases the selection.
|
||||||
|
*/
|
||||||
void release();
|
void release();
|
||||||
|
|
||||||
Q_SIGNALS:
|
Q_SIGNALS:
|
||||||
|
|
Loading…
Add table
Reference in a new issue