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);
/// enable or disable all controls and rename the Close/Cancel button
- void enableControls(bool enable) const;
+ void enableControls(bool enable);
/// browse for a file
QString browse(QString const & in_name) const;
Buffer const * old_buffer_;
/// the buffer that will contain the result
Buffer const * new_buffer_;
-
- /// the window title
- mutable QString window_title_;
};