mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-23 05:45:35 +08:00
Ref T447, toggleStayOnTop for CGuiApplication
This commit is contained in:
@@ -354,19 +354,13 @@ void SwiftGuiStd::onChangedWindowOpacity(int opacity)
|
||||
|
||||
void SwiftGuiStd::toogleWindowStayOnTop()
|
||||
{
|
||||
CGuiUtility::toggleStayOnTop(this);
|
||||
if (sGui) { sGui->toggleStayOnTop(); }
|
||||
}
|
||||
|
||||
void SwiftGuiStd::toggleWindowVisibility()
|
||||
{
|
||||
if (this->isVisible())
|
||||
{
|
||||
this->hide();
|
||||
}
|
||||
else
|
||||
{
|
||||
this->show();
|
||||
}
|
||||
if (this->isVisible()) { this->hide(); return; }
|
||||
this->show();
|
||||
}
|
||||
|
||||
void SwiftGuiStd::onStyleSheetsChanged()
|
||||
|
||||
@@ -88,16 +88,13 @@ protected:
|
||||
//! @}
|
||||
|
||||
//! Get a minimize action which minimizes the window
|
||||
|
||||
//! Actions for navigator @{
|
||||
QAction *getWindowMinimizeAction(QObject *parent);
|
||||
|
||||
//! Get a normal window action which minimizes the window
|
||||
QAction *getWindowNormalAction(QObject *parent);
|
||||
|
||||
//! Toggle window visibility action
|
||||
QAction *getToggleWindowVisibilityAction(QObject *parent);
|
||||
|
||||
//! Toggle window stay on top action
|
||||
QAction *getToggleStayOnTopAction(QObject *parent);
|
||||
//! @}
|
||||
|
||||
private:
|
||||
QScopedPointer<Ui::SwiftGuiStd> ui;
|
||||
|
||||
Reference in New Issue
Block a user