QObject *instance();
- QT_DEPRECATED static QObjectList staticInstances();
+ static QObjectList staticInstances();
bool load();
bool unload();
}
/*!
+ \fn void QAccessible::updateAccessibility(QObject *object, int child, Event reason)
\deprecated
Use the version with a single \l QAccessibleEvent paremeter instead.
*/
-void QAccessible::updateAccessibility(QObject *object, int child, Event reason)
-{
- Q_ASSERT(object);
-
- QAccessibleEvent ev(object, reason);
- ev.setChild(child);
- updateAccessibility(&ev);
-}
/*!
Notifies about a change that might be relevant for accessibility clients.
static RootObjectHandler installRootObjectHandler(RootObjectHandler);
static QAccessibleInterface *queryAccessibleInterface(QObject *);
-
- QT_DEPRECATED static void updateAccessibility(QObject *object, int child, Event reason);
+#if QT_DEPRECATED_SINCE(5, 0)
+ QT_DEPRECATED static inline void updateAccessibility(QObject *object, int child, Event reason);
+#endif
static void updateAccessibility(QAccessibleEvent *event);
static bool isActive();
Q_GUI_EXPORT QDebug operator<<(QDebug d, const QAccessibleEvent &ev);
#endif
+#if QT_DEPRECATED_SINCE(5, 0)
+inline void QAccessible::updateAccessibility(QObject *object, int child, Event reason)
+{
+ Q_ASSERT(object);
+
+ QAccessibleEvent ev(object, reason);
+ ev.setChild(child);
+ updateAccessibility(&ev);
+}
+#endif
+
#endif // QT_NO_ACCESSIBILITY
QT_END_NAMESPACE
}
/*!
- Sets the tentative commit string to \a tentativeCommitString.
+ \fn void QInputMethodEvent::setTentativeCommitString(const QString &string)
+ Sets the tentative commit string to \a string.
The tentative commit string is what the preedit string is expected to be committed as.
The string can be used within the editor to trigger code that reacts on text changes such as validators.
\deprecated
*/
-void QInputMethodEvent::setTentativeCommitString(const QString &tentativeCommitString)
-{
- tentativeCommit = tentativeCommitString;
-}
/*!
\fn const QList<Attribute> &QInputMethodEvent::attributes() const
QInputMethodEvent();
QInputMethodEvent(const QString &preeditText, const QList<Attribute> &attributes);
void setCommitString(const QString &commitString, int replaceFrom = 0, int replaceLength = 0);
- QT_DEPRECATED void setTentativeCommitString(const QString &tentativeCommitString);
-
inline const QList<Attribute> &attributes() const { return attrs; }
inline const QString &preeditString() const { return preedit; }
inline const QString &commitString() const { return commit; }
inline int replacementStart() const { return replace_from; }
inline int replacementLength() const { return replace_length; }
+
+#if QT_DEPRECATED_SINCE(5, 0)
+ QT_DEPRECATED inline void setTentativeCommitString(const QString &string)
+ { tentativeCommit = string; }
QT_DEPRECATED inline const QString &tentativeCommitString() const { return tentativeCommit; }
+#endif
QInputMethodEvent(const QInputMethodEvent &other);
}
/*!
+ \fn QInputPanel *QGuiApplication::inputPanel() const
returns the input panel.
The input panel returns properties about the state and position of
the virtual keyboard. It also provides information about the position of the
current focused input element.
- \sa QInputPanel
+ \obsolete
+
+ \sa inputMethod()
*/
-QInputPanel *QGuiApplication::inputPanel() const
-{
- return inputMethod();
-}
/*!
\fn void QGuiApplication::fontDatabaseChanged()
static QWindow *modalWindow();
-#ifdef QT_DEPRECATED
+#if QT_DEPRECATED_SINCE(5, 0)
static QT_DEPRECATED QWindow *activeWindow() { return focusWindow(); }
#endif
static QWindow *focusWindow();
static void setDesktopSettingsAware(bool on);
static bool desktopSettingsAware();
- QT_DEPRECATED QInputPanel *inputPanel() const;
+#if QT_DEPRECATED_SINCE(5, 0)
+ QT_DEPRECATED QInputPanel *inputPanel() const { return inputMethod(); }
+#endif
QInputMethod *inputMethod() const;
static QPlatformNativeInterface *platformNativeInterface();
Q_ENUMS(Action)
public:
+#ifdef QT_DEPRECATED
QT_DEPRECATED QObject *inputItem() const;
QT_DEPRECATED void setInputItem(QObject *inputItemChanged);
// the window containing the editor
QT_DEPRECATED QWindow *inputWindow() const;
+#endif
QTransform inputItemTransform() const;
void setInputItemTransform(const QTransform &transform);
}
/*!
+ \fn bool QWindow::visible() const
Returns true if the window is set to visible.
\obsolete
*/
-bool QWindow::visible() const
-{
- return isVisible();
-}
bool QWindow::isVisible() const
{
void setSurfaceType(SurfaceType surfaceType);
SurfaceType surfaceType() const;
- QT_DEPRECATED bool visible() const;
+#if QT_DEPRECATED_SINCE(5, 0)
+ QT_DEPRECATED inline bool visible() const { return isVisible(); }
+#endif
bool isVisible() const;
}
/*!
+ \fn void QApplication::syncX()
Was used to synchronize with the X server in 4.x, here for source compatibility.
\internal
\obsolete
*/
-void QApplication::syncX()
-{
-}
void QApplicationPrivate::notifyLayoutDirectionChange()
{
*/
/*!
+ \fn QLocale QApplication::keyboardInputLocale()
\since 4.2
\obsolete
Returns the current keyboard input locale. Replaced with QInputMethod::locale()
*/
-QLocale QApplication::keyboardInputLocale()
-{
- return qApp ? qApp->inputMethod()->locale() : QLocale::c();
-}
/*!
+ \fn Qt::LayoutDirection QApplication::keyboardInputDirection()*
\since 4.2
\obsolete
Returns the current keyboard input direction. Replaced with QInputMethod::inputDirection()
*/
-Qt::LayoutDirection QApplication::keyboardInputDirection()
-{
- return qApp ? qApp->inputMethod()->inputDirection() : Qt::LeftToRight;
-}
bool qt_sendSpontaneousEvent(QObject *receiver, QEvent *event)
{
public:
QApplication(int &argc, char **argv, int = ApplicationFlags);
+#ifdef QT_DEPRECATED
QT_DEPRECATED QApplication(int &argc, char **argv, bool GUIenabled, int = ApplicationFlags);
+#endif
QApplication(int &argc, char **argv, Type, int = ApplicationFlags);
virtual ~QApplication();
static QWidget *topLevelAt(const QPoint &p);
static inline QWidget *topLevelAt(int x, int y) { return topLevelAt(QPoint(x, y)); }
- QT_DEPRECATED static void syncX();
+#if QT_DEPRECATED_SINCE(5, 0)
+ QT_DEPRECATED static inline void syncX() {}
+#endif
static void beep();
static void alert(QWidget *widget, int duration = 0);
virtual void saveState(QSessionManager& sm);
#endif
- QT_DEPRECATED static QLocale keyboardInputLocale();
- QT_DEPRECATED static Qt::LayoutDirection keyboardInputDirection();
+#if QT_DEPRECATED_SINCE(5, 0)
+ QT_DEPRECATED static QLocale keyboardInputLocale()
+ { return qApp ? qApp->inputMethod()->locale() : QLocale::c(); }
+ QT_DEPRECATED static Qt::LayoutDirection keyboardInputDirection()
+ { return qApp ? qApp->inputMethod()->inputDirection() : Qt::LeftToRight; }
+#endif
static int exec();
bool notify(QObject *, QEvent *);