org.kde.koala
public class KCursor extends Qt
setCursor(KCursor.handCursor());
UNKNOWN: A QCursor wrapper allowing "themed" cursors and auto-hiding cursors.
| Constructor Summary | |
|---|---|
| protected | KCursor(Class dummy) |
| KCursor()
Constructor.
| |
| Method Summary | |
|---|---|
| static QCursor | arrowCursor()
Returns the proper arrow cursor according to
the current GUI style (static function). |
| static void | autoHideEventFilter(QObject arg1, QEvent arg2)
KCursor has to install an eventFilter over the widget you want to
auto-hide. |
| static QCursor | blankCursor()
Returns a blank or invisible cursor (static function). |
| static QCursor | crossCursor()
Returns the proper cross-hair cursor according to
the current GUI style (static function). |
| void | dispose() Delete the wrapped C++ instance ahead of finalize() |
| protected void | finalize() Deletes the wrapped C++ instance |
| static QCursor | handCursor()
Returns the proper hand cursor according to
the current GUI style (static function). |
| static int | hideCursorDelay()
Default is 5000, i.e. |
| static QCursor | ibeamCursor()
Returns the proper text cursor according to
the current GUI style (static function). |
| boolean | isDisposed() Has the wrapped C++ instance been deleted? |
| static void | setAutoHideCursor(QWidget w, boolean enable)
Sets auto-hiding the cursor for widget w. Enabling it will result in
the cursor being hidden when
|
| static void | setAutoHideCursor(QWidget w, boolean enable, boolean customEventFilter)
Overloaded method for the case where you have an event-filter installed
on the widget you want to enable auto-cursor-hiding.
|
| static void | setHideCursorDelay(int ms)
Sets the delay time in milliseconds for auto-hiding. |
| static QCursor | sizeAllCursor()
Returns the proper all-directions resize cursor
according to the current GUI style (static function). |
| static QCursor | sizeBDiagCursor()
Returns the proper diagonal resize (/) cursor
according to the current GUI style (static function). |
| static QCursor | sizeFDiagCursor()
Returns the proper diagonal resize (\) cursor
according to the current GUI style (static function). |
| static QCursor | sizeHorCursor()
Returns the proper horizontal resize cursor
according to the current GUI style (static function). |
| static QCursor | sizeVerCursor()
Returns the proper vertical resize cursor
according to the current GUI style (static function). |
| static QCursor | upArrowCursor()
Returns the proper up arrow cursor according to
the current GUI style (static function). |
| static QCursor | waitCursor()
Returns the proper hourglass cursor according to
the current GUI style (static function). |
| static QCursor | whatsThisCursor()
Returns a WhatsThis cursor (static function). |
| static QCursor | workingCursor()
Returns the proper arrow+hourglass cursor according to
the current GUI style (static function). |
UNKNOWN: Constructor.
UNKNOWN: Returns the proper arrow cursor according to the current GUI style (static function).
edit = new KEdit( this, "some edit widget" );
edit.installEventFilter( this );
KCursor.setAutoHideCursor( edit, true, true );
[...]
boolean YourClass.eventFilter( QObject o, QEvent e )
{
if ( o == edit ) // only that widget where you enabled auto-hide!
KCursor.autoHideEventFilter( o, e );
// now you can do your own event-processing
[...]
}
Note that you must not call KCursor.autoHideEventFilter() when you
didn't enable or after disabling auto-hiding.UNKNOWN: KCursor has to install an eventFilter over the widget you want to auto-hide.
UNKNOWN: Returns a blank or invisible cursor (static function).
UNKNOWN: Returns the proper cross-hair cursor according to the current GUI style (static function).
UNKNOWN: Returns the proper hand cursor according to the current GUI style (static function).
Returns: the current auto-hide delay time.
UNKNOWN:
UNKNOWN: Returns the proper text cursor according to the current GUI style (static function).
w. Enabling it will result in
the cursor being hidden when
UNKNOWN: Sets auto-hiding the cursor for widget w.
customEventFilter to true and call
autoHideEventFilter() from the beginning of your eventFilter().See Also: KCursor
UNKNOWN: Overloaded method for the case where you have an event-filter installed on the widget you want to enable auto-cursor-hiding.
UNKNOWN: Sets the delay time in milliseconds for auto-hiding.
UNKNOWN: Returns the proper all-directions resize cursor according to the current GUI style (static function).
UNKNOWN: Returns the proper diagonal resize (/) cursor according to the current GUI style (static function).
UNKNOWN: Returns the proper diagonal resize (\) cursor according to the current GUI style (static function).
UNKNOWN: Returns the proper horizontal resize cursor according to the current GUI style (static function).
UNKNOWN: Returns the proper vertical resize cursor according to the current GUI style (static function).
UNKNOWN: Returns the proper up arrow cursor according to the current GUI style (static function).
UNKNOWN: Returns the proper hourglass cursor according to the current GUI style (static function).
UNKNOWN: Returns a WhatsThis cursor (static function).
UNKNOWN: Returns the proper arrow+hourglass cursor according to the current GUI style (static function).