5 #include <QDialogButtonBox>
12 /** Maemo- and Mac-friendly dialog box. */
13 class Dyalog: public QDialog
18 explicit Dyalog(QWidget *parent, bool showButtons = true);
20 /** Add widget to the scrollable content pane. */
21 void addWidget(QWidget *widget);
23 /** Add stretch to the scrollable content pane. */
24 void addStretch(int stretch = 0);
26 /** Add button to the dialog button box. */
27 void addButton(QPushButton *button,
28 QDialogButtonBox::ButtonRole role = QDialogButtonBox::AcceptRole);
30 /** Add standard button to the dialog button box. */
31 QPushButton *addButton(QDialogButtonBox::StandardButton button);
34 QScrollArea *scroller;
36 QVBoxLayout *contentLayout;
37 QDialogButtonBox *buttonBox;