mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
Disable minimize/maximize/close buttons of simulator settings windows
This commit is contained in:
@@ -698,6 +698,17 @@ namespace BlackGui
|
||||
return mw;
|
||||
}
|
||||
|
||||
void CGuiUtility::disableMinMaxCloseButtons(QWidget *window)
|
||||
{
|
||||
if (!window->windowFlags().testFlag(Qt::CustomizeWindowHint))
|
||||
{
|
||||
window->setWindowFlag(Qt::CustomizeWindowHint);
|
||||
window->setWindowFlag(Qt::WindowTitleHint);
|
||||
}
|
||||
window->setWindowFlag(Qt::WindowMinMaxButtonsHint, false);
|
||||
window->setWindowFlag(Qt::WindowCloseButtonHint, false);
|
||||
}
|
||||
|
||||
QGraphicsOpacityEffect *CGuiUtility::fadeInWidget(int durationMs, QWidget *widget, double startValue, double endValue)
|
||||
{
|
||||
// http://stackoverflow.com/questions/19087822/how-to-make-qt-widgets-fade-in-or-fade-out#
|
||||
|
||||
Reference in New Issue
Block a user