Warning, file /network/ktp-contact-list/tooltips/ktooltip.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*
0002  * Copyright (C) 2008 by Fredrik Höglund <fredrik@kde.org>
0003  * Copyright (C) 2011 by Geoffry Song <goffrie@gmail.com>
0004  *
0005  * This library is free software; you can redistribute it and/or
0006  * modify it under the terms of the GNU Lesser General Public
0007  * License as published by the Free Software Foundation; either
0008  * version 2.1 of the License, or (at your option) any later version.
0009  *
0010  * This library is distributed in the hope that it will be useful,
0011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0013  * Lesser General Public License for more details.
0014  *
0015  * You should have received a copy of the GNU Lesser General Public
0016  * License along with this library; if not, write to the Free Software
0017  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
0018  */
0019 
0020 #ifndef KTOOLTIP_H
0021 #define KTOOLTIP_H
0022 
0023 class QPoint;
0024 class QString;
0025 class QWidget;
0026 
0027 /**
0028  * Allows to show tooltips having a widget as content.
0029  */
0030 namespace KToolTip
0031 {
0032     void showText(const QPoint &pos, const QString &text);
0033 
0034     /**
0035      * Shows the tip @p content at the global position indicated by @p pos.
0036      *
0037      * Ownership of the content widget is transferred to KToolTip. The widget will be deleted
0038      * automatically when it is hidden.
0039      *
0040      * The tip is shown immediately when this function is called.
0041      */
0042     void showTip(const QPoint &pos, QWidget *window);
0043     QWidget *createTipWindow(QWidget *content);
0044     QWidget *currentTip();
0045     void hideTip();
0046 }
0047 
0048 #endif