MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / titleBarHeight

Method titleBarHeight

app/src/Platform/CSD.cpp:909–922  ·  view source on GitHub ↗

* @brief Returns the current title bar height in pixels. */

Source from the content-addressed store, hash-verified

907 * @brief Returns the current title bar height in pixels.
908 */
909int Window::titleBarHeight() const
910{
911 if (!m_window)
912 return CSD::TitleBarHeight;
913
914 const auto state = m_window->windowStates();
915 if (state & Qt::WindowFullScreen)
916 return 0;
917
918 if (state & Qt::WindowMaximized)
919 return CSD::TitleBarHeightMaximized;
920
921 return CSD::TitleBarHeight;
922}
923
924/**
925 * @brief Sets a custom color for the title bar.

Callers 1

frameTopInsetMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected