[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase/konqueror/settings/filetypes
From:       Laurent Montel <montel () kde ! org>
Date:       2007-01-12 14:00:29
Message-ID: 1168610429.605570.17455.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 622625 by mlaurent:

Fix layout


 M  +8 -5      filegroupdetails.cpp  


--- trunk/KDE/kdebase/konqueror/settings/filetypes/filegroupdetails.cpp #622624:622625
@@ -27,17 +27,18 @@
 FileGroupDetails::FileGroupDetails(QWidget *parent)
     : QWidget( parent )
 {
-  QWidget * parentWidget = this;
-  QVBoxLayout *secondLayout = new QVBoxLayout(parentWidget);
+  QVBoxLayout *secondLayout = new QVBoxLayout;
   secondLayout->setSpacing(KDialog::spacingHint());
 
-  m_autoEmbed = new Q3ButtonGroup( i18n("Left Click Action"), parentWidget );
+  m_autoEmbed = new Q3ButtonGroup( i18n("Left Click Action"));
   m_autoEmbed->setOrientation( Qt::Vertical );
   m_autoEmbed->layout()->setSpacing( KDialog::spacingHint() );
   secondLayout->addWidget( m_autoEmbed );
   // The order of those two items is very important. If you change it, fix typeslistitem.cpp !
-  new QRadioButton( i18n("Show file in embedded viewer"), m_autoEmbed );
-  new QRadioButton( i18n("Show file in separate viewer"), m_autoEmbed );
+  QRadioButton *r1 = new QRadioButton( i18n("Show file in embedded viewer"));
+  QRadioButton *r2 = new QRadioButton( i18n("Show file in separate viewer"));
+  m_autoEmbed->layout()->addWidget(r1);
+  m_autoEmbed->layout()->addWidget(r2);
   connect(m_autoEmbed, SIGNAL( clicked( int ) ), SLOT( slotAutoEmbedClicked( int ) ));
 
   m_autoEmbed->setWhatsThis( i18n("Here you can configure what the Konqueror file manager"
@@ -46,6 +47,8 @@
     " specific file type in the 'Embedding' tab of the file type configuration.") );
 
   secondLayout->addStretch();
+  secondLayout->addWidget(m_autoEmbed);
+  setLayout(secondLayout);
 }
 
 void FileGroupDetails::setTypeItem( TypesListItem * item )
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic