mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00
kdeui: change the org.kde.StatusNotifierItem WindowId property type to qlonglong
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
f5c0cc05ee
commit
406bd42a7e
3 changed files with 5 additions and 6 deletions
|
@ -196,11 +196,10 @@ QString KStatusNotifierItemDBus::Status() const
|
||||||
return m_statusNotifierItem->metaObject()->enumerator(m_statusNotifierItem->metaObject()->indexOfEnumerator("ItemStatus")).valueToKey(m_statusNotifierItem->status());
|
return m_statusNotifierItem->metaObject()->enumerator(m_statusNotifierItem->metaObject()->indexOfEnumerator("ItemStatus")).valueToKey(m_statusNotifierItem->status());
|
||||||
}
|
}
|
||||||
|
|
||||||
int KStatusNotifierItemDBus::WindowId() const
|
qlonglong KStatusNotifierItemDBus::WindowId() const
|
||||||
{
|
{
|
||||||
#warning FIXME: WId type is ulong
|
|
||||||
if (m_statusNotifierItem->d->associatedWidget && m_statusNotifierItem->d->associatedWidget != m_statusNotifierItem->d->menu) {
|
if (m_statusNotifierItem->d->associatedWidget && m_statusNotifierItem->d->associatedWidget != m_statusNotifierItem->d->menu) {
|
||||||
return static_cast<int>(m_statusNotifierItem->d->associatedWidget->winId());
|
return static_cast<qlonglong>(m_statusNotifierItem->d->associatedWidget->winId());
|
||||||
} else {
|
} else {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -55,7 +55,7 @@ class KStatusNotifierItemDBus : public QObject
|
||||||
Q_PROPERTY(QString Id READ Id)
|
Q_PROPERTY(QString Id READ Id)
|
||||||
Q_PROPERTY(QString Title READ Title)
|
Q_PROPERTY(QString Title READ Title)
|
||||||
Q_PROPERTY(QString Status READ Status)
|
Q_PROPERTY(QString Status READ Status)
|
||||||
Q_PROPERTY(int WindowId READ WindowId)
|
Q_PROPERTY(qlonglong WindowId READ WindowId)
|
||||||
Q_PROPERTY(bool ItemIsMenu READ ItemIsMenu)
|
Q_PROPERTY(bool ItemIsMenu READ ItemIsMenu)
|
||||||
Q_PROPERTY(QString IconName READ IconName)
|
Q_PROPERTY(QString IconName READ IconName)
|
||||||
Q_PROPERTY(KDbusImageVector IconPixmap READ IconPixmap)
|
Q_PROPERTY(KDbusImageVector IconPixmap READ IconPixmap)
|
||||||
|
@ -107,7 +107,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* @return The id of the main window of the application that controls the item
|
* @return The id of the main window of the application that controls the item
|
||||||
*/
|
*/
|
||||||
int WindowId() const;
|
qlonglong WindowId() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return The item only support the context menu, the visualization should prefer sending ContextMenu() instead of Activate()
|
* @return The item only support the context menu, the visualization should prefer sending ContextMenu() instead of Activate()
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<property name="Id" type="s" access="read"/>
|
<property name="Id" type="s" access="read"/>
|
||||||
<property name="Title" type="s" access="read"/>
|
<property name="Title" type="s" access="read"/>
|
||||||
<property name="Status" type="s" access="read"/>
|
<property name="Status" type="s" access="read"/>
|
||||||
<property name="WindowId" type="i" access="read"/>
|
<property name="WindowId" type="x" access="read"/>
|
||||||
|
|
||||||
<!-- An additional path to add to the theme search path to find the icons specified above. -->
|
<!-- An additional path to add to the theme search path to find the icons specified above. -->
|
||||||
<property name="IconThemePath" type="s" access="read"/>
|
<property name="IconThemePath" type="s" access="read"/>
|
||||||
|
|
Loading…
Add table
Reference in a new issue