r24534 by jghali - #16483: Unify margins and spacing for XTG dialog <bubu>

scribus-commit scribus-commit at lists.scribus.net
Sat Feb 27 23:10:39 UTC 2021


Author: jghali
Date: Sat Feb 27 23:10:38 2021
New Revision: 24534

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=24534
Log:
#16483: Unify margins and spacing for XTG dialog <bubu>

Modified:
    trunk/Scribus/scribus/plugins/gettext/xtgim/xtgdialog.cpp

Modified: trunk/Scribus/scribus/plugins/gettext/xtgim/xtgdialog.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=24534&path=/trunk/Scribus/scribus/plugins/gettext/xtgim/xtgdialog.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/gettext/xtgim/xtgdialog.cpp	(original)
+++ trunk/Scribus/scribus/plugins/gettext/xtgim/xtgdialog.cpp	Sat Feb 27 23:10:38 2021
@@ -41,37 +41,37 @@
 {
 	setModal(true);
 	setWindowIcon(QIcon(IconManager::instance().loadIcon("AppIcon.png")));
-	setWindowTitle( tr("Quark XPress Tags Importer Options"));
-
-	QBoxLayout* layout = new QVBoxLayout(this);
-	layout->setMargin(0);
-	layout->setSpacing(0);
-
-	QBoxLayout* playout = new QHBoxLayout;
-	playout->setMargin(5);
-	playout->setSpacing(5);
-	prefixCheck = new QCheckBox( tr("Use document name as a prefix for Styles"), this);
-	prefixCheck->setChecked(prefix);
-	prefixCheck->setToolTip( "<qt>" + tr("Prepend the document name to the Style name in Scribus") +"</qt>");
+	setWindowTitle( tr("Quark XPress Tags Importer Options"));
+
+	QBoxLayout* layout = new QVBoxLayout(this);
+	layout->setContentsMargins(9, 9, 9, 9);
+	layout->setSpacing(6);
+
+	QBoxLayout* playout = new QHBoxLayout;
+	playout->setContentsMargins(0, 0, 0, 0);
+	playout->setSpacing(6);
+	prefixCheck = new QCheckBox( tr("Use document name as a prefix for Styles"), this);
+	prefixCheck->setChecked(prefix);
+	prefixCheck->setToolTip( "<qt>" + tr("Prepend the document name to the Style name in Scribus") +"</qt>");
 	playout->addWidget(prefixCheck);
-	layout->addLayout(playout);
-
-	QBoxLayout* dlayout = new QHBoxLayout;
-	dlayout->setMargin(5);
-	dlayout->setSpacing(5);
-	doNotAskCheck = new QCheckBox( tr("Do not ask again"), this);
-	doNotAskCheck->setChecked(false);
-	doNotAskCheck->setToolTip( "<qt>" + tr("Make these settings the default and do not prompt again when importing an XPress Tags document") +"</qt>");
+	layout->addLayout(playout);
+
+	QBoxLayout* dlayout = new QHBoxLayout;
+	dlayout->setContentsMargins(0, 0, 0, 0);
+	dlayout->setSpacing(6);
+	doNotAskCheck = new QCheckBox( tr("Do not ask again"), this);
+	doNotAskCheck->setChecked(false);
+	doNotAskCheck->setToolTip( "<qt>" + tr("Make these settings the default and do not prompt again when importing an XPress Tags document") +"</qt>");
 	//dlayout->addStretch(10);
 	dlayout->addWidget(doNotAskCheck);
-	layout->addLayout(dlayout);
-
-	QBoxLayout* blayout = new QHBoxLayout;
-	blayout->setMargin(5);
-	blayout->setSpacing(5);
-	blayout->addStretch(10);
-	okButton = new QPushButton( tr("OK"), this);
-	blayout->addWidget(okButton);
+	layout->addLayout(dlayout);
+
+	QBoxLayout* blayout = new QHBoxLayout;
+	blayout->setContentsMargins(0, 0, 0, 0);
+	blayout->setSpacing(6);
+	blayout->addStretch(10);
+	okButton = new QPushButton( tr("OK"), this);
+	blayout->addWidget(okButton);
 	cancelButton = new QPushButton( tr("Cancel"), this);
 	blayout->addWidget(cancelButton);
 	layout->addLayout(blayout);




More information about the scribus-commit mailing list