Bug 801428 - MozQWidget does not build due to wrong return value type. r=romaxa. DONTBUILD because NPOTB

This commit is contained in:
Oleg Romashin 2012-10-14 10:28:26 -07:00
parent a1592dc47c
commit f53967a6a6
2 changed files with 4 additions and 8 deletions

View File

@ -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)

View File

@ -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);