MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / refreshTitleWidget

Method refreshTitleWidget

Telegram/SourceFiles/window/main_window.cpp:655–667  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

653}
654
655void MainWindow::refreshTitleWidget() {
656 if (Ui::Platform::NativeWindowFrameSupported()
657 && Core::App().settings().nativeWindowFrame()) {
658 setNativeFrame(true);
659 if (Platform::NativeTitleRequiresShadow()) {
660 _titleShadow.create(this);
661 _titleShadow->show();
662 }
663 } else {
664 setNativeFrame(false);
665 _titleShadow.destroy();
666 }
667}
668
669void MainWindow::updateMinimumSize() {
670 setMinimumSize(QSize(computeMinWidth(), computeMinHeight()));

Callers

nothing calls this directly

Calls 7

AppClass · 0.85
nativeWindowFrameMethod · 0.80
settingsMethod · 0.80
createMethod · 0.45
showMethod · 0.45
destroyMethod · 0.45

Tested by

no test coverage detected