mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 10:22:48 +00:00
kdeui: format and indent kdialogjobuidelegate source and header files
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
9a2e49d59a
commit
786a11eeb0
2 changed files with 13 additions and 15 deletions
|
@ -43,7 +43,7 @@ public:
|
|||
KDialogJobUiDelegate::KDialogJobUiDelegate()
|
||||
: d(new Private())
|
||||
{
|
||||
d->errorParentWidget = 0L;
|
||||
d->errorParentWidget = nullptr;
|
||||
#if defined Q_WS_X11
|
||||
d->userTimestamp = QX11Info::appUserTime();
|
||||
#endif
|
||||
|
@ -64,11 +64,12 @@ QWidget *KDialogJobUiDelegate::window() const
|
|||
return d->errorParentWidget;
|
||||
}
|
||||
|
||||
void KDialogJobUiDelegate::updateUserTimestamp( unsigned long time )
|
||||
void KDialogJobUiDelegate::updateUserTimestamp(unsigned long time)
|
||||
{
|
||||
#if defined Q_WS_X11
|
||||
if( d->userTimestamp == 0 || NET::timestampCompare( time, d->userTimestamp ) > 0 )
|
||||
d->userTimestamp = time;
|
||||
if (d->userTimestamp == 0 || NET::timestampCompare(time, d->userTimestamp) > 0) {
|
||||
d->userTimestamp = time;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -79,19 +80,18 @@ unsigned long KDialogJobUiDelegate::userTimestamp() const
|
|||
|
||||
void KDialogJobUiDelegate::showErrorMessage()
|
||||
{
|
||||
if ( job()->error() != KJob::KilledJobError )
|
||||
{
|
||||
KMessageBox::queuedMessageBox( d->errorParentWidget, KMessageBox::Error, job()->errorString() );
|
||||
if (job()->error() != KJob::KilledJobError) {
|
||||
KMessageBox::queuedMessageBox(d->errorParentWidget, KMessageBox::Error, job()->errorString());
|
||||
}
|
||||
}
|
||||
|
||||
void KDialogJobUiDelegate::slotWarning(KJob* /*job*/, const QString &plain, const QString &/*rich*/)
|
||||
void KDialogJobUiDelegate::slotWarning(KJob* job, const QString &plain, const QString &rich)
|
||||
{
|
||||
if (isAutoWarningHandlingEnabled())
|
||||
{
|
||||
KMessageBox::queuedMessageBox(d->errorParentWidget, KMessageBox::Information, plain);
|
||||
Q_UNUSED(job);
|
||||
Q_UNUSED(rich);
|
||||
if (isAutoWarningHandlingEnabled()) {
|
||||
KMessageBox::queuedMessageBox(d->errorParentWidget, KMessageBox::Information, plain);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#include "moc_kdialogjobuidelegate.cpp"
|
||||
|
|
|
@ -44,8 +44,6 @@ public:
|
|||
*/
|
||||
virtual ~KDialogJobUiDelegate();
|
||||
|
||||
public:
|
||||
|
||||
/**
|
||||
* Associate this job with a window given by @p window.
|
||||
* @param window the window to associate to
|
||||
|
@ -64,7 +62,7 @@ public:
|
|||
* Updates the last user action timestamp to the given time.
|
||||
* See KApplication::updateUserTimestamp().
|
||||
*/
|
||||
void updateUserTimestamp( unsigned long time );
|
||||
void updateUserTimestamp(unsigned long time);
|
||||
|
||||
/**
|
||||
* @internal
|
||||
|
|
Loading…
Add table
Reference in a new issue