Commit b038191f authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port setMargins

parent 192b0f23
......@@ -62,7 +62,7 @@ KGrNHDialog::KGrNHDialog (const QString & levelName, const QString & levelHint,
QVBoxLayout * mainLayout2 = new QVBoxLayout (dad);
mainLayout2->setSpacing (spacing);
mainLayout2->setMargin (margin);
mainLayout2->setContentsMargins(margin, margin, margin, margin);
QLabel * nameL = new QLabel (i18n ("Name of level:"), dad);
mainLayout2->addWidget(nameL);
......@@ -126,7 +126,7 @@ KGrECDialog::KGrECDialog (int action, int gameIndex,
QVBoxLayout * mainLayout = new QVBoxLayout (dad);
mainLayout->setSpacing (spacing);
mainLayout->setMargin (margin);
mainLayout->setContentsMargins(margin, margin, margin, margin);
setLayout(mainLayout);
QHBoxLayout *hboxLayout5 = new QHBoxLayout();
......@@ -270,7 +270,7 @@ KGrLGDialog::KGrLGDialog (QFile * savedGames,
QWidget * dad = new QWidget (this);
QVBoxLayout * mainLayout = new QVBoxLayout (dad);
mainLayout->setSpacing (spacing);
mainLayout->setMargin (margin);
mainLayout->setContentsMargins(margin, margin, margin, margin);
setLayout(mainLayout);
QLabel * lgHeader = new QLabel (
......
......@@ -1712,7 +1712,7 @@ void KGrGame::checkHighScore()
int spacing = 10;
QVBoxLayout * mainLayout = new QVBoxLayout (hsn);
mainLayout->setSpacing (spacing);
mainLayout->setMargin (margin);
mainLayout->setContentsMargins(margin, margin, margin, margin);
QLabel * hsnMessage = new QLabel (
i18n ("<html><b>Congratulations !!!</b><br/>"
......@@ -1874,7 +1874,7 @@ void KGrGame::showHighScores()
int spacing = 10;
QVBoxLayout * mainLayout = new QVBoxLayout (hs);
mainLayout->setSpacing (spacing);
mainLayout->setMargin (margin);
mainLayout->setContentsMargins(margin, margin, margin, margin);
QLabel * hsHeader = new QLabel (i18n (
"<center><h2>KGoldrunner Hall of Fame</h2></center>"
......
......@@ -140,7 +140,7 @@ void KGrSLDialog::setupWidgets()
QVBoxLayout * mainLayout = new QVBoxLayout (dad);
mainLayout->setSpacing (spacing);
mainLayout->setMargin (margin);
mainLayout->setContentsMargins(margin, margin, margin, margin);
gameL = new QLabel
(i18n ("<html><b>Please select a game:</b></html>"), dad);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment