progressBar->setValue(0);
progressBar->setEnabled(false);
+ closePB->setCursor(Qt::ArrowCursor);
+
bc().setPolicy(ButtonPolicy::OkApplyCancelPolicy);
bc().setOK(okPB);
}
}
-void GuiCompare::enableControls(bool enable) const
+void GuiCompare::enableControls(bool enable)
{
+ // Set the hourglass cursor for the dialog, but
+ // never for the cancel button.
+ setCursor(enable ? Qt::ArrowCursor : Qt::WaitCursor);
+
newFileLA->setEnabled(enable);
newFilePB->setEnabled(enable);
newFileCB->setEnabled(enable);
void GuiCompare::error()
{
Alert::error(_("Error"), _("Error while comparing documents."));
- window_title_ = windowTitle();
finished(true);
}
dest_buffer_->markClean();
theBufferList().release(dest_buffer_);
}
- setWindowTitle(window_title_);
progressBar->setValue(0);
statusBar->showMessage(qt_("Aborted"), 5000);
} else {
{
progressBar->setMaximum(max);
}
-
void GuiCompare::setStatusMessage(QString msg)
void GuiCompare::slotCancel()
{
if (compare_ && compare_->isRunning()) {
- window_title_ = windowTitle();
- setWindowTitle(window_title_ + " " + qt_("(cancelling)"));
statusBar->showMessage(qt_("Aborting process..."));
compare_->abort();
} else {