5 #include <QDialogButtonBox>
12 /** Maemo- and Mac-friendly dialog box. */
13 class Dialog: public QDialog
18 explicit Dialog(QWidget *parent = 0);
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);
31 QScrollArea *scroller;
33 QVBoxLayout *contentLayout;
34 QDialogButtonBox *buttonBox;