Mailinglist Archive: yast-commit (819 mails)

< Previous Next >
[yast-commit] r54912 - /branches/tmp/sh/tabbed-pkg-browsing/qt-pkg/src/YQPackageSelector.cc
  • From: sh-sh-sh@xxxxxxxxxxxxxxxx
  • Date: Thu, 22 Jan 2009 14:48:04 -0000
  • Message-id: <E1LQ0qi-0002li-5l@xxxxxxxxxxxxxxxx>
Author: sh-sh-sh
Date: Thu Jan 22 15:48:03 2009
New Revision: 54912

URL: http://svn.opensuse.org/viewcvs/yast?rev=54912&view=rev
Log:
consistent margins

Modified:
branches/tmp/sh/tabbed-pkg-browsing/qt-pkg/src/YQPackageSelector.cc

Modified: branches/tmp/sh/tabbed-pkg-browsing/qt-pkg/src/YQPackageSelector.cc
URL:
http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/tabbed-pkg-browsing/qt-pkg/src/YQPackageSelector.cc?rev=54912&r1=54911&r2=54912&view=diff
==============================================================================
--- branches/tmp/sh/tabbed-pkg-browsing/qt-pkg/src/YQPackageSelector.cc
(original)
+++ branches/tmp/sh/tabbed-pkg-browsing/qt-pkg/src/YQPackageSelector.cc Thu Jan
22 15:48:03 2009
@@ -26,7 +26,7 @@
#define GLOBAL_UPDATE_CONFIRMATION_THRESHOLD 20
#define ENABLE_SOURCE_RPMS 0
#define BRAINDEAD_LIB_NAMING_SCHEME 1
-#define MARGIN 10 // around the
widget
+#define MARGIN 6 // around the
widget


#include <fstream>
@@ -219,7 +219,10 @@
YQPackageSelector::basicLayout()
{
QVBoxLayout *layout = new QVBoxLayout();
- layout->setContentsMargins( MARGIN, 0, 0, MARGIN );
+ layout->setContentsMargins( MARGIN, // left
+ 0, // top
+ MARGIN, // right
+ MARGIN ); // bottom
setLayout( layout );
layoutMenuBar( this );

@@ -358,6 +361,9 @@
YQPackageSelector::layoutRightPane( QWidget *parent )
{
QVBoxLayout *layout = new QVBoxLayout( parent );
+ YUI_CHECK_NEW( layout );
+ layout->setContentsMargins( 0, 0, 0, 0 );
+
QSplitter * splitter = new QSplitter( Qt::Vertical, parent );
YUI_CHECK_NEW( splitter );
layout->addWidget(splitter);
@@ -487,8 +493,11 @@
YUI_CHECK_NEW( button_box );
parent->layout()->addWidget( button_box );

- QHBoxLayout *layout = new QHBoxLayout(button_box);
- button_box->setLayout(layout);
+ QHBoxLayout * layout = new QHBoxLayout( button_box );
+ YUI_CHECK_NEW( layout );
+
+ button_box->setLayout( layout );
+ layout->setContentsMargins( 0, 0, 0, 0 );

layout->addStretch();


--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages