KJobWidgets 5.109.0
|
A UI delegate using KMessageBox for interaction (showing errors and warnings). More...
#include <KDialogJobUiDelegate>
Public Member Functions | |
KDialogJobUiDelegate () | |
Constructs a new KDialogJobUiDelegate. | |
KDialogJobUiDelegate (KJobUiDelegate::Flags flags, QWidget *window) | |
Constructs a new KDialogJobUiDelegate. | |
~KDialogJobUiDelegate () override | |
Destroys the KDialogJobUiDelegate. | |
bool | setJob (KJob *job) override |
virtual void | setWindow (QWidget *window) |
Associate this delegate with a window given by window . | |
void | showErrorMessage () override |
void | updateUserTimestamp (unsigned long time) |
Updates the last user action timestamp to the given time. | |
unsigned long | userTimestamp () const |
QWidget * | window () const |
Returns the window this delegate is associated with. | |
Protected Slots | |
void | slotWarning (KJob *job, const QString &plain, const QString &rich) override |
A UI delegate using KMessageBox for interaction (showing errors and warnings).
The KMessageBox will use window as a parent in an application-modal.
KDialogJobUiDelegate::KDialogJobUiDelegate | ( | ) |
Constructs a new KDialogJobUiDelegate.
|
explicit |
Constructs a new KDialogJobUiDelegate.
flags | allows to enable automatic error/warning handling |
window | the window associated with this delegate, see setWindow. |
|
override |
Destroys the KDialogJobUiDelegate.
|
override |
|
virtual |
Associate this delegate with a window given by window
.
Needed for dialog boxes to respect stacking order, centering to parent, focus going back to parent after closing...
window | the window to associate to |
void KDialogJobUiDelegate::updateUserTimestamp | ( | unsigned long | time | ) |
Updates the last user action timestamp to the given time.
See KApplication::updateUserTimestamp().
QWidget * KDialogJobUiDelegate::window | ( | ) | const |
Returns the window this delegate is associated with.