Back to index

texmacs  1.0.7.15
Public Slots | Public Member Functions
QTMTabWidget Class Reference

Implements a QTabWidget which resizes itself to the currently displayed page. More...

#include <QTMMenuHelper.hpp>

List of all members.

Public Slots

void resizeOthers (int index)

Public Member Functions

 QTMTabWidget (QWidget *p=NULL)

Detailed Description

Implements a QTabWidget which resizes itself to the currently displayed page.

Definition at line 162 of file QTMMenuHelper.hpp.


Constructor & Destructor Documentation

QTMTabWidget::QTMTabWidget ( QWidget *  p = NULL)

Definition at line 138 of file QTMMenuHelper.cpp.

                                     : QTabWidget(p) {
  QObject::connect(this, SIGNAL(currentChanged(int)), this, SLOT(resizeOthers(int)));
}

Here is the call graph for this function:


Member Function Documentation

void QTMTabWidget::resizeOthers ( int  index) [slot]

Definition at line 143 of file QTMMenuHelper.cpp.

                                    {
  for(int i = 0; i < count(); ++i) {
    if (i != index)
      widget(i)->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Ignored);
      else
        widget(i)->setSizePolicy(QSizePolicy::MinimumExpanding, 
                                 QSizePolicy::MinimumExpanding);
        }

  if (layout())
    layout()->activate();
  window()->resize(minimumSizeHint());
}

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following files: