mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 10:22:49 +00:00
generic: tweak margins
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
2b9066142a
commit
740366f940
3 changed files with 9 additions and 0 deletions
|
@ -768,6 +768,8 @@ KatePrintHeaderFooter::KatePrintHeaderFooter( QWidget *parent )
|
|||
hbFontPreview = new KHBox( this );
|
||||
hbFontPreview->setFrameStyle( QFrame::Panel|QFrame::Sunken );
|
||||
lFontPreview = new QLabel( hbFontPreview );
|
||||
const int margin = KDialog::marginHint();
|
||||
lFontPreview->setContentsMargins(margin, 0, margin, 0);
|
||||
lo2->addWidget( hbFontPreview );
|
||||
lo2->setStretchFactor( hbFontPreview, 1 );
|
||||
QPushButton *btnChooseFont = new QPushButton( i18n("Choo&se Font..."), this );
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
#include <kmessagebox.h>
|
||||
#include <kshell.h>
|
||||
#include <kconfiggroup.h>
|
||||
#include <kdialog.h>
|
||||
#include <qmenu.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
@ -395,6 +396,8 @@ void RandRConfig::identifyOutputs()
|
|||
fnt.setPixelSize(100);
|
||||
si->setFont(fnt);
|
||||
si->setAlignment(Qt::AlignCenter);
|
||||
const int margin = (KDialog::marginHint() * 2);
|
||||
si->setContentsMargins(margin, 0, margin, 0);
|
||||
QRect targetGeometry(QPoint(0,0), si->sizeHint());
|
||||
targetGeometry.moveCenter(it.key());
|
||||
hb->setGeometry(targetGeometry);
|
||||
|
|
|
@ -20,6 +20,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
|
||||
#include "geometrytip.h"
|
||||
|
||||
#include <kdialog.h>
|
||||
|
||||
namespace KWin
|
||||
{
|
||||
|
||||
|
@ -39,6 +41,8 @@ GeometryTip::GeometryTip(const XSizeHints* xSizeHints)
|
|||
label = new QLabel(this);
|
||||
label->setAlignment(Qt::AlignCenter | Qt::AlignTop);
|
||||
label->setIndent(0);
|
||||
const int margin = KDialog::marginHint();
|
||||
label->setContentsMargins(margin, 0, margin, 0);
|
||||
}
|
||||
|
||||
void GeometryTip::setGeometry(const QRect& geom)
|
||||
|
|
Loading…
Add table
Reference in a new issue