Commit 56ec05f3 authored by Pino Toscano's avatar Pino Toscano

TileCreatorDialog: use QDialogButtonBox

parent 1f17361b
......@@ -14,6 +14,7 @@
#include "TileCreatorDialog.h"
// Qt
#include <QPushButton>
#include <QTimer>
// Marble
......@@ -44,7 +45,7 @@ TileCreatorDialog::TileCreatorDialog(TileCreator *creator, QWidget *parent)
connect( d->m_creator, SIGNAL(progress(int)),
this, SLOT(setProgress(int)), Qt::QueuedConnection );
connect( d->uiWidget.cancelButton, SIGNAL(clicked()),
connect( d->uiWidget.buttonBox, SIGNAL(reject()),
this, SLOT(cancelTileCreation()) );
// Start the creation process
......@@ -53,7 +54,7 @@ TileCreatorDialog::TileCreatorDialog(TileCreator *creator, QWidget *parent)
void TileCreatorDialog::cancelTileCreation()
d->uiWidget.cancelButton->setEnabled( false );
d->uiWidget.buttonBox->button(QDialogButtonBox::Cancel)->setEnabled( false );
/** @todo: Cancelling mostly crashes Marble. Fix that and uncomment below */
// d->m_creator->cancelTileCreation();
......@@ -532,31 +532,11 @@
<layout class="QHBoxLayout">
<property name="spacing">
<widget class="QDialogButtonBox" name="buttonBox">
<property name="standardButtons">
<property name="orientation">
<property name="sizeHint" stdset="0">
<widget class="QPushButton" name="cancelButton">
<property name="text">
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment