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

List:       kde-commits
Subject:    Re: extragear/multimedia/amarok/src/configdialog/dialogs
From:       Nikolaj Hald Nielsen <nhnfreespirit () gmail ! com>
Date:       2009-02-22 9:01:39
Message-ID: 9d527020902220101r555f6c44h96e9979d632df999 () mail ! gmail ! com
[Download RAW message or body]

ouch!

I am sitting on a pretty big patch to all this playlist layout code
that changes the way it works quite significantly. Someone sent it in
and we have been working on getting it ready to commit...

- Nikolaj

On Sun, Feb 22, 2009 at 4:45 AM, Seb Ruiz <ruiz@kde.org> wrote:
> SVN commit 929769 by seb:
> 
> Add a label to the playlist layout config entry
> 
> M  +15 -1     GeneralConfig.cpp
> 
> 
> --- trunk/extragear/multimedia/amarok/src/configdialog/dialogs/GeneralConfig.cpp \
> #929768:929769 @@ -27,7 +27,10 @@
> 
> #include <KStandardDirs>
> 
> +#include <QHBoxLayout>
> +#include <QLabel>
> 
> +
> GeneralConfig::GeneralConfig( QWidget* parent )
> > ConfigDialogBase( parent )
> {
> @@ -79,7 +82,18 @@
> connect( kcfg_ExternalBrowser, SIGNAL( editTextChanged( const QString& ) ), parent, \
> SLOT( updateButtons() ) ); 
> Playlist::LayoutConfigWidget *layoutWidget = new Playlist::LayoutConfigWidget( \
>                 playlistBox );
> -    playlistBox->layout()->addWidget( layoutWidget );
> +    layoutWidget->setSizePolicy( QSizePolicy::MinimumExpanding, \
> QSizePolicy::Preferred ); +
> +    QLabel *layoutLabel = new QLabel( i18n("Playlist layout:"), this );
> +    layoutLabel->setSizePolicy( QSizePolicy::Maximum, QSizePolicy::Preferred );
> +
> +    QWidget *layoutBox = new QWidget( this );
> +    QHBoxLayout *layout = new QHBoxLayout( layoutBox );
> +    layout->addWidget( layoutLabel );
> +    layout->addWidget( layoutWidget );
> +    layoutBox->setLayout( layout );
> +
> +    playlistBox->layout()->addWidget( layoutBox );
> }
> 
> GeneralConfig::~GeneralConfig()
> 


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

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