Qt 4.8
Functions
qtoolbarlayout.cpp File Reference
#include <qaction.h>
#include <qwidgetaction.h>
#include <qtoolbar.h>
#include <qstyleoption.h>
#include <qtoolbutton.h>
#include <qmenu.h>
#include <qdebug.h>
#include <qmath.h>
#include "qmainwindowlayout_p.h"
#include "qtoolbarextension_p.h"
#include "qtoolbarlayout_p.h"
#include "qtoolbarseparator_p.h"

Go to the source code of this file.

Functions

static bool defaultWidgetAction (QToolBarItem *item)
 
QMainWindowLayoutqt_mainwindow_layout (const QMainWindow *window)
 

Function Documentation

◆ defaultWidgetAction()

static bool defaultWidgetAction ( QToolBarItem item)
static

Definition at line 352 of file qtoolbarlayout.cpp.

Referenced by QToolBarLayout::layoutActions().

353 {
355  return a != 0 && a->defaultWidget() == item->widget();
356 }
long ASN1_INTEGER_get ASN1_INTEGER * a
QAction * action
T * qobject_cast(QObject *object)
Definition: qobject.h:375
virtual QWidget * widget()
Returns the widget managed by this item.
The QWidgetAction class extends QAction by an interface for inserting custom widgets into action base...
Definition: qwidgetaction.h:57
QWidget * defaultWidget() const
Returns the default widget.

◆ qt_mainwindow_layout()

QMainWindowLayout* qt_mainwindow_layout ( const QMainWindow window)

Definition at line 111 of file qmainwindow.cpp.

Referenced by QToolBarLayout::setExpanded(), and QToolBarLayout::setGeometry().

112 {
113  return QMainWindowPrivate::mainWindowLayout(mainWindow);
114 }
static QMainWindowLayout * mainWindowLayout(const QMainWindow *mainWindow)