mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Bug 801428 - MozQWidget does not build due to wrong return value type. r=romaxa. DONTBUILD because NPOTB
This commit is contained in:
parent
a1592dc47c
commit
f53967a6a6
@ -415,7 +415,7 @@ void MozQWidget::showEvent(QShowEvent* aEvent)
|
||||
QGraphicsWidget::showEvent(aEvent);
|
||||
}
|
||||
|
||||
bool MozQWidget::SetCursor(nsCursor aCursor)
|
||||
void MozQWidget::SetCursor(nsCursor aCursor)
|
||||
{
|
||||
Qt::CursorShape cursor = Qt::ArrowCursor;
|
||||
switch(aCursor) {
|
||||
@ -468,16 +468,12 @@ bool MozQWidget::SetCursor(nsCursor aCursor)
|
||||
}
|
||||
|
||||
setCursor(cursor);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
bool MozQWidget::SetCursor(const QPixmap& aCursor, int aHotX, int aHotY)
|
||||
void MozQWidget::SetCursor(const QPixmap& aCursor, int aHotX, int aHotY)
|
||||
{
|
||||
QCursor bitmapCursor(aCursor, aHotX, aHotY);
|
||||
setCursor(bitmapCursor);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
void MozQWidget::setModal(bool modal)
|
||||
|
@ -22,7 +22,7 @@ public:
|
||||
* Mozilla helper.
|
||||
*/
|
||||
virtual void setModal(bool);
|
||||
virtual bool SetCursor(nsCursor aCursor);
|
||||
virtual void SetCursor(nsCursor aCursor);
|
||||
virtual void dropReceiver() { mReceiver = 0x0; };
|
||||
virtual nsWindow* getReceiver() { return mReceiver; };
|
||||
|
||||
@ -75,7 +75,7 @@ protected:
|
||||
virtual bool event(QEvent* aEvent);
|
||||
virtual QVariant inputMethodQuery(Qt::InputMethodQuery aQuery) const;
|
||||
|
||||
bool SetCursor(const QPixmap& aPixmap, int, int);
|
||||
void SetCursor(const QPixmap& aPixmap, int, int);
|
||||
|
||||
private:
|
||||
void sendPressReleaseKeyEvent(int key, const QChar* letter = 0, bool autorep = false, ushort count = 1);
|
||||
|
Loading…
Reference in New Issue
Block a user