Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
src_gui_kernel_qlayoutitem.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
5int MyLayout::heightForWidth(int w) const
6{
7 if (cache_dirty || cached_width != w) {
8 MyLayout *that = const_cast<MyLayout *>(this);
9 int h = calculateHeightForWidth(w);
10 that->cached_hfw = h;
11 return h;
12 }
13 return cached_hfw;
14}
GLfloat GLfloat GLfloat w
[0]
GLfloat GLfloat GLfloat GLfloat h