Cocoa: Implement raise() and lower().
parent
67f18cafcc
commit
28391442e7
|
|
@ -60,6 +60,9 @@ public:
|
|||
void setGeometry(const QRect &rect);
|
||||
void setVisible(bool visible);
|
||||
void setWindowTitle(const QString &title);
|
||||
void raise();
|
||||
void lower();
|
||||
|
||||
WId winId() const;
|
||||
NSView *contentView() const;
|
||||
|
||||
|
|
|
|||
|
|
@ -110,6 +110,17 @@ void QCocoaWindow::setWindowTitle(const QString &title)
|
|||
CFRelease(windowTitle);
|
||||
}
|
||||
|
||||
void QCocoaWindow::raise()
|
||||
{
|
||||
// ### handle spaces (see Qt 4 raise_sys in qwidget_mac.mm)
|
||||
[m_nsWindow orderFront];
|
||||
}
|
||||
|
||||
void QCocoaWindow::lower()
|
||||
{
|
||||
[m_nsWindow orderBack];
|
||||
}
|
||||
|
||||
WId QCocoaWindow::winId() const
|
||||
{
|
||||
return WId(m_nsWindow);
|
||||
|
|
|
|||
Loading…
Reference in New Issue