Qt 4.8
Classes | Enumerations | Functions | Variables
qdialogbuttonbox.cpp File Reference
#include <QtCore/qhash.h>
#include <QtGui/qpushbutton.h>
#include <QtGui/qstyle.h>
#include <QtGui/qlayout.h>
#include <QtGui/qdialog.h>
#include <QtGui/qapplication.h>
#include <QtGui/private/qwidget_p.h>
#include <QtGui/qaction.h>
#include "qdialogbuttonbox.h"
#include "moc_qdialogbuttonbox.cpp"

Go to the source code of this file.

Classes

class  QDialogButtonBoxPrivate
 

Enumerations

enum  {
  AcceptRole = QDialogButtonBox::AcceptRole, RejectRole = QDialogButtonBox::RejectRole, DestructiveRole = QDialogButtonBox::DestructiveRole, ActionRole = QDialogButtonBox::ActionRole,
  HelpRole = QDialogButtonBox::HelpRole, YesRole = QDialogButtonBox::YesRole, NoRole = QDialogButtonBox::NoRole, ApplyRole = QDialogButtonBox::ApplyRole,
  ResetRole = QDialogButtonBox::ResetRole, AlternateRole = 0x10000000, Stretch = 0x20000000, EOL = 0x40000000,
  Reverse = 0x80000000
}
 

Functions

static QDialogButtonBox::ButtonRole roleFor (QDialogButtonBox::StandardButton button)
 

Variables

static const uint layouts [2][5][14]
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
AcceptRole 
RejectRole 
DestructiveRole 
ActionRole 
HelpRole 
YesRole 
NoRole 
ApplyRole 
ResetRole 
AlternateRole 
Stretch 
EOL 
Reverse 

Definition at line 157 of file qdialogbuttonbox.cpp.

157  {
167 
168  AlternateRole = 0x10000000,
169  Stretch = 0x20000000,
170  EOL = 0x40000000,
171  Reverse = 0x80000000
172 };

Function Documentation

◆ roleFor()

Definition at line 174 of file qdialogbuttonbox.cpp.

Referenced by QDialogButtonBoxPrivate::createButton().

175 {
176  switch (button) {
184 
189 
192 
195 
198 
202 
206 
210 
211  case QDialogButtonBox::NoButton: // NoButton means zero buttons, not "No" button
212  ;
213  }
214 
216 }

Variable Documentation

◆ layouts

const uint layouts[2][5][14]
static