Qt 4.8
Classes | Functions
qtabwidget.cpp File Reference
#include "qtabwidget.h"
#include "private/qwidget_p.h"
#include "private/qtabbar_p.h"
#include "qapplication.h"
#include "qbitmap.h"
#include "qdesktopwidget.h"
#include "qevent.h"
#include "qlayout.h"
#include "qstackedwidget.h"
#include "qstyle.h"
#include "qstyleoption.h"
#include "qstylepainter.h"
#include "qtabbar.h"
#include "qtoolbutton.h"
#include "moc_qtabwidget.cpp"

Go to the source code of this file.

Classes

class  QTabWidgetPrivate
 

Functions

static QSize basicSize (bool horizontal, const QSize &lc, const QSize &rc, const QSize &s, const QSize &t)
 

Function Documentation

◆ basicSize()

static QSize basicSize ( bool  horizontal,
const QSize lc,
const QSize rc,
const QSize s,
const QSize t 
)
inlinestatic
Warning
This function is not part of the public interface.

Definition at line 836 of file qtabwidget.cpp.

Referenced by QTabWidget::heightForWidth(), QTabWidget::minimumSizeHint(), and QTabWidget::sizeHint().

838 {
839  return horizontal
840  ? QSize(qMax(s.width(), t.width() + rc.width() + lc.width()),
841  s.height() + (qMax(rc.height(), qMax(lc.height(), t.height()))))
842  : QSize(s.width() + (qMax(rc.width(), qMax(lc.width(), t.width()))),
843  qMax(s.height(), t.height() + rc.height() + lc.height()));
844 }
Q_DECL_CONSTEXPR const T & qMax(const T &a, const T &b)
Definition: qglobal.h:1217
int width() const
Returns the width.
Definition: qsize.h:126
int height() const
Returns the height.
Definition: qsize.h:129
The QSize class defines the size of a two-dimensional object using integer point precision.
Definition: qsize.h:53