mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
clang-format: Set column width to 140
* Set column width to 140 * Use c++20 * Remove redundant virtual
This commit is contained in:
@@ -78,9 +78,8 @@ QSize RiuQwtPlotLegend::sizeHint() const
|
||||
|
||||
auto widgetSize = size();
|
||||
|
||||
int numColumns =
|
||||
std::max( 1, (int)legendLayout->columnsForWidth( widgetSize.width() - margins.left() - margins.right() ) );
|
||||
int numRows = legendLayout->itemCount() / numColumns;
|
||||
int numColumns = std::max( 1, (int)legendLayout->columnsForWidth( widgetSize.width() - margins.left() - margins.right() ) );
|
||||
int numRows = legendLayout->itemCount() / numColumns;
|
||||
if ( numRows == 0 )
|
||||
{
|
||||
return { 0, 0 };
|
||||
|
||||
Reference in New Issue
Block a user