mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 10:52:49 +00:00
kdeui: format and indent
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
ac1f9e2eb9
commit
a70b781c58
1 changed files with 7 additions and 6 deletions
|
@ -238,12 +238,11 @@ int KMessageBox::createKMessageBox(KDialog *dialog, const QIcon &icon, const QSt
|
||||||
scrollPal.setColor(QPalette::Window, Qt::transparent);
|
scrollPal.setColor(QPalette::Window, Qt::transparent);
|
||||||
messageScrollArea->viewport()->setPalette(scrollPal);
|
messageScrollArea->viewport()->setPalette(scrollPal);
|
||||||
hLayout->addWidget(messageScrollArea,5);
|
hLayout->addWidget(messageScrollArea,5);
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
hLayout->addWidget(messageLabel,5);
|
hLayout->addWidget(messageLabel,5);
|
||||||
|
}
|
||||||
|
|
||||||
|
const bool usingListWidget = !strlist.isEmpty();
|
||||||
const bool usingListWidget=!strlist.isEmpty();
|
|
||||||
if (usingListWidget) {
|
if (usingListWidget) {
|
||||||
// enable automatic wrapping since the listwidget has already a good initial width
|
// enable automatic wrapping since the listwidget has already a good initial width
|
||||||
messageLabel->setWordWrap(true);
|
messageLabel->setWordWrap(true);
|
||||||
|
@ -368,8 +367,10 @@ int KMessageBox::questionYesNo(QWidget *parent, const QString &text,
|
||||||
const QString &dontAskAgainName,
|
const QString &dontAskAgainName,
|
||||||
Options options)
|
Options options)
|
||||||
{
|
{
|
||||||
return questionYesNoList(parent, text, QStringList(), caption,
|
return questionYesNoList(
|
||||||
buttonYes, buttonNo, dontAskAgainName, options);
|
parent, text, QStringList(), caption,
|
||||||
|
buttonYes, buttonNo, dontAskAgainName, options
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
int KMessageBox::questionYesNoWId(WId parent_id, const QString &text,
|
int KMessageBox::questionYesNoWId(WId parent_id, const QString &text,
|
||||||
|
|
Loading…
Add table
Reference in a new issue