diff options
author | Jeremy Katz <jeremy.katz@nokia.com> | 2009-09-25 14:42:01 (GMT) |
---|---|---|
committer | Jeremy Katz <jeremy.katz@nokia.com> | 2009-09-25 14:42:01 (GMT) |
commit | 2b1f40b7dcf7ef69fe1f832ff544fcb31cf5c3a1 (patch) | |
tree | f6ddb01707d2e59e29b47ffcd2ea016c3164fc54 /src/scripttools/debugging/qscriptbreakpointswidget.cpp | |
parent | 586722a4e288e9f1e9d7751a0e87e39c274144d8 (diff) | |
download | Qt-2b1f40b7dcf7ef69fe1f832ff544fcb31cf5c3a1.zip Qt-2b1f40b7dcf7ef69fe1f832ff544fcb31cf5c3a1.tar.gz Qt-2b1f40b7dcf7ef69fe1f832ff544fcb31cf5c3a1.tar.bz2 |
ifdefs to allow compilation with QT_NO_MAINWINDOW and QT_NO_TOOLBAR
Reviewed-by: Paul
Diffstat (limited to 'src/scripttools/debugging/qscriptbreakpointswidget.cpp')
-rw-r--r-- | src/scripttools/debugging/qscriptbreakpointswidget.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/scripttools/debugging/qscriptbreakpointswidget.cpp b/src/scripttools/debugging/qscriptbreakpointswidget.cpp index 55479a3..356c6d5 100644 --- a/src/scripttools/debugging/qscriptbreakpointswidget.cpp +++ b/src/scripttools/debugging/qscriptbreakpointswidget.cpp @@ -306,13 +306,17 @@ QScriptBreakpointsWidget::QScriptBreakpointsWidget(QWidget *parent) QObject::connect(d->deleteBreakpointAction, SIGNAL(triggered()), this, SLOT(_q_deleteBreakpoint())); +#ifndef QT_NO_TOOLBAR QToolBar *toolBar = new QToolBar(); toolBar->addAction(newBreakpointAction); toolBar->addAction(d->deleteBreakpointAction); +#endif QVBoxLayout *vbox = new QVBoxLayout(this); vbox->setMargin(0); +#ifndef QT_NO_TOOLBAR vbox->addWidget(toolBar); +#endif vbox->addWidget(d->newBreakpointWidget); vbox->addWidget(d->view); } |